summaryrefslogtreecommitdiff
path: root/src/as-02-wrap.cpp
diff options
context:
space:
mode:
authorMatthew Sheby <44249925+msheby@users.noreply.github.com>2021-08-26 10:48:37 -0700
committerMatthew Sheby <44249925+msheby@users.noreply.github.com>2021-08-26 10:48:37 -0700
commit2953afce067913dd178eb083445a6efa2a8359ed (patch)
tree573de20cf596daf0c3f5a64184c918cb2ae9568b /src/as-02-wrap.cpp
parentf21af63f4257ce6f0025112ad08176d907a1577c (diff)
add support for COLOR.7
Diffstat (limited to 'src/as-02-wrap.cpp')
-rwxr-xr-xsrc/as-02-wrap.cpp11
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;
}