diff options
| author | Matthew Sheby <44249925+msheby@users.noreply.github.com> | 2021-08-26 10:48:37 -0700 |
|---|---|---|
| committer | Matthew Sheby <44249925+msheby@users.noreply.github.com> | 2021-08-26 10:48:37 -0700 |
| commit | 2953afce067913dd178eb083445a6efa2a8359ed (patch) | |
| tree | 573de20cf596daf0c3f5a64184c918cb2ae9568b /src/as-02-wrap.cpp | |
| parent | f21af63f4257ce6f0025112ad08176d907a1577c (diff) | |
add support for COLOR.7
Diffstat (limited to 'src/as-02-wrap.cpp')
| -rwxr-xr-x | src/as-02-wrap.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/as-02-wrap.cpp b/src/as-02-wrap.cpp index 713bcdb..387d07d 100755 --- a/src/as-02-wrap.cpp +++ b/src/as-02-wrap.cpp @@ -139,7 +139,7 @@ Options:\n\ Defaults to 4,194,304 (4MB)\n\ -c <num> - Select the IMF color system to be signaled:\n\ Application 2 (2067-20): 1, 2, or 3\n\ - Application 2e (2067-21): 4 or 5\n\ + Application 2e (2067-21): 4, 5, or 7\n\ All color system values assume YCbCr; also use -R for RGB\n\ -C <ul> - Set ChannelAssignment UL value\n\ -d <duration> - Number of frames to process, default all\n\ @@ -459,8 +459,15 @@ public: use_cdci_descriptor = true; break; + case '7': + coding_equations = g_dict->ul(MDD_CodingEquations_Rec2020); + transfer_characteristic = g_dict->ul(MDD_TransferCharacteristic_SMPTEST2084); + color_primaries = g_dict->ul(MDD_ColorPrimaries_ITU2020); + use_cdci_descriptor = true; + break; + default: - fprintf(stderr, "Unrecognized color system number, expecting one of 1-5.\n"); + fprintf(stderr, "Unrecognized color system number, expecting one of 1-5 or 7.\n"); return false; } |
