EDID decoding in libXrandr?

Keith Packard keithp at keithp.com
Tue Nov 13 11:21:25 PST 2007

On Tue, 2007-11-13 at 19:51 +0100, Soeren Sandmann wrote:
> Hi,
> I am considering adding an EDID parser to libXrandr. I am going to
> need on in various places in GNOME, and the alternative is to cut and
> paste it, since a libedidparser.so doesn't make much ssense, and since
> a full EDID parser doesn't really belong in the GTK+ API either.

Sticking it into libXrandr would mean that XCB-based apps would use a
different API then? That seems sub-optimal. But, sharing code is good,
so it should go somewhere.

We could consider sharing the same code as the X server, including EDID
quirks, which would unify this information in a single place.

> The parser would be a single API entry:
>    int
>    XRRParseEDID (const unsigned char *edid_data,
>                  XRRMonitorInfo *info);
> that would fill out the info struct if edid_data resembles an EDID
> block sufficently (ie., it would be reasonably forgiving of malformed
> data).

The library should probably allocate the structure and fill it in, and
the structure should contain version information so apps could tell
which parts were valid, and whether various extension bits existed.

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20071113/ab1239c7/attachment.pgp>

More information about the xorg mailing list