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

Function skipSubLayerHrdParameters

src/codec_data.ts:838–852  ·  view source on GitHub ↗
(
	bitstream: Bitstream,
	CpbCnt: number,
	sub_pic_hrd_params_present_flag: boolean,
)

Source from the content-addressed store, hash-verified

836};
837
838const skipSubLayerHrdParameters = (
839 bitstream: Bitstream,
840 CpbCnt: number,
841 sub_pic_hrd_params_present_flag: boolean,
842) => {
843 for (let i = 0; i < CpbCnt; i++) {
844 readExpGolomb(bitstream); // bit_rate_value_minus1[i]
845 readExpGolomb(bitstream); // cpb_size_value_minus1[i]
846 if (sub_pic_hrd_params_present_flag) {
847 readExpGolomb(bitstream); // cpb_size_du_value_minus1[i]
848 readExpGolomb(bitstream); // bit_rate_du_value_minus1[i]
849 }
850 bitstream.readBits(1); // cbr_flag[i]
851 }
852};
853
854export const generateHevcCodecString = (record: HevcDecoderConfigurationRecord) => {
855 const generalProfileSpace = record.generalProfileSpace;

Callers 1

skipHrdParametersFunction · 0.85

Calls 2

readExpGolombFunction · 0.85
readBitsMethod · 0.80

Tested by

no test coverage detected