video: Fix NV12_64Z32 default offset and size

This was a regression introduced by f52fd7a68, where we started using
the stride to encode the dimensions in tiles. This patch simply updates
offset and size calculation as described in the documentation,
part-mediatype-video-raw.txt.
This commit is contained in:
Nicolas Dufresne 2014-02-18 13:08:09 -05:00
parent a5918b0ab5
commit 6b77971097

View file

@ -582,9 +582,9 @@ fill_planes (GstVideoInfo * info)
GST_VIDEO_TILE_MAKE_STRIDE (GST_ROUND_UP_128 (width) / 64,
GST_ROUND_UP_64 (height) / 64);
info->offset[0] = 0;
info->offset[1] = info->stride[0] * GST_ROUND_UP_32 (height);
info->size =
info->offset[1] + info->stride[0] * GST_ROUND_UP_64 (height) / 2;
info->offset[1] = GST_ROUND_UP_128 (width) * GST_ROUND_UP_32 (height);
info->size = info->offset[1] +
GST_ROUND_UP_128 (width) * GST_ROUND_UP_64 (height) / 2;
break;
case GST_VIDEO_FORMAT_ENCODED:
break;