diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-12 05:04:16 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-12 05:04:16 +0200 |
commit | 13679ba91052ae0fade5c9c534bf789d0e76c85d (patch) | |
tree | 263f93dcc7398f70bafea4efb88f47bd1271a20a /src/blueshift_drm.pyx | |
parent | add (absolute) support for 256 byte EDID:s (deprecated, and I think also rare) (diff) | |
download | blueshift-13679ba91052ae0fade5c9c534bf789d0e76c85d.tar.gz blueshift-13679ba91052ae0fade5c9c534bf789d0e76c85d.tar.bz2 blueshift-13679ba91052ae0fade5c9c534bf789d0e76c85d.tar.xz |
m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/blueshift_drm.pyx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/blueshift_drm.pyx b/src/blueshift_drm.pyx index f4bfc06..dae3bb7 100644 --- a/src/blueshift_drm.pyx +++ b/src/blueshift_drm.pyx @@ -185,7 +185,9 @@ Get the extended display identification data for the monitor connected to a conn @param connection The identifier for the connection to the card @param connector_index The index of the connector -@param edid Storage location for the EDID, it should be 128 bytes, 256 bytes + zero termination if hex +@param edid Storage location for the EDID, it should be 128 bytes, + or 256 bytes if you are counting on the depricated EDID 2.0, + If hexadecimal, twice that + zero termiation. @param size The size allocated to `edid` excluding your zero termination @param hexadecimal Whether to convert to hexadecimal representation, this is preferable @return The length of the found value, 0 if none, as if hex is false @@ -519,6 +521,9 @@ def drm_get_edid(int connection, int connector_index): # Prototype side of the hexadecimal representation # of the EDID, should be exact size = 256 + # It could be twice that, but we will not base + # our start value on something that is unlikely. + # Allocate storage space for the EDID, with one # extra character for NUL-termination edid = <char*>malloc((size + 1) * sizeof(char)) |