imflib.colorschemes

st2067-102-2067: Common Image Pixel Color Schemes

Common Image Pixel Color Encoding Schemes and related classes

Based on st-2067-102-2017: https://ieeexplore.ieee.org/document/8058111

class imflib.colorschemes.Color6FullRGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit full-range RGB components with COLOR.6 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color6FullRGB12(r: int, g: int, b: int)

Bases: ColorEncoding

12-bit full-range RGB components with COLOR.6 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color6FullRGB16(r: int, g: int, b: int)

Bases: ColorEncoding

16-bit full-range RGB components with COLOR.6 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color6RGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit RGB components with COLOR.6 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color6RGB12(r: int, g: int, b: int)

Bases: ColorEncoding

12-bit RGB components with COLOR.6 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color6RGB16(r: int, g: int, b: int)

Bases: ColorEncoding

16-bit RGB components with COLOR.6 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color7FullRGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit full-range RGB components with COLOR.7 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color7FullRGB12(r: int, g: int, b: int)

Bases: ColorEncoding

12-bit full-range RGB components with COLOR.7 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color7FullRGB16(r: int, g: int, b: int)

Bases: ColorEncoding

16-bit full-range RGB components with COLOR.7 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color7RGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit RGB components with COLOR.7 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color7RGB12(r: int, g: int, b: int)

Bases: ColorEncoding

12-bit RGB components with COLOR.7 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color7RGB16(r: int, g: int, b: int)

Bases: ColorEncoding

16-bit RGB components with COLOR.7 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Color7YCbCr10(y: int, cb: int, cr: int)

Bases: ColorEncoding

10-bit YCbCr components with COLOR.7 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.Color7YCbCr12(y: int, cb: int, cr: int)

Bases: ColorEncoding

12-bit YCbCr components with COLOR.7 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.Color7YCbCr16(y: int, cb: int, cr: int)

Bases: ColorEncoding

16-bit YCbCr components with COLOR.7 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.ColorEncoding

Bases: ABC

Abstract base class for color encoding schemes

static xsd_validate_color_values(vals: Iterable, min_val: Union[int, float], max_val: Union[int, float], count: int, val_type: type)

Generic function for parsing these color value lists

class imflib.colorschemes.Rec2020FullRGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit full-range RGB components with COLOR.5 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Rec2020FullRGB12(r: int, g: int, b: int)

Bases: ColorEncoding

12-bit full-range RGB components with COLOR.5 colorimetry and QE.2 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Rec2020RGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit RGB components with COLOR.5 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Rec2020RGB12(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit RGB components with COLOR.5 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Rec2020YCbCr10(y: int, cb: int, cr: int)

Bases: ColorEncoding

10-bit Rec2020 YCbCr components with COLOR.5 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.Rec2020YCbCr12(y: int, cb: int, cr: int)

Bases: ColorEncoding

12-bit Rec2020 YCbCr components with COLOR.5 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.Rec709FullRGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit full-range RGB components with COLOR.3 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Rec709RGB10(r: int, g: int, b: int)

Bases: ColorEncoding

10-bit RGB components with COLOR.3 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Rec709RGB8(r: int, g: int, b: int)

Bases: ColorEncoding

8-bit RGB components with COLOR.3 colorimetry and QE.1 quanitization

b: int

Blue primary

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

g: int

Green primary

r: int

Red primary

class imflib.colorschemes.Rec709YCbCr10(y: int, cb: int, cr: int)

Bases: ColorEncoding

10-bit YCbCr components with COLOR.3 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.Rec709YCbCr8(y: int, cb: int, cr: int)

Bases: ColorEncoding

8-bit YCbCr components with COLOR.3 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.XvYCCYCbCr10(y: int, cb: int, cr: int)

Bases: ColorEncoding

10-bit Extended-Gamut YCbCr components with COLOR.4 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance

class imflib.colorschemes.XvYCCYCbCr8(y: int, cb: int, cr: int)

Bases: ColorEncoding

8-bit Extended-Gamut YCbCr components with COLOR.4 colorimetry and QE.1 quanitization

cb: int

Chroma B

cr: int

Chroma R

classmethod from_xml(xml: Element, ns: Optional[dict] = None)

Parse from XML

y: int

Luminance