Skip to content

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

  1. 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

  2. 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 

  3. Decode:

    DecoderApp.exe -b recoded.bin

Edited by Gleb Verba

Merge request reports

Loading