small EDID library (possible start)

Éric Piel E.A.B.Piel at tudelft.nl
Wed Jan 6 05:28:10 PST 2010


Op 06-01-10 11:13, Kai-Uwe Behrmann schreef:
> I found several issues with existing EDID parsing code for usage as
> library in Oyranos (a colour management system).
> To move on with a EDID parsing API, I attach a Oyranos header file for
> the EDID parsing.
> The EDID API is selfcontained and a bit tweaked toward Xorg integration.
> But beside that code may look like Xorg to me, core developers might
> find several issues. I would like to adress issues as long I get aware
> of them.
> 
> 
> Why a new attempt? There preexists several code since long time to parse
> EDIDs data blocks.
> 
> That is Adam Jackson's parse-edid.c with lots of global variables and no
> library interface at all (2009). That is fine for the intented usage as
> command line tool, but unfortunedly not a comfortable base for a library.
> 
> Soren Sandmann is mentioned as the author of edid-parse.c (2007). I took
> some pices from that. I like the returned structure at a first glace
> very much. Unfortunedly the returned structure is quite static. So I was
> unshure whether this will be extensible as library. I think this code is
> used internally of Xorg for EDID parsing. The API appears to be visible
> only to the server and is not exported. Please correct me if I am wrong.
> 
> 
> The attached oyranos_edid_parse code is my try on a API. It provides a
> very simple interface. EDID is passed as a void* pointer. Results are
> returned in a flat structure array. The results are a kind of key value
> pairs. The core API consists of only three functions. The returned
> values are referenced by a key name.
> Additionally a XEdid_s structure is declared only for further parsing
> convinience. The parsed items are merely colorimetric and identification
> parts. Missed is the timing and the resolution stuff, which can be added
> later.
> 
Hello,
This is just to let you know that Anssi Hannulla is currently working on
an EDID parser (in C) for Mandriva, and it seems pretty advanced. So you
might want to get some inspiration from it as well:

http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/monitor-edid/current/SOURCES/monitor-edid-3.0.tar.bz2?view=log

Cheers,
Eric



More information about the xorg mailing list