Parsing HEVC (H265) pseudocode in reference guide

Viewed 35

Looking the H265 reference at

https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-H.265-201802-S!!PDF-E&type=items

go to function st_ref_pic_set( stRpsIdx ) at 7.3.7

inside that function there is a for loop with j variable.

for (j=0; j<=NumDeltaPocs[ refRpsIdc], j++){

}

where NumDeltaPocs is derived as:

NumDeltaPocs[ stRpsIdx ] = NumNegativePics[ stRpsIdx ] 
                         + NumPositivePics[ stRpsIdx ] 

as you can see, it seems that num_negative_pics and num_positive_pics are unknown values. They are parsed in the else branch in pseudocode at 7.3.7

How can I implement that pseudocode?

0 Answers
Related