diff options
Diffstat (limited to 'gstcs')
-rwxr-xr-x | gstcs/mm_util_gstcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c index 8290c45..1a9d7f7 100755 --- a/gstcs/mm_util_gstcs.c +++ b/gstcs/mm_util_gstcs.c @@ -444,7 +444,7 @@ _mm_round_up_input_image_widh_height(image_format_s* pFormat) } else if (strcmp(pFormat->colorspace, "RGB") == 0) { pFormat->stride = MM_UTIL_ROUND_UP_4(pFormat->width); pFormat->elevation = MM_UTIL_ROUND_UP_2(pFormat->height); - } else if (strcmp(pFormat->colorspace, "RGBA") == 0) { + } else if ((strcmp(pFormat->colorspace, "RGBA") == 0) || (strcmp(pFormat->colorspace, "BGRX") == 0)) { pFormat->stride = pFormat->width; pFormat->elevation = MM_UTIL_ROUND_UP_2(pFormat->height); } @@ -497,7 +497,7 @@ _mm_round_up_output_image_widh_height(image_format_s* pFormat, const image_forma pFormat->width = pFormat->stride; if (input_format->height != input_format->elevation) pFormat->height = pFormat->elevation; - } else if (strcmp(pFormat->colorspace, "RGBA") == 0) { + } else if ((strcmp(pFormat->colorspace, "RGBA") == 0) || (strcmp(pFormat->colorspace, "BGRX") == 0)) { pFormat->stride = pFormat->width; pFormat->elevation = MM_UTIL_ROUND_UP_2(pFormat->height); if (input_format->height != input_format->elevation) |