case GST_VIDEO_FORMAT_Y16:
return width;
case GST_VIDEO_FORMAT_A420:
- if (component == 0 || component == 1) {
+ if (component == 0 || component == 3) {
return width;
} else {
return GST_ROUND_UP_2 (width) / 2;
case GST_VIDEO_FORMAT_UYVP:
return height;
case GST_VIDEO_FORMAT_A420:
- if (component == 0 || component == 1) {
+ if (component == 0 || component == 3) {
return height;
} else {
return GST_ROUND_UP_2 (height) / 2;
return GST_ROUND_UP_4 (width) * GST_ROUND_UP_2 (height) +
2 * GST_ROUND_UP_4 (GST_ROUND_UP_2 (width) / 2) *
(GST_ROUND_UP_2 (height) / 2);
-
}
default:
return 0;