Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
edid.cpp File Reference
#include "edid.h"
#include <stdint.h>
#include <math.h>
#include <memory.h>
#include <X11/Xatom.h>
Include dependency graph for edid.cpp:

Go to the source code of this file.

Functions

static int get_bit (int in, int bit)
 
static int get_bits (int in, int begin, int end)
 
static bool decode_header (const uint8_t *edid)
 
static int decode_vendor_and_product_identification (const uint8_t *edid, MonitorInfo *info)
 
static bool decode_edid_version (const uint8_t *edid, MonitorInfo *info)
 
static bool decode_display_parameters (const uint8_t *edid, MonitorInfo *info)
 
static double decode_fraction (int high, int low)
 
static bool decode_color_characteristics (const uint8_t *edid, MonitorInfo *info)
 
static bool decode_established_timings (const uint8_t *edid, MonitorInfo *info)
 
static bool decode_standard_timings (const uint8_t *edid, MonitorInfo *info)
 
static void decode_lf_string (const uint8_t *s, int n_chars, char *result)
 
static void decode_display_descriptor (const uint8_t *desc, MonitorInfo *info)
 
static void decode_detailed_timing (const uint8_t *timing, DetailedTiming *detailed)
 
static bool decode_descriptors (const uint8_t *edid, MonitorInfo *info)
 
static void decode_check_sum (const uint8_t *edid, MonitorInfo *info)
 
MonitorInfodecode_edid (const uint8_t *edid)
 
static uint8_t * get_property (Display *dpy, RROutput output, Atom atom, int *len)
 
MonitorInforead_edid_data (Display *disp, RROutput id)
 

Function Documentation

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

Definition at line 383 of file edid.cpp.

static bool decode_color_characteristics ( const uint8_t *  edid,
MonitorInfo info 
)
static

Definition at line 196 of file edid.cpp.

static bool decode_descriptors ( const uint8_t *  edid,
MonitorInfo info 
)
static

Definition at line 369 of file edid.cpp.

static void decode_detailed_timing ( const uint8_t *  timing,
DetailedTiming detailed 
)
static

Definition at line 319 of file edid.cpp.

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

Definition at line 285 of file edid.cpp.

static bool decode_display_parameters ( const uint8_t *  edid,
MonitorInfo info 
)
static

Definition at line 100 of file edid.cpp.

MonitorInfo* decode_edid ( const uint8_t *  edid)

Definition at line 390 of file edid.cpp.

static bool decode_edid_version ( const uint8_t *  edid,
MonitorInfo info 
)
static

Definition at line 94 of file edid.cpp.

static bool decode_established_timings ( const uint8_t *  edid,
MonitorInfo info 
)
static

Definition at line 209 of file edid.cpp.

static double decode_fraction ( int  high,
int  low 
)
static

Definition at line 188 of file edid.cpp.

static bool decode_header ( const uint8_t *  edid)
static

Definition at line 41 of file edid.cpp.

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

Definition at line 270 of file edid.cpp.

static bool decode_standard_timings ( const uint8_t *  edid,
MonitorInfo info 
)
static

Definition at line 235 of file edid.cpp.

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

Definition at line 47 of file edid.cpp.

static int get_bit ( int  in,
int  bit 
)
static

Definition at line 31 of file edid.cpp.

static int get_bits ( int  in,
int  begin,
int  end 
)
static

Definition at line 35 of file edid.cpp.

static uint8_t* get_property ( Display *  dpy,
RROutput  output,
Atom  atom,
int *  len 
)
static

Definition at line 408 of file edid.cpp.

MonitorInfo* read_edid_data ( Display *  disp,
RROutput  id 
)

Definition at line 428 of file edid.cpp.