mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
vkformat: assume that unknown rgb transfer is sRGB
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5288>
This commit is contained in:
parent
b82a402bf1
commit
9d79852890
1 changed files with 3 additions and 1 deletions
|
@ -649,7 +649,9 @@ gst_vulkan_format_from_video_info_2 (GstVulkanPhysicalDevice * physical_device,
|
|||
|
||||
if (GST_VIDEO_INFO_IS_RGB (info)) {
|
||||
if (basics_primary && (GST_VIDEO_INFO_COLORIMETRY (info).transfer ==
|
||||
GST_VIDEO_TRANSFER_SRGB)) {
|
||||
GST_VIDEO_TRANSFER_SRGB
|
||||
|| GST_VIDEO_INFO_COLORIMETRY (info).transfer ==
|
||||
GST_VIDEO_TRANSFER_UNKNOWN)) {
|
||||
usage = _get_usage (feats_primary);
|
||||
if ((requested_usage & usage) == requested_usage) {
|
||||
if (fmts)
|
||||
|
|
Loading…
Reference in a new issue