From d1f386db72b5374b11c9df061a5ff2e6e8adc610 Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Fri, 28 May 2021 12:43:29 +0200 Subject: 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. --- src/AS_DCP_JXS.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/AS_DCP_JXS.cpp') 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); -- cgit v1.2.3