and frameNumInPicOrderCntCycle are derived as picOrderCntCycleCnt=(absFrameNum-1)/num_ref_frames_in_pic_order_cnt_cycle frameNumInPicOrderCntCycle = ( absFrameNum 1)% num_ref_frames_in_pic_order_cnt_cycle (8-8) The variable expectedPicOrderCnt is derived as specified by the following pseudo-code: if( absFrameNum >0){ expectedPicOrderCnt=picOrderCntCycleCnt = * ExpectedDeltaPerPicOrderCntCycle for(i=0;i<= frameNumInPicOrderCntCycle; i++ ) expectedPicOrderCnt=expectedPicOrderCnt + = offset_for_ref_frame[i] } else expectedPicOrderCnt= 0 if( nal_ref ide ==0) (8-9) expectedPicOrderCnt = expectedPicOrderCnt + offset_for_non_ref_pic The variables TopFieldOrderCnt or BottomFieldOrderCnt are derived as specified by the following pseudo-code: if( !field_pic_flag) { TopFieldOrderCnt=expectedPicOrderCnt+delta_pic_order_cnt[0] = BottomFieldOrderCnt = TopFieldOrderCnt + offset_for_top_to_bottom_field+delta_pic_order_cnt[1 (8-10) } else if( !bottom_field_flag ) TopFieldOrderCnt=expectedPicOrderCnt+delta_pic_order_cnt[0 = BottomFieldOrderCnt = expectedPicOrderCnt + offset_for_top_to_bottom_field + delta_pic_order_cnt[ 0] 8.2.1.3 Decoding process for picture order count type 2 This process is invoked when pic_order_cnt_type is equal to 2. Outputs of this process are either or both TopFieldOrderCnt or BottomFieldOrderCnt. Let prevFrameNum be equal to the frame_num of the previous picture in decoding order. When the current picture is not an IDR picture, the variable prevFrameNumOffset is derived as follows: If the previous picture in decoding order included a nemory_management_control_operation equal to 5, prevFrameNumOffset is set equal to 0. Otherwise (the previous picture in decoding order did not include a memory_management_control_operation equal to 5), prevFrameNumOffse is set equal to the value of FrameNumOffset of the previous picture in decoding order. NOTE 1 - When gaps_in_frame_num_value_allowed_flag is equal to 1, the previous picture in decoding order may be a "non-existing" frame inferred by the decoding process for 