mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
gstqsg6material: fix RGB format support
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6997>
This commit is contained in:
parent
300a8141e8
commit
d81f7579fa
1 changed files with 2 additions and 0 deletions
|
@ -510,6 +510,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;
|
||||
|
@ -524,6 +525,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