mate-desktop 1.29.2
Library with common API for various MATE modules
Loading...
Searching...
No Matches
edid-parse.c File Reference
View source
#include "edid.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <glib.h>
Include dependency graph for edid-parse.c:

Functions

static int get_bit (int in, int bit)
 
static int get_bits (int in, int begin, int end)
 
static int decode_header (const uchar *edid)
 
static int decode_vendor_and_product_identification (const uchar *edid, MonitorInfo *info)
 
static int decode_edid_version (const uchar *edid, MonitorInfo *info)
 
static int decode_display_parameters (const uchar *edid, MonitorInfo *info)
 
static double decode_fraction (int high, int low)
 
static int decode_color_characteristics (const uchar *edid, MonitorInfo *info)
 
static int decode_established_timings (const uchar *edid, MonitorInfo *info)
 
static int decode_standard_timings (const uchar *edid, MonitorInfo *info)
 
static void decode_lf_string (const uchar *s, int n_chars, char *result)
 
static void decode_display_descriptor (const uchar *desc, MonitorInfo *info)
 
static void decode_detailed_timing (const uchar *timing, DetailedTiming *detailed)
 
static int decode_descriptors (const uchar *edid, MonitorInfo *info)
 
static void decode_check_sum (const uchar *edid, MonitorInfo *info)
 
MonitorInfo * decode_edid (const uchar *edid)
 

Function Documentation

◆ decode_check_sum()

static void decode_check_sum ( const uchar *  edid,
MonitorInfo *  info 
)
static

References MonitorInfo::checksum.

Referenced by decode_edid().

◆ decode_color_characteristics()

static int decode_color_characteristics ( const uchar *  edid,
MonitorInfo *  info 
)
static

References MonitorInfo::blue_x, MonitorInfo::blue_y, decode_fraction(), get_bits(), MonitorInfo::green_x, MonitorInfo::green_y, MonitorInfo::red_x, MonitorInfo::red_y, MonitorInfo::white_x, and MonitorInfo::white_y.

Referenced by decode_edid().

Here is the call graph for this function:

◆ decode_descriptors()

static int decode_descriptors ( const uchar *  edid,
MonitorInfo *  info 
)
static

References decode_detailed_timing(), decode_display_descriptor(), MonitorInfo::detailed_timings, and MonitorInfo::n_detailed_timings.

Referenced by decode_edid().

Here is the call graph for this function:

◆ decode_detailed_timing()

◆ decode_display_descriptor()

static void decode_display_descriptor ( const uchar *  desc,
MonitorInfo *  info 
)
static

References decode_lf_string(), MonitorInfo::dsc_product_name, MonitorInfo::dsc_serial_number, and MonitorInfo::dsc_string.

Referenced by decode_descriptors().

Here is the call graph for this function:

◆ decode_display_parameters()

◆ decode_edid()

MonitorInfo * decode_edid ( const uchar *  edid)

References decode_check_sum(), decode_color_characteristics(), decode_descriptors(), decode_display_parameters(), decode_edid_version(), decode_established_timings(), decode_header(), decode_standard_timings(), and decode_vendor_and_product_identification().

Referenced by mate_rr_config_load_current().

Here is the call graph for this function:

◆ decode_edid_version()

static int decode_edid_version ( const uchar *  edid,
MonitorInfo *  info 
)
static

◆ decode_established_timings()

static int decode_established_timings ( const uchar *  edid,
MonitorInfo *  info 
)
static

References MonitorInfo::established, and get_bit().

Referenced by decode_edid().

Here is the call graph for this function:

◆ decode_fraction()

static double decode_fraction ( int  high,
int  low 
)
static

References get_bit().

Referenced by decode_color_characteristics().

Here is the call graph for this function:

◆ decode_header()

static int decode_header ( const uchar *  edid)
static

Referenced by decode_edid().

◆ decode_lf_string()

static void decode_lf_string ( const uchar *  s,
int  n_chars,
char *  result 
)
static

◆ decode_standard_timings()

static int decode_standard_timings ( const uchar *  edid,
MonitorInfo *  info 
)
static

References Timing::frequency, get_bits(), Timing::height, MonitorInfo::standard, and Timing::width.

Referenced by decode_edid().

Here is the call graph for this function:

◆ decode_vendor_and_product_identification()

static int decode_vendor_and_product_identification ( const uchar *  edid,
MonitorInfo *  info 
)
static

References get_bits(), MonitorInfo::manufacturer_code, MonitorInfo::model_year, MonitorInfo::product_code, MonitorInfo::production_week, MonitorInfo::production_year, and MonitorInfo::serial_number.

Referenced by decode_edid().

Here is the call graph for this function:

◆ get_bit()

static int get_bit ( int  in,
int  bit 
)
static

◆ get_bits()