L4Re - L4 Runtime Environment
EDID parsing functionality

Enumerations

enum  Libedid_consts { Libedid_block_size = 128 }
 EDID constants. More...
 

Functions

int libedid_check_header (const unsigned char *edid)
 Check for valid EDID header. More...
 
int libedid_checksum (const unsigned char *edid)
 Calculates the EDID checksum. More...
 
unsigned libedid_version (const unsigned char *edid)
 Returns the EDID version number. More...
 
unsigned libedid_revision (const unsigned char *edid)
 Returns the EDID revision number. More...
 
void libedid_pnp_id (const unsigned char *edid, unsigned char *id)
 Extracts the display's PnP ID. More...
 
void libedid_prefered_resolution (const unsigned char *edid, unsigned *w, unsigned *h)
 Extract the display's prefered mode. More...
 
unsigned libedid_num_ext_blocks (const unsigned char *edid)
 Get the number of EDID extension blocks. More...
 
unsigned libedid_dump_standard_timings (const unsigned char *edid)
 Dump the standard timings to stdout. More...
 
void libedid_dump (const unsigned char *edid)
 Dump raw EDID data to stdout. More...
 

Detailed Description

Enumeration Type Documentation

◆ Libedid_consts

EDID constants.

Enumerator
Libedid_block_size 

Size of one EDID block in bytes.

Definition at line 23 of file edid.h.

Function Documentation

◆ libedid_check_header()

int libedid_check_header ( const unsigned char *  edid)

Check for valid EDID header.

Parameters
edidPointer to a 128byte EDID block
Returns
0 if the header is correct, -EINVAL otherwise

◆ libedid_checksum()

int libedid_checksum ( const unsigned char *  edid)

Calculates the EDID checksum.

Parameters
edidPointer to a 128byte EDID block
Returns
0 if checksum is correct, -EINVAL otherwise

◆ libedid_dump()

void libedid_dump ( const unsigned char *  edid)

Dump raw EDID data to stdout.

Parameters
edidPointer to a 128byte EDID block

◆ libedid_dump_standard_timings()

unsigned libedid_dump_standard_timings ( const unsigned char *  edid)

Dump the standard timings to stdout.

Parameters
edidPointer to a 128byte EDID block
Returns
Number of standard timings stored in EDID

◆ libedid_num_ext_blocks()

unsigned libedid_num_ext_blocks ( const unsigned char *  edid)

Get the number of EDID extension blocks.

Parameters
edidPointer to a 128byte EDID block
Returns
Number of EDID extension blocks

◆ libedid_pnp_id()

void libedid_pnp_id ( const unsigned char *  edid,
unsigned char *  id 
)

Extracts the display's PnP ID.

Parameters
edidPointer to a 128byte EDID block
Return values
idReturn the PnP id. Must point to 4 bytes.

◆ libedid_prefered_resolution()

void libedid_prefered_resolution ( const unsigned char *  edid,
unsigned *  w,
unsigned *  h 
)

Extract the display's prefered mode.

Parameters
edidPointer to a 128byte EDID block
Return values
wX resolution of prefered video mode in pixels.
hY resolution of prefered video mode in pixels.

◆ libedid_revision()

unsigned libedid_revision ( const unsigned char *  edid)

Returns the EDID revision number.

Parameters
edidPointer to a 128 EDID block
Returns
Revision number

◆ libedid_version()

unsigned libedid_version ( const unsigned char *  edid)

Returns the EDID version number.

Parameters
edidPointer to a 128byte EDID block
Returns
Version number