## GcmEdid

GcmEdid — EDID parsing object

## Synopsis

    struct              GcmEdid;
    struct              GcmEdidClass;
    GcmEdid *           gcm_edid_new                        (void);
    void                gcm_edid_reset                      (GcmEdid *edid);
    gboolean            gcm_edid_parse                      (GcmEdid *edid,
                                                             const guint8 *data,
                                                             gsize length,
                                                             GError **error);
    const gchar *       gcm_edid_get_monitor_name           (GcmEdid *edid);
    const gchar *       gcm_edid_get_vendor_name            (GcmEdid *edid);
    const gchar *       gcm_edid_get_serial_number          (GcmEdid *edid);
    const gchar *       gcm_edid_get_eisa_id                (GcmEdid *edid);
    const gchar *       gcm_edid_get_checksum               (GcmEdid *edid);
    const gchar *       gcm_edid_get_pnp_id                 (GcmEdid *edid);
    guint               gcm_edid_get_width                  (GcmEdid *edid);
    guint               gcm_edid_get_height                 (GcmEdid *edid);
    gfloat              gcm_edid_get_gamma                  (GcmEdid *edid);
    const GcmColorYxy * gcm_edid_get_red                    (GcmEdid *edid);
    const GcmColorYxy * gcm_edid_get_green                  (GcmEdid *edid);
    const GcmColorYxy * gcm_edid_get_blue                   (GcmEdid *edid);
    const GcmColorYxy * gcm_edid_get_white                  (GcmEdid *edid);
                        GcmEdidPrivate;

## Object Hierarchy

      GObject
       +----GcmEdid

## Properties

      "blue"                     GcmColorYxy*          : Read
      "checksum"                 gchar*                : Read
      "eisa-id"                  gchar*                : Read
      "gamma"                    gfloat                : Read
      "green"                    GcmColorYxy*          : Read
      "height"                   guint                 : Read
      "monitor-name"             gchar*                : Read
      "pnp-id"                   gchar*                : Read
      "red"                      GcmColorYxy*          : Read
      "serial-number"            gchar*                : Read
      "vendor-name"              gchar*                : Read
      "white"                    GcmColorYxy*          : Read
      "width"                    guint                 : Read

## Description

This object parses EDID data blocks.

## Details

### struct GcmEdid

    struct GcmEdid;

### struct GcmEdidClass

    struct GcmEdidClass {
    	GObjectClass parent_class;
    	/* padding for future expansion */
    	void (*_gcm_reserved1) (void);
    	void (*_gcm_reserved2) (void);
    	void (*_gcm_reserved3) (void);
    	void (*_gcm_reserved4) (void);
    	void (*_gcm_reserved5) (void);
    };

### gcm_edid_new ()

    GcmEdid *           gcm_edid_new                        (void);

Returns : | a new GcmEdid object.

Since 2.91.1

### gcm_edid_reset ()

    void                gcm_edid_reset                      (GcmEdid *edid);

Resets all the cached values in this object.

`edid` : | a valid GcmEdid instance

Since 2.91.1

### gcm_edid_parse ()

    gboolean            gcm_edid_parse                      (GcmEdid *edid,
                                                             const guint8 *data,
                                                             gsize length,
                                                             GError **error);

Parses an EDID block, checking for sanity and decoding anything important.

`edid` : | a valid GcmEdid instance
`data` : | the EDID block
`length` : | the data length, typically a multiple of 128
`error` : | a valid GError or `NULL`
Returns : | `TRUE` for success.

Since 2.91.1

### gcm_edid_get_monitor_name ()

    const gchar *       gcm_edid_get_monitor_name           (GcmEdid *edid);

Gets the monitor name.

`edid` : | a valid GcmEdid instance
Returns : | a null terminaled string value

Since 2.91.1

### gcm_edid_get_vendor_name ()

    const gchar *       gcm_edid_get_vendor_name            (GcmEdid *edid);

Gets the vendor name.

`edid` : | a valid GcmEdid instance
Returns : | a null terminaled string value

Since 2.91.1

### gcm_edid_get_serial_number ()

    const gchar *       gcm_edid_get_serial_number          (GcmEdid *edid);

Gets the device serial number.

`edid` : | a valid GcmEdid instance
Returns : | a null terminaled string value

Since 2.91.1

### gcm_edid_get_eisa_id ()

    const gchar *       gcm_edid_get_eisa_id                (GcmEdid *edid);

Gets the EISA ID.

`edid` : | a valid GcmEdid instance
Returns : | a null terminaled string value

Since 2.91.1

### gcm_edid_get_checksum ()

    const gchar *       gcm_edid_get_checksum               (GcmEdid *edid);

Gets the EDID MD5 checksum, which is often useful to compare binary blobs.

`edid` : | a valid GcmEdid instance
Returns : | a null terminaled string value

Since 2.91.1

### gcm_edid_get_pnp_id ()

    const gchar *       gcm_edid_get_pnp_id                 (GcmEdid *edid);

Gets the device PNP ID..

`edid` : | a valid GcmEdid instance
Returns : | a null terminaled string value

Since 2.91.1

### gcm_edid_get_width ()

    guint               gcm_edid_get_width                  (GcmEdid *edid);

Gets the width of the panel.

`edid` : | a valid GcmEdid instance
Returns : | the width in mm.

Since 2.91.1

### gcm_edid_get_height ()

    guint               gcm_edid_get_height                 (GcmEdid *edid);

Gets the panel height.

`edid` : | a valid GcmEdid instance
Returns : | the height in mm.

Since 2.91.1

### gcm_edid_get_gamma ()

    gfloat              gcm_edid_get_gamma                  (GcmEdid *edid);

Gets the monitor gamma.

`edid` : | a valid GcmEdid instance
Returns : | the gamma value, although this is typically 2.2

Since 2.91.1

### gcm_edid_get_red ()

    const GcmColorYxy * gcm_edid_get_red                    (GcmEdid *edid);

Gets the monitor red chromaticity value.

`edid` : | a valid GcmEdid instance
Returns : | the GcmColorYxy value

Since 2.91.1

### gcm_edid_get_green ()

    const GcmColorYxy * gcm_edid_get_green                  (GcmEdid *edid);

Gets the monitor green chromaticity value.

`edid` : | a valid GcmEdid instance
Returns : | the GcmColorYxy value

Since 2.91.1

### gcm_edid_get_blue ()

    const GcmColorYxy * gcm_edid_get_blue                   (GcmEdid *edid);

Gets the monitor red chromaticity value.

`edid` : | a valid GcmEdid instance
Returns : | the GcmColorYxy value

Since 2.91.1

### gcm_edid_get_white ()

    const GcmColorYxy * gcm_edid_get_white                  (GcmEdid *edid);

Gets the monitor white chromaticity value.

`edid` : | a valid GcmEdid instance
Returns : | the GcmColorYxy value

Since 2.91.1

### GcmEdidPrivate

    typedef struct _GcmEdidPrivate GcmEdidPrivate;

Private GcmEdid data

## Property Details

### The `"blue"` property

      "blue"                     GcmColorYxy*          : Read

### The `"checksum"` property

      "checksum"                 gchar*                : Read

Default value: NULL

### The `"eisa-id"` property

      "eisa-id"                  gchar*                : Read

Default value: NULL

### The `"gamma"` property

      "gamma"                    gfloat                : Read

Allowed values: [1,5]

Default value: 1

### The `"green"` property

      "green"                    GcmColorYxy*          : Read

### The `"height"` property

      "height"                   guint                 : Read

Default value: 0

### The `"monitor-name"` property

      "monitor-name"             gchar*                : Read

Default value: NULL

### The `"pnp-id"` property

      "pnp-id"                   gchar*                : Read

Default value: NULL

### The `"red"` property

      "red"                      GcmColorYxy*          : Read

### The `"serial-number"` property

      "serial-number"            gchar*                : Read

Default value: NULL

### The `"vendor-name"` property

      "vendor-name"              gchar*                : Read

Default value: NULL

### The `"white"` property

      "white"                    GcmColorYxy*          : Read

### The `"width"` property

      "width"                    guint                 : Read

Default value: 0