Read display edid Win32 API

Source: Internet
Author: User

Http://msdn.microsoft.com/en-us/library/dd692950%28v=vs.85%29.aspx

Linux

Read-edid consists of two tools:
.
Get-edid uses a vesa vbe 2 interrupt service routine request to read
A 128 byte edid version 1 structure from your graphics card, which
Retrieves this information from the monitor via the data display
Channel (DDC ).
.
Get-edid uses architecture-

Specific methods for querying the video
Hardware (real-mode x86 instructions on i386, Open Firmware Device
Tree parsing on powermac) and is therefore only available for i386 and
PowerPC ubuntures.
.
Parse-edid parses this data structure and outputs data suitable
Permission sion into the xfree86 or x.org configuration file. It is available
For any architecture.

Extended visibility(Extended display identification data, hierarchical edid) refers to the information of screen resolution, including the operator name and sequence, generally, edid exists in the programmable read-only memory or EEPROM. Generally, if you want to retrieve the edid from the slave database, all the edids are passed through I2C and slave.
The address is 0x50. Currently, HDMI 1.0-1.3c uses the edid architecture version 1.3.

Many of the existing batch bodies can retrieve and display edid information, such as read-edid and PowerStrip, which can be used on windows, as shown in
Xfree86 (startx -- -logverbose 6) Can be used on the Linux platform, and

Bsd unix. On Linux, you can also see the hexadecimal format of raw edid ". On the Mac OS X platform, edid resources (see/var/log/system. log or hold down cmd-V on startup) can be taken and stylized, such as switchresx.
Or displayconfigx can display its information.

Edid 1.3 Data Format
Bitwise group sequence 00-19: Standard Data Source 00-07: Standard Data Source "00 h FFH 00 H" 08-09: producer ID. This perception is allocated by microservices. "00001 = A"; "00010 = B"; ...... "11010 = z ". 7th bits (address 08 h) are 0, the first character (letter) is 6 to 2 (address 08 h), and the second character (letter) it is a third character (letter) is in the bid of 4 → 0 (address 09 h ). 10-11: Production ID sequence (the initial storage method is LSB ). Allocated by the producer. 12-15: 32-bit metacode sequence. The format is not required. Generally, memory is first stored in LSB memory. In order to ensure the compatibility between the de-authentication and the previous requirements, if an ASCII sequence is provided in the partial part during the operation, this parameter should be set to at least one element group instead of zero. 16: Batch creation. This was changed by the producer. Method 1 calculates 1-7 in January as the first region, and January 8-15 as the second region. Some calculations are based on the day of the week (Sunday-Saturday. Valid region values are 1-54. 17: Year of creation. Plus 1990 is the actual year. 18: edid version zookeeper. "01 H" 19: edid fixed version of zookeeper. "03 H" 20-24: basic metric data: 20: image definition value RMB 7: 0 = Class Ratio, 1 = digit if digit 7 is a digit: bits 0: 1 = compatible DFP 1.x if the bits 7 is a class ratio: bits 6-5: Image cost 00 = 0.7, 0.3, 01 = 0.714, 0.286, 10 = 1, 0.4 11 = 0.7, 0 bit 4: vertical synchronization 21: Maximum horizontal size (single digit as the public score ). 22: maximum vertical horizontal dimension (the unit is the centimeter ). 23:. Dividing by 100 and adding 1 is the real value. 24: Features of Power Source Management and Support: Bit 7: standby bit 6: stopped bit 5: active/low-power source bit 4-3: indicator Type: 00 = black and white, 01 = RGB color, 10 = non-RGB multi-color, 11 = undefined bit 2: Standard Color blank bit 1: preferred time frame mode bit 0: When the GTF is set to support 25-34: The color is less than 25: The low valid bit is related to the colored x1x0 (bits 7-6 ), y1y0 (bits 5-4), x1x0 (bits 3-2), and y1y0 (bits 1-0 ). 26: Low valid bits are related to the colors x1x0 (bits 7-6), colors y1y0 (bits 5-4), and white x1x0 (bits 3-2 ), white y1y0 (bits 1-0 ). 27-34: high effective position on the Color X9-2, color Y9-2, color X9-2, color Y9-2, color X9-2, white Y9-2. The positive values refer to 0.000 and 0.999, but the maximum values refer to H and 3ffh. 35: creation I-bit RMB 7-0: 720 × 400 @ 70Hz, 720 × 400 @ 88Hz, 640 × 480 @ 60Hz, 640 × 480 @ 67Hz, 640 × 480 @ 72Hz, 640 × 480 @ 75Hz, 800 × 600 @ 56Hz, 800 × 600 @ 60 hz36: 800 × 600 @ 72Hz, 800 × 600 @ 75Hz, 832 × 624 @ 75Hz, 1024 × 768 @ 87Hz (crossover), 1024 × 768 @ 60Hz, 1024 × 768 @ 70Hz, 1024 × 768 @ 75Hz, 1280 × 1024 @ 75 hz37: 1152x870 @ 75Hz (Golden Tower II, yungo.com) 38-53: recognition at standard time. The result of the first metagroup level. Add 31 and multiply 8 to get the positive value. Second RMB 7-6: percentage of external users. The positive vertical result depends on the horizontal result. 00 =, 01 =, 10 =, 11 = (00 = before v1.3) 5-0: vertical renewal rate. Add 60 to get the correct value. 54-71: pixel hour description 1 54-55: pixel hour (unit: 10 kHz) or 0 (55 MSB 54 LSB) if the pixel time is not valid: 56: horizontal Active pixel (single bit as pixel) 57: horizontal blank (single bit as pixel) 58: horizontal active/Standby High (4 high yuan) Horizontal blank high (4 low yuan) 59: vertical active/standby (single digit for short) 60: vertical blank (single digit for short) 61: vertical live segments in high valid bits (4 high bits) Vertical blank in high valid bits (4 low bits) 62: horizontal synchronization offset (single bit as pixel) 63: horizontal synchronization (single bit as pixel) 64: vertical synchronization offset (single bit as pixel) (4 high bit) Vertical synchronization (single bit as pixel) (4 low RMB) 65: the high valid bits are related to the horizontal synchronization offset (bits 7-6) and the high valid bits are related to horizontal synchronization (bits 5-4) the highly valid bit is related to the vertical synchronization offset (bitwise 3-2). The high valid bit is related to the vertical synchronization between two degrees (bitwise 1-0) 66: horizontal portrait size (single-digit male) 67: vertical portrait size (single-digit male) 68: high efficiency depends on the horizontal portrait size (4 high yuan). High Efficiency depends on the vertical portrait size (4 low yuan) 69: horizontal (single pixel and only one pixel) 70: vertical (single pixel and only one pixel) 71: transaction and no (dollar 7) stereo and no (dollar 6-5) ("00" indicates no) shard synchronization and no (dollar 4-3) vertical sync positive and no (bit RMB 2) horizontal sync positive and no (bit RMB 1) stereo mode (bit RMB 0) (if 6-5 is 00, It is not used) if pixel-based lag is ineffective: 56: 0 57: Zone-based lag FFH = sequencer sequence, Feh = ASCII string, FDH = Limit variable, FCH = component name, FBH = color item, fah, Standard Time item, f9h = not yet defined, 0fh = meaning 58: 0 59-71: intra-region content descriptor. Assume that the region type is FFH, Feh, or FCH, and the entire region is a string. For example, if the region-specific ratio is FDH: 59-63: Minimum vertical gain rate, maximum vertical gain rate, and minimum horizontal gain rate (unit: kHz ), maximum horizontal gain rate (unit: kHz), pixel Time Lag (unit: MHz (positive value must be multiplied by 10) 64-65: the second GTF generator is used for the 59-63 bits if the encoding value is 000a. For example, if the watermark value is 0200, the bid 67-71 is used. 66: Start-up horizontal response rate (unit: kHz ). Multiply 2 to get the actual signature value. 67: C. Divide by 2 to get the actual limit value. 68-69: m (first stored in LSB memory ). 70: K 71: J. Divide by 2 to get the actual limit value. If the region-specific index is FBH: 59: W, the index is 0. If it is set to 0, the 60-63 bits are not used. If it is set to 1, 61-63 is allocated to the white-point index #1 64: W Index 1. If it is set to 0, the 65-68 bits are not used. If it is set to 2, 65-68 is allocated to the white-point index #2 the white-point index structure: the first dollar 3-2: low valid bits are about white X (bits 3-2), and white y (bits 1-0). Second-to-third bits: High valid bits are about white X, white y. The fourth element group is Gamma. Divide by 100 and Add 1 to get the actual limit value. Parse white X and white y and check the bitwise 25-34. If the region-specific region is Fah: 59-70: the region-specific region must be known. Two RMB for each region. For the final structure region, see the Unit 38-53. 72-89: parameter description 2 or parameter descriptor 90-107: parameter description 3 or parameter descriptor 108-125: when the cursor is reached, the parameter description 4 or the operator descriptor 126: the flag outside the cursor. The data outside the region is used. Before edid 1.3, this is ignored and should be set to 0. 127: Schools and-the yuan group should be stylized so that the sum of the 128 yuan group is equal to 00 H.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.