MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / skipScalingListData

Function skipScalingListData

src/codec_data.ts:645–662  ·  view source on GitHub ↗
(bitstream: Bitstream)

Source from the content-addressed store, hash-verified

643};
644
645const 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
664const skipAllStRefPicSets = (bitstream: Bitstream, num_short_term_ref_pic_sets: number) => {
665 const NumDeltaPocs: number[] = [];

Callers 1

Calls 3

readExpGolombFunction · 0.85
readSignedExpGolombFunction · 0.85
readBitsMethod · 0.80

Tested by

no test coverage detected