-
Notifications
You must be signed in to change notification settings - Fork 80
/
colorspace.h
34 lines (29 loc) · 1.25 KB
/
colorspace.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef NMOS_COLORSPACE_H
#define NMOS_COLORSPACE_H
#include "nmos/string_enum.h"
namespace nmos
{
// Colorspace (used in video flows)
// See https://specs.amwa.tv/is-04/releases/v1.2.0/APIs/schemas/with-refs/flow_video.html
// and https://specs.amwa.tv/nmos-parameter-registers/branches/main/flow-attributes/#colorspace
DEFINE_STRING_ENUM(colorspace)
namespace colorspaces
{
// Recommendation ITU-R BT.601-7
const colorspace BT601{ U("BT601") };
// Recommendation ITU-R BT.709-6
const colorspace BT709{ U("BT709") };
// Recommendation ITU-R BT.2020-2
const colorspace BT2020{ U("BT2020") };
// Recommendation ITU-R BT.2100 Table 2 titled "System colorimetry"
const colorspace BT2100{ U("BT2100") };
// Since IS-04 v1.3, colorspace values may be defined in the Flow Attributes register of the NMOS Parameter Registers
// SMPTE ST 2065-1 Academy Color Encoding Specification (ACES)
const colorspace ST2065_1{ U("ST2065-1") };
// SMPTE ST 2065-3 Academy Density Exchange Encoding (ADX)
const colorspace ST2065_3{ U("ST2065-3") };
// ISO 11664-1 CIE 1931 standard colorimetric system
const colorspace XYZ{ U("XYZ") };
}
}
#endif