mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
media: v4l2-dv-timings: add v4l2_hdmi_colorimetry()
Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
bd2a0f082b
commit
357a856a6c
2 changed files with 162 additions and 0 deletions
|
|
@ -212,5 +212,26 @@ static inline bool can_reduce_fps(struct v4l2_bt_timings *bt)
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* struct v4l2_hdmi_rx_colorimetry - describes the HDMI colorimetry information
|
||||
* @colorspace: enum v4l2_colorspace, the colorspace
|
||||
* @ycbcr_enc: enum v4l2_ycbcr_encoding, Y'CbCr encoding
|
||||
* @quantization: enum v4l2_quantization, colorspace quantization
|
||||
* @xfer_func: enum v4l2_xfer_func, colorspace transfer function
|
||||
*/
|
||||
struct v4l2_hdmi_colorimetry {
|
||||
enum v4l2_colorspace colorspace;
|
||||
enum v4l2_ycbcr_encoding ycbcr_enc;
|
||||
enum v4l2_quantization quantization;
|
||||
enum v4l2_xfer_func xfer_func;
|
||||
};
|
||||
|
||||
struct hdmi_avi_infoframe;
|
||||
struct hdmi_vendor_infoframe;
|
||||
|
||||
struct v4l2_hdmi_colorimetry
|
||||
v4l2_hdmi_rx_colorimetry(const struct hdmi_avi_infoframe *avi,
|
||||
const struct hdmi_vendor_infoframe *hdmi,
|
||||
unsigned int height);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue