Fix parcat for multiple tiles in pic
parcat does not support multiple slices in a picture
Example to reproduce:
bin/EncoderAppStatic -c cfg/encoder_randomaccess_vtm.cfg --OutputBitDepth=10 --OutputBitDepthC=10 --FramesToBeEncoded=33 --IntraPeriod=32 --Level=5.2 --QP=37 --FrameRate=30 --SourceHeight=240 --SourceWidth=416 --InputFile=RaceHorsesM_416x240_30fps_8bit_420pf.yuv --BitstreamFile=str/RaceHorsesM_416x240_QP37_FTBE0to32.vvc --FrameSkip=0 --InputBitDepth=8 --InputChromaFormat=420 --SEIDecodedPictureHash=1 --TileUniformSpacing=1 --NumTileColumnsMinus1=2 --NumTileRowsMinus1=1 --SliceMode=3 --SliceArgument=1
bin/EncoderAppStatic -c cfg/encoder_randomaccess_vtm.cfg --OutputBitDepth=10 --OutputBitDepthC=10 --FramesToBeEncoded=33 --IntraPeriod=32 --Level=5.2 --QP=37 --FrameRate=30 --SourceHeight=240 --SourceWidth=416 --InputFile=RaceHorsesM_416x240_30fps_8bit_420pf.yuv --BitstreamFile=str/RaceHorsesM_416x240_QP37_FTBE32to64.vvc --FrameSkip=32 --InputBitDepth=8 --InputChromaFormat=420 --SEIDecodedPictureHash=1 --TileUniformSpacing=1 --NumTileColumnsMinus1=2 --NumTileRowsMinus1=1 --SliceMode=3 --SliceArgument=1
bin/parcatStatic str/RaceHorsesM_416x240_QP37_FTBE0to32.vvc str/RaceHorsesM_416x240_QP37_FTBE32to64.vvc str/RaceHorsesM_416x240_QP37_ippe.vvc
bin/DecoderAppStaticd -b str/RaceHorsesM_416x240_QP37_ippe.vvc
parcat does not consider slice_segment_address, which is not coded in the usual one slice only config. I also incorrectly counts each slice as a picture.
Edited by Karsten Suehring