mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
a5918b0ab5
commit
6b77971097
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue