(record: AvcDecoderConfigurationRecord)
| 267 | }; |
| 268 | |
| 269 | export const generateAvcCodecString = (record: AvcDecoderConfigurationRecord) => { |
| 270 | const bytes = new Uint8Array([ |
| 271 | record.avcProfileIndication, |
| 272 | record.profileCompatibility, |
| 273 | record.avcLevelIndication, |
| 274 | ]); |
| 275 | |
| 276 | return `avc1.${bytesToHexString(bytes)}`; |
| 277 | }; |
| 278 | |
| 279 | /** Serializes an AvcDecoderConfigurationRecord into the format specified in Section 5.3.3.1 of ISO 14496-15. */ |
| 280 | export const serializeAvcDecoderConfigurationRecord = (record: AvcDecoderConfigurationRecord) => { |
no test coverage detected