Commit cbc76d4c authored by Xin Zhao's avatar Xin Zhao

Change WRITE_UVLC and READ_UVLC by WRITE_FLAG and READ_FLAG, respectively

parent 877e2af5
Pipeline #2186 passed with stage
......@@ -1222,7 +1222,7 @@ void HLSyntaxReader::parseSPS(SPS* pcSPS)
#if MAX_TB_SIZE_SIGNALLING
#if JVET_O0545_MAX_TB_SIGNALLING
READ_UVLC( uiCode, "sps_max_luma_transform_size_64_flag"); pcSPS->setLog2MaxTbSize( uiCode + 5 );
READ_FLAG( uiCode, "sps_max_luma_transform_size_64_flag"); pcSPS->setLog2MaxTbSize( (uiCode ? 1 : 0) + 5 );
#else
// KJS: Not in syntax
READ_UVLC( uiCode, "log2_max_luma_transform_block_size_minus2" ); pcSPS->setLog2MaxTbSize( uiCode + 2 );
......
......@@ -829,7 +829,7 @@ void HLSWriter::codeSPS( const SPS* pcSPS )
#if MAX_TB_SIZE_SIGNALLING
#if JVET_O0545_MAX_TB_SIGNALLING
WRITE_UVLC( pcSPS->getLog2MaxTbSize() - 5, "sps_max_luma_transform_size_64_flag" );
WRITE_FLAG( (pcSPS->getLog2MaxTbSize() - 5) ? 1 : 0, "sps_max_luma_transform_size_64_flag" );
#else
// KJS: Not in syntax
WRITE_UVLC( pcSPS->getLog2MaxTbSize() - 2, "log2_max_luma_transform_block_size_minus2" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment