/*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
/*
* fbc_predid_ceaext - Display EDID CEA-EXT data
*/
#include <stdio.h> /* printf() */
#include "fbc_predid.h" /* Display EDID data */
#include "fbc_predid_ceaext.h" /* Display EDID CEA-EXT data */
/*
* fbc_predid_ceaext_layout()
*
* CEA-EXT Data Structure Layout
*/
void
unsigned int start_addr, /* Starting byte address (0x02) */
unsigned int end_addr) /* Ending byte address (0x04) */
{
/*
* CEA 861 Series Extension (CEA-EXT) layout
*/
printf("\t Detailed Timing Descriptor offset: 0x%02X\n",
edid_block[0x02]);
} /* fbc_predid_ceaext_layout() */
/*
* fbc_predid_ceaext_xxx(
*
* ??? Need the CEA 861 Series Extension (CEA-EXT) spec in order to
* ??? interpret these bytes.
*/
void
unsigned int start_addr, /* Starting byte address */
unsigned int end_addr) /* Ending byte address */
{
printf(" CEA 861 Series data\n");
if (e_addr > 0x7F) {
e_addr = 0x7F;
}
} /* fbc_predid_ceaext_xxx() */
/*
* fbc_predid_ceaext_data()
*
* CEA 861 Series Extension (CEA-EXT) free format data bytes.
*/
void
unsigned int start_addr, /* Starting byte address */
unsigned int end_addr) /* Ending byte address */
{
unsigned int i; /* Detailed Timing Block # */
/*
* Detailed Timing Descriptors (??? or 18-Byte Data Blocks ???)
*
* ??? Need the CEA 861 Series Extension (CEA-EXT) spec in
* ??? order to understand how the Video Image Size bytes can
* ??? be interpreted as Displayed Image Aspect Ratio bytes.
*/
printf(" Detailed Timing Descriptors\n");
i = 0;
if ((e_addr >= 0x7F) ||
break;
}
i += 1;
printf(" Detailed Timing Block #%u\n", i);
}
/*
* Unused Bytes
*/
printf(" Unused Bytes (Reserved)\n");
} /* fbc_predid_ceaext_data() */
/* End of fbc_predid_ceaext.c */