Fix DebugBitstream issue caused by copying values for adaptive clipping
This commit does not change the performance. A function is created to avoid code reduplication.
The removed error can be reproduced using the workflow Encode - Rewrite - Decode using CTC conditions for BQSquare QP37 GOP02
-
Encode:
EncoderApp.exe -c encoder_randomaccess_ecm.cfg -c classD_randomaccess.cfg -c BQSquare.cfg --SEIDecodedPictureHash=1 --PrintHexPSNR=1 --FramesToBeEncoded=65 --IntraPeriod=64 --FrameSkip=128 -q 37 -o rec.yuv --Verbosity=6 -b encoded.bin
-
Rewrite (no need to specify DebugPOC):
EncoderApp.exe -c encoder_randomaccess_ecm.cfg -c classD_randomaccess.cfg -c BQSquare.cfg --SEIDecodedPictureHash=1 --PrintHexPSNR=1 --FramesToBeEncoded=65 --IntraPeriod=64 --FrameSkip=128 -q 37 -o rec.yuv --Verbosity=6 -b recoded.bin --DebugBitstream=encoded.bin
-
Decode:
DecoderApp.exe -b recoded.bin