mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
cudamemory: Fix for semi planar YUV memory size decision
UV plan of the semi planar format requires only half of Y plane size Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4502>
This commit is contained in:
parent
fafecf9cb3
commit
4ed3c46de7
1 changed files with 3 additions and 1 deletions
|
@ -915,11 +915,13 @@ gst_cuda_allocator_alloc (GstCudaAllocator * allocator,
|
|||
case GST_VIDEO_FORMAT_I420:
|
||||
case GST_VIDEO_FORMAT_YV12:
|
||||
case GST_VIDEO_FORMAT_I420_10LE:
|
||||
alloc_height *= 2;
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_NV12:
|
||||
case GST_VIDEO_FORMAT_NV21:
|
||||
case GST_VIDEO_FORMAT_P010_10LE:
|
||||
case GST_VIDEO_FORMAT_P016_LE:
|
||||
alloc_height *= 2;
|
||||
alloc_height += alloc_height / 2;
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_Y42B:
|
||||
case GST_VIDEO_FORMAT_I422_10LE:
|
||||
|
|
Loading…
Reference in a new issue