class VideoColorSpace

Defined at line 29 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.h

Described in ISO 23001-8:2016

Public Members

PrimaryID primaries
TransferID transfer
MatrixID matrix
RangeID range

Public Methods

void VideoColorSpace ()

Defined at line 29 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

void VideoColorSpace (int primaries, int transfer, int matrix, gfx::ColorSpace::RangeID range)

Defined at line 37 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

void VideoColorSpace (PrimaryID primaries, TransferID transfer, MatrixID matrix, gfx::ColorSpace::RangeID range)

Defined at line 31 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

bool operator== (const VideoColorSpace & other)

Defined at line 46 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

bool operator!= (const VideoColorSpace & other)

Defined at line 51 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

bool IsSpecified ()

Returns true if any of the fields have a value other

than INVALID or UNSPECIFIED.

Defined at line 56 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

PrimaryID GetPrimaryID (int primary)

These will return INVALID if the number you give it

is not a valid enum value.

Defined at line 9 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

TransferID GetTransferID (int transfer)

Defined at line 17 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

MatrixID GetMatrixID (int matrix)

Defined at line 23 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

VideoColorSpace REC709 ()

Defined at line 294 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

VideoColorSpace REC601 ()

Defined at line 298 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

VideoColorSpace JPEG ()

Defined at line 303 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.cc

gfx::ColorSpace ToGfxColorSpace ()

Enumerations

enum PrimaryID
Name Value
INVALID 0
BT709 1
UNSPECIFIED 2
BT470M 4
BT470BG 5
SMPTE170M 6
SMPTE240M 7
FILM 8
BT2020 9
SMPTEST428_1 10
SMPTEST431_2 11
SMPTEST432_1 12
EBU_3213_E 22
kMaxValue EBU_3213_E

These values are persisted to logs. Entries should not be renumbered or

removed and numeric values should never be reused.

Please keep in sync with "VideoColorSpace.PrimaryID"

in src/tools/metrics/histograms/enums.xml.

Table 2

Defined at line 36 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.h

enum TransferID
Name Value
INVALID 0
BT709 1
UNSPECIFIED 2
GAMMA22 4
GAMMA28 5
SMPTE170M 6
SMPTE240M 7
LINEAR 8
LOG 9
LOG_SQRT 10
IEC61966_2_4 11
BT1361_ECG 12
IEC61966_2_1 13
BT2020_10 14
BT2020_12 15
SMPTEST2084 16
SMPTEST428_1 17
ARIB_STD_B67 18
kMaxValue ARIB_STD_B67

These values are persisted to logs. Entries should not be renumbered or

removed and numeric values should never be reused.

Please keep in sync with "VideoColorSpace.TransferID"

in src/tools/metrics/histograms/enums.xml.

Table 3

Defined at line 58 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.h

enum MatrixID
Name Value
RGB 0
BT709 1
UNSPECIFIED 2
FCC 4
BT470BG 5
SMPTE170M 6
SMPTE240M 7
YCOCG 8
BT2020_NCL 9
BT2020_CL 10
YDZDX 11
INVALID 255
kMaxValue INVALID

Table 4

Defined at line 84 of file ../../src/media/third_party/chromium_media/media/base/video_color_space.h