Added YUV420 and YVU420

This commit is contained in:
Martijn Braam 2020-01-24 01:33:05 +01:00
parent a9140f7f92
commit b5c348a042
No known key found for this signature in database
GPG Key ID: C4280ACB000B060F
1 changed files with 7 additions and 0 deletions

7
main.c
View File

@ -400,6 +400,13 @@ config_ini_handler(void *user, const char *section, const char *name,
preview_fmt = V4L2_PIX_FMT_JPEG;
} else if (strcmp(value, "NV12") == 0) {
preview_fmt = V4L2_PIX_FMT_NV12;
} else if (strcmp(value, "YUV420") == 0
|| strcmp(value, "I420") == 0
|| strcmp(value, "YU12") == 0) {
preview_fmt = V4L2_PIX_FMT_YUV420;
} else if (strcmp(value, "YVU420") == 0
|| strcmp(value, "YV12") == 0) {
preview_fmt = V4L2_PIX_FMT_YVU420;
} else {
g_printerr("Unsupported pixelformat %s\n", value);
exit(1);