diff options
| author | Thomas Richter <thomas.richter@iis.fraunhofer.de> | 2021-05-28 12:43:29 +0200 |
|---|---|---|
| committer | Thomas Richter <thomas.richter@iis.fraunhofer.de> | 2021-05-28 12:43:29 +0200 |
| commit | d1f386db72b5374b11c9df061a5ff2e6e8adc610 (patch) | |
| tree | 8a010d36b349fcd790fceeacbea5ca5306ccd8fb /src/AS_DCP_JXS.cpp | |
| parent | f9d7fbc33aa571c547d916b145712469efd9f4b8 (diff) | |
Added a first version of JXS support for as-02-wrap.
Added recognition of JXS files in AS_DCP_MXF.
In case color specifications are missing from the original
picture descriptor, JXS_PDesc_to_MD() no longer fails, it
just does not fill in the Essence descriptor and leaves that
to the caller, e.g. as-02-wrap.
Diffstat (limited to 'src/AS_DCP_JXS.cpp')
| -rw-r--r-- | src/AS_DCP_JXS.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/AS_DCP_JXS.cpp b/src/AS_DCP_JXS.cpp index 3dbbedc..bf4dbe6 100644 --- a/src/AS_DCP_JXS.cpp +++ b/src/AS_DCP_JXS.cpp @@ -203,6 +203,8 @@ ASDCP::JXS_PDesc_to_MD(const JXS::PictureDescriptor& PDesc, // switch(PDesc.Primaries) { + case 0: // If this is not set, do not update the essence descriptor. + break; case 1: EssenceDescriptor.ColorPrimaries = dict.ul(ASDCP::MDD_ColorPrimaries_ITU709); break; @@ -230,6 +232,8 @@ ASDCP::JXS_PDesc_to_MD(const JXS::PictureDescriptor& PDesc, } switch(PDesc.TransferCurve) { + case 0: + break; // If this is not set, do not update the transfer curve. case 1: case 6: EssenceDescriptor.TransferCharacteristic = dict.ul(ASDCP::MDD_TransferCharacteristic_ITU709); |
