hdmi.h (f1d7ae31d4aa7b352611c43a9fb3b04986cff622) | hdmi.h (c89d94ad5d95fd15e891b2723caae8a6104ee153) |
---|---|
1/* 2 * Copyright (C) 2012 Avionic Design GmbH 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sub license, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 156 unchanged lines hidden (view full) --- 165 HDMI_EOTF_SMPTE_ST2084, 166 HDMI_EOTF_BT_2100_HLG, 167}; 168 169struct hdmi_avi_infoframe { 170 enum hdmi_infoframe_type type; 171 unsigned char version; 172 unsigned char length; | 1/* 2 * Copyright (C) 2012 Avionic Design GmbH 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sub license, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 156 unchanged lines hidden (view full) --- 165 HDMI_EOTF_SMPTE_ST2084, 166 HDMI_EOTF_BT_2100_HLG, 167}; 168 169struct hdmi_avi_infoframe { 170 enum hdmi_infoframe_type type; 171 unsigned char version; 172 unsigned char length; |
173 bool itc; 174 unsigned char pixel_repeat; |
|
173 enum hdmi_colorspace colorspace; 174 enum hdmi_scan_mode scan_mode; 175 enum hdmi_colorimetry colorimetry; 176 enum hdmi_picture_aspect picture_aspect; 177 enum hdmi_active_aspect active_aspect; | 175 enum hdmi_colorspace colorspace; 176 enum hdmi_scan_mode scan_mode; 177 enum hdmi_colorimetry colorimetry; 178 enum hdmi_picture_aspect picture_aspect; 179 enum hdmi_active_aspect active_aspect; |
178 bool itc; | |
179 enum hdmi_extended_colorimetry extended_colorimetry; 180 enum hdmi_quantization_range quantization_range; 181 enum hdmi_nups nups; 182 unsigned char video_code; 183 enum hdmi_ycc_quantization_range ycc_quantization_range; 184 enum hdmi_content_type content_type; | 180 enum hdmi_extended_colorimetry extended_colorimetry; 181 enum hdmi_quantization_range quantization_range; 182 enum hdmi_nups nups; 183 unsigned char video_code; 184 enum hdmi_ycc_quantization_range ycc_quantization_range; 185 enum hdmi_content_type content_type; |
185 unsigned char pixel_repeat; | |
186 unsigned short top_bar; 187 unsigned short bottom_bar; 188 unsigned short left_bar; 189 unsigned short right_bar; 190}; 191 192/* DRM Infoframe as per CTA 861.G spec */ 193struct hdmi_drm_infoframe { --- 137 unchanged lines hidden (view full) --- 331 332}; 333 334int hdmi_audio_infoframe_init(struct hdmi_audio_infoframe *frame); 335ssize_t hdmi_audio_infoframe_pack(struct hdmi_audio_infoframe *frame, 336 void *buffer, size_t size); 337ssize_t hdmi_audio_infoframe_pack_only(const struct hdmi_audio_infoframe *frame, 338 void *buffer, size_t size); | 186 unsigned short top_bar; 187 unsigned short bottom_bar; 188 unsigned short left_bar; 189 unsigned short right_bar; 190}; 191 192/* DRM Infoframe as per CTA 861.G spec */ 193struct hdmi_drm_infoframe { --- 137 unchanged lines hidden (view full) --- 331 332}; 333 334int hdmi_audio_infoframe_init(struct hdmi_audio_infoframe *frame); 335ssize_t hdmi_audio_infoframe_pack(struct hdmi_audio_infoframe *frame, 336 void *buffer, size_t size); 337ssize_t hdmi_audio_infoframe_pack_only(const struct hdmi_audio_infoframe *frame, 338 void *buffer, size_t size); |
339int hdmi_audio_infoframe_check(struct hdmi_audio_infoframe *frame); | 339int hdmi_audio_infoframe_check(const struct hdmi_audio_infoframe *frame); |
340 | 340 |
341#ifdef __linux__ 342struct dp_sdp; 343ssize_t 344hdmi_audio_infoframe_pack_for_dp(const struct hdmi_audio_infoframe *frame, 345 struct dp_sdp *sdp, u8 dp_version); 346#endif 347 |
|
341enum hdmi_3d_structure { 342 HDMI_3D_STRUCTURE_INVALID = -1, 343 HDMI_3D_STRUCTURE_FRAME_PACKING = 0, 344 HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE, 345 HDMI_3D_STRUCTURE_LINE_ALTERNATIVE, 346 HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL, 347 HDMI_3D_STRUCTURE_L_DEPTH, 348 HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH, --- 92 unchanged lines hidden --- | 348enum hdmi_3d_structure { 349 HDMI_3D_STRUCTURE_INVALID = -1, 350 HDMI_3D_STRUCTURE_FRAME_PACKING = 0, 351 HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE, 352 HDMI_3D_STRUCTURE_LINE_ALTERNATIVE, 353 HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL, 354 HDMI_3D_STRUCTURE_L_DEPTH, 355 HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH, --- 92 unchanged lines hidden --- |