Lines Matching full:frame

20  * @frame: HDMI DRM infoframe
25 int drm_hdmi_infoframe_set_hdr_metadata(struct hdmi_drm_infoframe *frame, in drm_hdmi_infoframe_set_hdr_metadata() argument
32 if (!frame || !conn_state) in drm_hdmi_infoframe_set_hdr_metadata()
50 err = hdmi_drm_infoframe_init(frame); in drm_hdmi_infoframe_set_hdr_metadata()
54 frame->eotf = hdr_metadata->hdmi_metadata_type1.eotf; in drm_hdmi_infoframe_set_hdr_metadata()
55 frame->metadata_type = hdr_metadata->hdmi_metadata_type1.metadata_type; in drm_hdmi_infoframe_set_hdr_metadata()
57 BUILD_BUG_ON(sizeof(frame->display_primaries) != in drm_hdmi_infoframe_set_hdr_metadata()
59 BUILD_BUG_ON(sizeof(frame->white_point) != in drm_hdmi_infoframe_set_hdr_metadata()
62 memcpy(&frame->display_primaries, in drm_hdmi_infoframe_set_hdr_metadata()
64 sizeof(frame->display_primaries)); in drm_hdmi_infoframe_set_hdr_metadata()
66 memcpy(&frame->white_point, in drm_hdmi_infoframe_set_hdr_metadata()
68 sizeof(frame->white_point)); in drm_hdmi_infoframe_set_hdr_metadata()
70 frame->max_display_mastering_luminance = in drm_hdmi_infoframe_set_hdr_metadata()
72 frame->min_display_mastering_luminance = in drm_hdmi_infoframe_set_hdr_metadata()
74 frame->max_fall = hdr_metadata->hdmi_metadata_type1.max_fall; in drm_hdmi_infoframe_set_hdr_metadata()
75 frame->max_cll = hdr_metadata->hdmi_metadata_type1.max_cll; in drm_hdmi_infoframe_set_hdr_metadata()
126 * @frame: HDMI AVI infoframe
129 void drm_hdmi_avi_infoframe_colorimetry(struct hdmi_avi_infoframe *frame, in drm_hdmi_avi_infoframe_colorimetry() argument
140 frame->colorimetry = colorimetry_val & NORMAL_COLORIMETRY_MASK; in drm_hdmi_avi_infoframe_colorimetry()
145 frame->extended_colorimetry = (colorimetry_val >> 2) & in drm_hdmi_avi_infoframe_colorimetry()
153 * @frame: HDMI AVI infoframe
156 void drm_hdmi_avi_infoframe_bars(struct hdmi_avi_infoframe *frame, in drm_hdmi_avi_infoframe_bars() argument
159 frame->right_bar = conn_state->tv.margins.right; in drm_hdmi_avi_infoframe_bars()
160 frame->left_bar = conn_state->tv.margins.left; in drm_hdmi_avi_infoframe_bars()
161 frame->top_bar = conn_state->tv.margins.top; in drm_hdmi_avi_infoframe_bars()
162 frame->bottom_bar = conn_state->tv.margins.bottom; in drm_hdmi_avi_infoframe_bars()
170 * @frame: HDMI AVI infoframe
174 void drm_hdmi_avi_infoframe_content_type(struct hdmi_avi_infoframe *frame, in drm_hdmi_avi_infoframe_content_type() argument
179 frame->content_type = HDMI_CONTENT_TYPE_GRAPHICS; in drm_hdmi_avi_infoframe_content_type()
182 frame->content_type = HDMI_CONTENT_TYPE_CINEMA; in drm_hdmi_avi_infoframe_content_type()
185 frame->content_type = HDMI_CONTENT_TYPE_GAME; in drm_hdmi_avi_infoframe_content_type()
188 frame->content_type = HDMI_CONTENT_TYPE_PHOTO; in drm_hdmi_avi_infoframe_content_type()
192 frame->content_type = HDMI_CONTENT_TYPE_GRAPHICS; in drm_hdmi_avi_infoframe_content_type()
195 frame->itc = conn_state->content_type != DRM_MODE_CONTENT_TYPE_NO_DATA; in drm_hdmi_avi_infoframe_content_type()