mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
libs: filter: set vpp input/output color range
We've always sent VA_SOURCE_RANGE_UNKNOWN to the driver. And, the [iHD] driver essentially computes the same color range as gstreamer when we send VA_SOURCE_RANGE_UNKNOWN for cases were gstreamer computes it automatically. But, if the user wants to make it explicit, we should try to honor it.
This commit is contained in:
parent
9542d55efb
commit
5fe553f4c7
1 changed files with 2 additions and 0 deletions
|
@ -1539,6 +1539,8 @@ fill_color_standard (GstVideoColorimetry * colorimetry,
|
||||||
properties->matrix_coefficients =
|
properties->matrix_coefficients =
|
||||||
gst_video_color_matrix_to_iso (colorimetry->matrix);
|
gst_video_color_matrix_to_iso (colorimetry->matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
properties->color_range = from_GstVideoColorRange (colorimetry->range);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue