mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-07 16:49:52 +00:00
vkimagememory: use the correct enum for RGB16/BGR16 formats
vkimagememory.c:64:14: warning: implicit conversion from enumeration type 'GstVideoGLTextureType' to different enumeration type 'VkFormat' (aka 'enum VkFormat') [-Wenum-conversion] return GST_VIDEO_GL_TEXTURE_TYPE_RGB16; https://bugzilla.gnome.org/show_bug.cgi?id=777760
This commit is contained in:
parent
f3ef2ebd1f
commit
f6b81a6125
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ gst_vulkan_format_from_video_format (GstVideoFormat v_format, guint plane)
|
|||
break;
|
||||
case GST_VIDEO_FORMAT_RGB16:
|
||||
case GST_VIDEO_FORMAT_BGR16:
|
||||
return GST_VIDEO_GL_TEXTURE_TYPE_RGB16;
|
||||
return VK_FORMAT_R5G6B5_UNORM_PACK16;
|
||||
case GST_VIDEO_FORMAT_GRAY16_BE:
|
||||
case GST_VIDEO_FORMAT_GRAY16_LE:
|
||||
case GST_VIDEO_FORMAT_YUY2:
|
||||
|
|
Loading…
Reference in a new issue