mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
gstqsg6material: fix RGB format support
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6991>
This commit is contained in:
parent
11f96ce4dd
commit
bdeabcc4a6
1 changed files with 2 additions and 0 deletions
|
@ -516,6 +516,7 @@ video_format_to_rhi_format (GstVideoFormat format, guint plane)
|
|||
switch (format) {
|
||||
case GST_VIDEO_FORMAT_RGBA:
|
||||
case GST_VIDEO_FORMAT_BGRA:
|
||||
case GST_VIDEO_FORMAT_RGB:
|
||||
return QRhiTexture::RGBA8;
|
||||
case GST_VIDEO_FORMAT_YV12:
|
||||
return QRhiTexture::R8;
|
||||
|
@ -532,6 +533,7 @@ video_format_to_texel_size (GstVideoFormat format, guint plane)
|
|||
switch (format) {
|
||||
case GST_VIDEO_FORMAT_RGBA:
|
||||
case GST_VIDEO_FORMAT_BGRA:
|
||||
case GST_VIDEO_FORMAT_RGB:
|
||||
return 4;
|
||||
case GST_VIDEO_FORMAT_YV12:
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue