diff --git a/source/Lib/DecoderLib/VLCReader.cpp b/source/Lib/DecoderLib/VLCReader.cpp index 0b90a6aa963403abcc2269be0b008e43aebfb096..6194bf22302a99422ad24c1420c3e308c7c90a25 100644 --- a/source/Lib/DecoderLib/VLCReader.cpp +++ b/source/Lib/DecoderLib/VLCReader.cpp @@ -1120,6 +1120,10 @@ void HLSyntaxReader::parseVUI(VUI* pcVUI, SPS *pcSPS) uint32_t symbol; +#if JVET_R0090_VUI + READ_FLAG(symbol, "vui_general_progressive_source_flag" ); pcVUI->setProgressiveSourceFlag(symbol ? true : false); + READ_FLAG(symbol, "vui_general_interlaced_source_flag" ); pcVUI->setInterlacedSourceFlag(symbol ? true : false); +#endif READ_FLAG( symbol, "vui_aspect_ratio_info_present_flag"); pcVUI->setAspectRatioInfoPresentFlag(symbol); if (pcVUI->getAspectRatioInfoPresentFlag()) { @@ -1147,10 +1151,6 @@ void HLSyntaxReader::parseVUI(VUI* pcVUI, SPS *pcSPS) READ_FLAG( symbol, "vui_video_full_range_flag"); pcVUI->setVideoFullRangeFlag(symbol); } -#if JVET_R0090_VUI - READ_FLAG(symbol, "general_progressive_source_flag" ); pcVUI->setProgressiveSourceFlag(symbol ? true : false); - READ_FLAG(symbol, "general_interlaced_source_flag" ); pcVUI->setInterlacedSourceFlag(symbol ? true : false); -#endif READ_FLAG( symbol, "vui_chroma_loc_info_present_flag"); pcVUI->setChromaLocInfoPresentFlag(symbol); if (pcVUI->getChromaLocInfoPresentFlag()) { diff --git a/source/Lib/EncoderLib/VLCWriter.cpp b/source/Lib/EncoderLib/VLCWriter.cpp index 57da1acfe83d534ede8ab130d690b1f79f42ed0f..57ed7ba9814fc4ff17219200e9555826bb315f3e 100644 --- a/source/Lib/EncoderLib/VLCWriter.cpp +++ b/source/Lib/EncoderLib/VLCWriter.cpp @@ -684,6 +684,10 @@ void HLSWriter::codeVUI( const VUI *pcVUI, const SPS* pcSPS ) #endif +#if JVET_R0090_VUI + WRITE_FLAG(pcVUI->getProgressiveSourceFlag(), "vui_general_progressive_source_flag" ); + WRITE_FLAG(pcVUI->getInterlacedSourceFlag(), "vui_general_interlaced_source_flag" ); +#endif WRITE_FLAG(pcVUI->getAspectRatioInfoPresentFlag(), "vui_aspect_ratio_info_present_flag"); if (pcVUI->getAspectRatioInfoPresentFlag()) { @@ -708,10 +712,6 @@ void HLSWriter::codeVUI( const VUI *pcVUI, const SPS* pcSPS ) WRITE_CODE(pcVUI->getMatrixCoefficients(), 8, "vui_matrix_coeffs"); WRITE_FLAG(pcVUI->getVideoFullRangeFlag(), "vui_video_full_range_flag"); } -#if JVET_R0090_VUI - WRITE_FLAG(pcVUI->getProgressiveSourceFlag(), "general_progressive_source_flag" ); - WRITE_FLAG(pcVUI->getInterlacedSourceFlag(), "general_interlaced_source_flag" ); -#endif WRITE_FLAG(pcVUI->getChromaLocInfoPresentFlag(), "vui_chroma_loc_info_present_flag"); if (pcVUI->getChromaLocInfoPresentFlag()) {