(bitstream: Bitstream)
| 643 | }; |
| 644 | |
| 645 | const skipScalingListData = (bitstream: Bitstream) => { |
| 646 | for (let sizeId = 0; sizeId < 4; sizeId++) { |
| 647 | for (let matrixId = 0; matrixId < (sizeId === 3 ? 2 : 6); matrixId++) { |
| 648 | const scaling_list_pred_mode_flag = bitstream.readBits(1); |
| 649 | if (!scaling_list_pred_mode_flag) { |
| 650 | readExpGolomb(bitstream); // scaling_list_pred_matrix_id_delta |
| 651 | } else { |
| 652 | const coefNum = Math.min(64, 1 << (4 + (sizeId << 1))); |
| 653 | if (sizeId > 1) { |
| 654 | readSignedExpGolomb(bitstream); // scaling_list_dc_coef_minus8 |
| 655 | } |
| 656 | for (let i = 0; i < coefNum; i++) { |
| 657 | readSignedExpGolomb(bitstream); // scaling_list_delta_coef |
| 658 | } |
| 659 | } |
| 660 | } |
| 661 | } |
| 662 | }; |
| 663 | |
| 664 | const skipAllStRefPicSets = (bitstream: Bitstream, num_short_term_ref_pic_sets: number) => { |
| 665 | const NumDeltaPocs: number[] = []; |
no test coverage detected