summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/video-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/video/video-info.c')
-rw-r--r--gst-libs/gst/video/video-info.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gst-libs/gst/video/video-info.c b/gst-libs/gst/video/video-info.c
index ed8c0251c..fa7ec7817 100644
--- a/gst-libs/gst/video/video-info.c
+++ b/gst-libs/gst/video/video-info.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include "video-info.h"
+#include "video-tile.h"
static int fill_planes (GstVideoInfo * info);
@@ -574,12 +575,14 @@ fill_planes (GstVideoInfo * info)
info->size = info->stride[0] * height * 3;
break;
case GST_VIDEO_FORMAT_NV12_64Z32:
- info->stride[0] = GST_ROUND_UP_128 (width);
- info->stride[1] = info->stride[0];
- info->stride[2] = GST_ROUND_UP_32 (height) / 32;
+ info->stride[0] =
+ GST_VIDEO_TILE_MAKE_STRIDE (GST_ROUND_UP_128 (width) / 64,
+ GST_ROUND_UP_32 (height) / 32);
+ info->stride[1] =
+ 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->offset[2] = 0;
info->size =
info->offset[1] + info->stride[0] * GST_ROUND_UP_64 (height) / 2;
break;