/* Copyright (c) 2012, Broadcom Europe Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * HDMI common host header for TV service, defines resolution code which host applications should * use for power up command for HDMI */ #ifndef _VC_HDMI_H_ #define _VC_HDMI_H_ #include "vc_hdmi_property.h" /**< All HDMI related properties have been moved to here */ typedef int VC_HDMI_BOOL_T; /** * HDMI resolution groups. There are two main groups: * CEA - the conventional HDMI ones like 720p * DMT - computer monitor resolutions like XGA */ typedef enum { HDMI_RES_GROUP_INVALID = 0, /**< Initialised value */ HDMI_RES_GROUP_CEA = 1, /**< CEA - HDMI device */ HDMI_RES_GROUP_DMT = 2, /**< DMT - computer monitors */ HDMI_RES_GROUP_CEA_3D = 3, /* deprecated */ HDMI_RES_GROUP_CUSTOM = 4, /**< Custom timings from the client */ } HDMI_RES_GROUP_T; #define HDMI_RES_GROUP_NAME(g) \ (((g) == HDMI_RES_GROUP_INVALID) ? "Invalid" : \ (((g) == HDMI_RES_GROUP_CEA) ? "CEA" : \ (((g) == HDMI_RES_GROUP_DMT) ? "DMT" : \ (((g) == HDMI_RES_GROUP_CUSTOM) ? "Custom" : \ "Unknown")))) /** * CEA 861 defined video code and aspect ratios for various HDMI modes * Not all values are valid for AVI infoframe */ typedef enum { HDMI_ASPECT_UNKNOWN = 0, /**< Unknown aspect ratio, or not one of the values below */ HDMI_ASPECT_4_3 = 1, /**< 4:3 */ HDMI_ASPECT_14_9 = 2, /**< 14:9 */ HDMI_ASPECT_16_9 = 3, /**< 16:9 */ HDMI_ASPECT_5_4 = 4, /**< 5:4 */ HDMI_ASPECT_16_10 = 5, /**< 16:10*/ HDMI_ASPECT_15_9 = 6, /**< 15:9 */ HDMI_ASPECT_64_27 = 7, /**< 64:27 */ HDMI_ASPECT_21_9 = HDMI_ASPECT_64_27, /**< 21:9 is jargon, 64:27 is the actual aspect ratio */ HDMI_ASPECT_256_135 = 8, /**< 256:135 */ /* More aspect ratio values may be added here if defined by CEA in future */ } HDMI_ASPECT_T; /** * Display options set the bounding box (only used in CEA mode) */ typedef struct { uint16_t aspect; /**