@remotion/media-parser 4.0.270 → 4.0.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aac-codecprivate.js +6 -13
- package/dist/add-avc-profile-to-track.js +5 -9
- package/dist/buffer-iterator.js +8 -13
- package/dist/combine-uint8-arrays.js +1 -5
- package/dist/containers/aac/parse-aac.js +9 -13
- package/dist/containers/aac/types.js +1 -2
- package/dist/containers/avc/codec-string.js +1 -5
- package/dist/containers/avc/color.js +3 -9
- package/dist/containers/avc/create-sps-pps-data.js +5 -9
- package/dist/containers/avc/interpret-sps.js +7 -13
- package/dist/containers/avc/key.js +1 -5
- package/dist/containers/avc/parse-avc.js +3 -7
- package/dist/containers/avc/sps-and-pps.js +1 -5
- package/dist/containers/flac/get-block-size.js +1 -5
- package/dist/containers/flac/get-channel-count.js +1 -5
- package/dist/containers/flac/get-duration-from-flac.js +1 -5
- package/dist/containers/flac/get-metadata-from-flac.js +1 -5
- package/dist/containers/flac/get-sample-rate.js +1 -5
- package/dist/containers/flac/parse-flac-frame.js +14 -19
- package/dist/containers/flac/parse-flac.js +15 -19
- package/dist/containers/flac/parse-header.js +1 -5
- package/dist/containers/flac/parse-metadata.js +1 -5
- package/dist/containers/flac/parse-streaminfo.js +3 -7
- package/dist/containers/flac/parse-unknown-block.js +1 -5
- package/dist/containers/flac/types.d.ts +2 -2
- package/dist/containers/flac/types.js +1 -2
- package/dist/containers/iso-base-media/base-media-box.js +1 -2
- package/dist/containers/iso-base-media/base-type.js +1 -2
- package/dist/containers/iso-base-media/esds/decoder-specific-config.js +1 -5
- package/dist/containers/iso-base-media/esds/esds-descriptors.js +5 -10
- package/dist/containers/iso-base-media/esds/esds.js +3 -7
- package/dist/containers/iso-base-media/ftyp.js +1 -5
- package/dist/containers/iso-base-media/get-actual-number-of-channels.js +4 -8
- package/dist/containers/iso-base-media/get-children.js +3 -7
- package/dist/containers/iso-base-media/get-keyframes.js +7 -11
- package/dist/containers/iso-base-media/get-moov-atom.js +21 -15
- package/dist/containers/iso-base-media/get-sample-positions-from-track.js +20 -24
- package/dist/containers/iso-base-media/get-video-codec-from-iso-track.d.ts +1 -1
- package/dist/containers/iso-base-media/get-video-codec-from-iso-track.js +3 -7
- package/dist/containers/iso-base-media/make-track.js +30 -34
- package/dist/containers/iso-base-media/mdat/mdat.js +16 -20
- package/dist/containers/iso-base-media/mdhd.js +1 -5
- package/dist/containers/iso-base-media/meta/hdlr.js +1 -5
- package/dist/containers/iso-base-media/meta/ilst.js +1 -5
- package/dist/containers/iso-base-media/moov/moov.js +3 -7
- package/dist/containers/iso-base-media/mvhd.js +7 -11
- package/dist/containers/iso-base-media/parse-boxes.js +5 -9
- package/dist/containers/iso-base-media/parse-icc-profile.js +4 -8
- package/dist/containers/iso-base-media/process-box.js +63 -67
- package/dist/containers/iso-base-media/stsd/av1c.js +1 -5
- package/dist/containers/iso-base-media/stsd/avcc.js +1 -5
- package/dist/containers/iso-base-media/stsd/colr.js +3 -7
- package/dist/containers/iso-base-media/stsd/ctts.js +1 -5
- package/dist/containers/iso-base-media/stsd/hvcc.js +3 -7
- package/dist/containers/iso-base-media/stsd/keys.js +1 -5
- package/dist/containers/iso-base-media/stsd/mebx.js +3 -7
- package/dist/containers/iso-base-media/stsd/pasp.js +1 -5
- package/dist/containers/iso-base-media/stsd/samples.js +8 -13
- package/dist/containers/iso-base-media/stsd/stco.js +1 -5
- package/dist/containers/iso-base-media/stsd/stsc.js +1 -5
- package/dist/containers/iso-base-media/stsd/stsd.js +3 -7
- package/dist/containers/iso-base-media/stsd/stss.js +1 -5
- package/dist/containers/iso-base-media/stsd/stsz.js +1 -5
- package/dist/containers/iso-base-media/stsd/stts.js +1 -5
- package/dist/containers/iso-base-media/tfdt.js +1 -5
- package/dist/containers/iso-base-media/tfhd.js +1 -5
- package/dist/containers/iso-base-media/tkhd.js +4 -8
- package/dist/containers/iso-base-media/to-date.js +1 -5
- package/dist/containers/iso-base-media/trak/trak.js +3 -7
- package/dist/containers/iso-base-media/traversal.d.ts +3 -2
- package/dist/containers/iso-base-media/traversal.js +42 -57
- package/dist/containers/iso-base-media/trun.js +2 -6
- package/dist/containers/iso-base-media/void-box.js +1 -2
- package/dist/containers/m3u/after-manifest-fetch.d.ts +5 -3
- package/dist/containers/m3u/after-manifest-fetch.js +13 -17
- package/dist/containers/m3u/fetch-m3u8-stream.d.ts +5 -1
- package/dist/containers/m3u/fetch-m3u8-stream.js +4 -12
- package/dist/containers/m3u/get-chunks.d.ts +1 -0
- package/dist/containers/m3u/get-chunks.js +6 -6
- package/dist/containers/m3u/get-duration-from-m3u.js +4 -8
- package/dist/containers/m3u/get-playlist.js +6 -12
- package/dist/containers/m3u/get-streams.d.ts +11 -5
- package/dist/containers/m3u/get-streams.js +5 -15
- package/dist/containers/m3u/iterate-over-segment-files.d.ts +19 -0
- package/dist/containers/m3u/iterate-over-segment-files.js +106 -0
- package/dist/containers/m3u/parse-directive.js +10 -10
- package/dist/containers/m3u/parse-m3u-manifest.js +3 -7
- package/dist/containers/m3u/parse-m3u-media-directive.d.ts +1 -0
- package/dist/containers/m3u/parse-m3u-media-directive.js +7 -7
- package/dist/containers/m3u/parse-m3u.js +13 -13
- package/dist/containers/m3u/parse-m3u8-text.js +3 -7
- package/dist/containers/m3u/parse-stream-inf.js +2 -7
- package/dist/containers/m3u/return-packets.d.ts +1 -1
- package/dist/containers/m3u/return-packets.js +14 -5
- package/dist/containers/m3u/run-over-m3u.js +10 -13
- package/dist/containers/m3u/sample-sorter.js +4 -8
- package/dist/containers/m3u/select-stream.d.ts +3 -2
- package/dist/containers/m3u/select-stream.js +9 -13
- package/dist/containers/m3u/types.d.ts +1 -1
- package/dist/containers/m3u/types.js +1 -2
- package/dist/containers/mp3/get-duration.js +5 -9
- package/dist/containers/mp3/get-frame-length.js +2 -7
- package/dist/containers/mp3/get-metadata-from-mp3.d.ts +2 -2
- package/dist/containers/mp3/get-metadata-from-mp3.js +1 -5
- package/dist/containers/mp3/id3-v1.js +1 -5
- package/dist/containers/mp3/id3.js +1 -5
- package/dist/containers/mp3/parse-mp3.js +7 -11
- package/dist/containers/mp3/parse-mpeg-header.js +10 -14
- package/dist/containers/mp3/samples-per-mpeg-file.js +1 -5
- package/dist/containers/riff/expect-riff-box.js +11 -15
- package/dist/containers/riff/get-duration.js +7 -12
- package/dist/containers/riff/get-tracks-from-avi.js +20 -28
- package/dist/containers/riff/is-movi.js +1 -5
- package/dist/containers/riff/parse-avih.js +1 -5
- package/dist/containers/riff/parse-isft.js +1 -5
- package/dist/containers/riff/parse-list-box.js +3 -7
- package/dist/containers/riff/parse-movi.js +13 -18
- package/dist/containers/riff/parse-riff-body.js +9 -13
- package/dist/containers/riff/parse-riff-box.js +9 -13
- package/dist/containers/riff/parse-riff-header.js +1 -5
- package/dist/containers/riff/parse-riff.js +5 -9
- package/dist/containers/riff/parse-strf.js +1 -5
- package/dist/containers/riff/parse-strh.js +3 -7
- package/dist/containers/riff/parse-video-section.js +7 -11
- package/dist/containers/riff/riff-box.js +1 -2
- package/dist/containers/riff/timescale.js +1 -4
- package/dist/containers/riff/traversal.js +7 -15
- package/dist/containers/transport-stream/adts-header.js +6 -10
- package/dist/containers/transport-stream/boxes.js +1 -2
- package/dist/containers/transport-stream/discard-rest-of-packet.js +2 -7
- package/dist/containers/transport-stream/find-separator.js +1 -4
- package/dist/containers/transport-stream/get-tracks.js +7 -12
- package/dist/containers/transport-stream/handle-aac-packet.js +12 -16
- package/dist/containers/transport-stream/handle-avc-packet.js +22 -26
- package/dist/containers/transport-stream/next-pes-header-store.js +1 -5
- package/dist/containers/transport-stream/parse-packet.js +13 -17
- package/dist/containers/transport-stream/parse-pat.js +5 -10
- package/dist/containers/transport-stream/parse-pes.js +1 -5
- package/dist/containers/transport-stream/parse-pmt.js +3 -7
- package/dist/containers/transport-stream/parse-stream-packet.js +13 -17
- package/dist/containers/transport-stream/parse-transport-stream.js +5 -9
- package/dist/containers/transport-stream/process-stream-buffers.js +10 -15
- package/dist/containers/transport-stream/traversal.js +4 -10
- package/dist/containers/wav/get-duration-from-wav.js +3 -8
- package/dist/containers/wav/get-metadata-from-wav.d.ts +2 -2
- package/dist/containers/wav/get-metadata-from-wav.js +1 -5
- package/dist/containers/wav/parse-data.js +5 -9
- package/dist/containers/wav/parse-fmt.js +3 -7
- package/dist/containers/wav/parse-header.js +1 -5
- package/dist/containers/wav/parse-id3.js +1 -5
- package/dist/containers/wav/parse-list.js +1 -5
- package/dist/containers/wav/parse-video-section.js +3 -7
- package/dist/containers/wav/parse-wav.js +15 -19
- package/dist/containers/wav/types.d.ts +2 -2
- package/dist/containers/wav/types.js +1 -2
- package/dist/containers/webm/allowed-partial-segments.js +1 -4
- package/dist/containers/webm/av1-codec-private.js +3 -7
- package/dist/containers/webm/color.js +6 -10
- package/dist/containers/webm/description.js +6 -10
- package/dist/containers/webm/get-ready-tracks.js +13 -18
- package/dist/containers/webm/get-sample-from-block.js +12 -16
- package/dist/containers/webm/make-track.js +43 -48
- package/dist/containers/webm/parse-ebml.js +14 -19
- package/dist/containers/webm/parse-webm-header.js +3 -7
- package/dist/containers/webm/segments/all-segments.js +168 -173
- package/dist/containers/webm/segments/block-simple-block-flags.js +4 -8
- package/dist/containers/webm/segments/track-entry.js +1 -5
- package/dist/containers/webm/segments.js +9 -13
- package/dist/containers/webm/traversal.js +37 -67
- package/dist/convert-audio-or-video-sample.js +1 -5
- package/dist/download-and-parse-media.js +44 -47
- package/dist/emit-available-info.js +38 -38
- package/dist/emitter.js +1 -5
- package/dist/errors.d.ts +2 -17
- package/dist/errors.js +10 -30
- package/dist/esm/fetch.mjs +93 -67
- package/dist/esm/index.mjs +679 -175
- package/dist/esm/node.mjs +59 -36
- package/dist/esm/universal.mjs +323 -0
- package/dist/esm/web-file.mjs +55 -43
- package/dist/esm/web.mjs +257 -0
- package/dist/esm/worker-server-entry.mjs +13056 -0
- package/dist/esm/worker-server.mjs +12914 -0
- package/dist/esm/worker-web-entry.mjs +12969 -0
- package/dist/esm/worker.mjs +439 -0
- package/dist/fetch.js +1 -17
- package/dist/file-types/bmp.js +3 -7
- package/dist/file-types/detect-file-type.js +24 -38
- package/dist/file-types/index.js +22 -26
- package/dist/file-types/jpeg.js +4 -9
- package/dist/file-types/pdf.js +3 -7
- package/dist/file-types/png.js +4 -9
- package/dist/file-types/webp.js +3 -7
- package/dist/forward-controller.js +1 -5
- package/dist/get-audio-codec.js +25 -38
- package/dist/get-container.d.ts +3 -3
- package/dist/get-container.js +5 -10
- package/dist/get-dimensions.js +8 -13
- package/dist/get-duration.js +27 -34
- package/dist/get-fields-from-callbacks.js +1 -5
- package/dist/get-fps.js +24 -34
- package/dist/get-is-hdr.js +5 -10
- package/dist/get-keyframes.js +6 -11
- package/dist/get-location.js +4 -9
- package/dist/get-number-of-audio-channels.js +2 -7
- package/dist/get-sample-aspect-ratio.js +17 -30
- package/dist/get-sample-positions-from-lpcm.js +5 -9
- package/dist/get-sample-positions.js +1 -5
- package/dist/get-sample-rate.js +2 -7
- package/dist/get-tracks.d.ts +5 -0
- package/dist/get-tracks.js +37 -44
- package/dist/get-video-codec.js +26 -34
- package/dist/has-all-info.js +33 -38
- package/dist/index.d.ts +15 -11
- package/dist/index.js +34 -48
- package/dist/init-video.d.ts +1 -1
- package/dist/init-video.js +47 -20
- package/dist/internal-parse-media.js +36 -40
- package/dist/is-audio-structure.d.ts +2 -2
- package/dist/is-audio-structure.js +1 -5
- package/dist/log.js +8 -12
- package/dist/make-hvc1-codec-strings.js +1 -5
- package/dist/media-parser-controller.js +7 -11
- package/dist/metadata/get-metadata.d.ts +4 -4
- package/dist/metadata/get-metadata.js +17 -22
- package/dist/metadata/metadata-from-iso.d.ts +3 -3
- package/dist/metadata/metadata-from-iso.js +12 -17
- package/dist/metadata/metadata-from-matroska.d.ts +2 -2
- package/dist/metadata/metadata-from-matroska.js +3 -7
- package/dist/metadata/metadata-from-riff.d.ts +2 -2
- package/dist/metadata/metadata-from-riff.js +3 -7
- package/dist/node-writer.js +1 -17
- package/dist/node.js +1 -17
- package/dist/options.d.ts +30 -24
- package/dist/options.js +1 -2
- package/dist/parse-media-on-browser-worker.d.ts +2 -0
- package/dist/parse-media-on-browser-worker.js +4 -0
- package/dist/parse-media-on-server-worker.d.ts +2 -0
- package/dist/parse-media-on-server-worker.js +4 -0
- package/dist/parse-media-on-web-worker.d.ts +2 -0
- package/dist/parse-media-on-web-worker.js +4 -0
- package/dist/parse-media-on-worker-entry.d.ts +2 -0
- package/dist/parse-media-on-worker-entry.js +269 -0
- package/dist/parse-media-on-worker.d.ts +2 -0
- package/dist/parse-media-on-worker.js +4 -0
- package/dist/parse-media.js +10 -13
- package/dist/parse-result.d.ts +3 -3
- package/dist/parse-result.js +1 -2
- package/dist/pause-signal.js +1 -5
- package/dist/perform-seek.js +6 -10
- package/dist/readers/fetch/get-body-and-reader.js +1 -5
- package/dist/readers/fetch/resolve-url.d.ts +1 -1
- package/dist/readers/fetch/resolve-url.js +1 -5
- package/dist/readers/from-fetch.d.ts +4 -1
- package/dist/readers/from-fetch.js +109 -94
- package/dist/readers/from-node.d.ts +4 -1
- package/dist/readers/from-node.js +58 -41
- package/dist/readers/from-web-file.d.ts +4 -1
- package/dist/readers/from-web-file.js +55 -49
- package/dist/readers/reader.d.ts +5 -1
- package/dist/readers/reader.js +1 -2
- package/dist/readers/universal.d.ts +2 -0
- package/dist/readers/universal.js +35 -0
- package/dist/readers/web.d.ts +2 -0
- package/dist/readers/web.js +22 -0
- package/dist/register-track.js +9 -15
- package/dist/remotion-license-acknowledge.js +4 -8
- package/dist/run-parse-iteration.js +26 -25
- package/dist/samples-from-moof.js +8 -12
- package/dist/skip.js +1 -5
- package/dist/state/aac-state.js +1 -5
- package/dist/state/can-skip-tracks.d.ts +2 -2
- package/dist/state/can-skip-tracks.js +3 -8
- package/dist/state/emitted-fields.js +1 -5
- package/dist/state/flac-state.js +1 -5
- package/dist/state/has-tracks-section.js +3 -7
- package/dist/state/images.js +1 -5
- package/dist/state/iso-base-media/cached-sample-positions.js +8 -13
- package/dist/state/iso-base-media/iso-state.js +5 -9
- package/dist/state/iso-base-media/moov-box.js +1 -5
- package/dist/state/keyframes.js +1 -5
- package/dist/state/last-eventloop-break.js +3 -7
- package/dist/state/m3u-state.d.ts +3 -0
- package/dist/state/m3u-state.js +16 -11
- package/dist/state/may-skip-video-data.js +3 -7
- package/dist/state/mp3.js +1 -5
- package/dist/state/need-samples-for-fields.js +1 -5
- package/dist/state/parser-state.d.ts +12 -10
- package/dist/state/parser-state.js +36 -41
- package/dist/state/riff.js +1 -5
- package/dist/state/sample-callbacks.js +8 -12
- package/dist/state/slow-duration-fps.js +1 -5
- package/dist/state/structure.d.ts +4 -4
- package/dist/state/structure.js +1 -5
- package/dist/state/transport-stream.js +3 -7
- package/dist/state/video-section.js +1 -5
- package/dist/state/webm.js +5 -9
- package/dist/throttled-progress.js +1 -5
- package/dist/truthy.js +1 -4
- package/dist/universal.d.ts +1 -0
- package/dist/universal.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -4
- package/dist/web-file.js +1 -17
- package/dist/web.d.ts +1 -0
- package/dist/web.js +1 -0
- package/dist/webcodec-sample-types.d.ts +6 -4
- package/dist/webcodec-sample-types.js +1 -2
- package/dist/worker/forward-controller.d.ts +3 -0
- package/dist/worker/forward-controller.js +20 -0
- package/dist/worker/serialize-error.d.ts +4 -0
- package/dist/worker/serialize-error.js +95 -0
- package/dist/worker/worker-types.d.ts +243 -0
- package/dist/worker/worker-types.js +1 -0
- package/dist/worker-bun-entry.d.ts +1 -0
- package/dist/worker-bun-entry.js +5 -0
- package/dist/worker-entry.d.ts +1 -0
- package/dist/worker-entry.js +5 -0
- package/dist/worker-server-entry.d.ts +1 -0
- package/dist/worker-server-entry.js +5 -0
- package/dist/worker-server.d.ts +2 -0
- package/dist/worker-server.js +381 -0
- package/dist/worker-web-entry.d.ts +1 -0
- package/dist/worker-web-entry.js +5 -0
- package/dist/worker.d.ts +2 -0
- package/dist/worker.js +267 -0
- package/dist/writers/node.js +16 -23
- package/dist/writers/writer.js +1 -2
- package/package.json +40 -21
- package/fetch.js +0 -2
- package/test.json +0 -663
- package/web-file.js +0 -2
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.range = exports.primaries = exports.matrixCoefficients = exports.transferCharacteristics = exports.color = exports.trackUID = exports.trackNumber = exports.tags = exports.tagSegment = exports.flagLacing = exports.displayUnit = exports.displayHeight = exports.displayWidth = exports.bitDepth = exports.interlaced = exports.alphaMode = exports.channels = exports.samplingFrequency = exports.tagTrackUidType = exports.titleType = exports.infoType = exports.writingApp = exports.timestampScale = exports.duration = exports.muxingApp = exports.heightType = exports.widthType = exports.trackType = exports.codecID = exports.voidHeader = exports.seekHead = exports.seek = exports.seekPosition = exports.maxCache = exports.minCache = exports._name = exports.seekId = exports.matroskaHeader = exports.docTypeReadVersion = exports.docTypeVersion = exports.docType = exports.ebmlMaxSizeLength = exports.ebmlMaxIdLength = exports.ebmlReadVersion = exports.ebmlVersion = exports.getSegmentName = exports.knownIdsWithThreeLength = exports.knownIdsWithTwoLength = exports.knownIdsWithOneLength = exports.matroskaElements = void 0;
|
|
4
|
-
exports.ebmlMap = exports.tagStringType = exports.tagNameType = exports.simpleTagType = exports.targetsType = exports.cluster = exports.segment = exports.blockGroup = exports.simpleBlock = exports.block = exports.timestampEntry = exports.tracks = exports.trackEntry = exports.trackTimestampScale = exports.codecName = exports.blockElement = exports.blockDurationSegment = exports.referenceBlock = exports.flagDefault = exports.videoSegment = exports.audioSegment = exports.maxBlockAdditionIdSegment = exports.blockAdditionsSegment = exports.codecPrivate = exports.defaultDuration = exports.language = exports.ChromaSitingVert = exports.ChromaSitingHorz = void 0;
|
|
5
|
-
exports.matroskaElements = {
|
|
1
|
+
export const matroskaElements = {
|
|
6
2
|
Header: '0x1a45dfa3',
|
|
7
3
|
EBMLMaxIDLength: '0x42f2',
|
|
8
4
|
EBMLVersion: '0x4286',
|
|
@@ -273,40 +269,39 @@ exports.matroskaElements = {
|
|
|
273
269
|
Void: '0xec',
|
|
274
270
|
Crc32: '0xbf',
|
|
275
271
|
};
|
|
276
|
-
const matroskaIds = Object.values(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
const getSegmentName = (id) => {
|
|
272
|
+
const matroskaIds = Object.values(matroskaElements);
|
|
273
|
+
export const knownIdsWithOneLength = matroskaIds.filter((id) => id.length === 4);
|
|
274
|
+
export const knownIdsWithTwoLength = matroskaIds.filter((id) => id.length === 6);
|
|
275
|
+
export const knownIdsWithThreeLength = matroskaIds.filter((id) => id.length === 8);
|
|
276
|
+
export const getSegmentName = (id) => {
|
|
281
277
|
var _a;
|
|
282
|
-
return (_a = Object.entries(
|
|
278
|
+
return (_a = Object.entries(matroskaElements).find(([, value]) => value === id)) === null || _a === void 0 ? void 0 : _a[0];
|
|
283
279
|
};
|
|
284
|
-
|
|
285
|
-
exports.ebmlVersion = {
|
|
280
|
+
export const ebmlVersion = {
|
|
286
281
|
name: 'EBMLVersion',
|
|
287
282
|
type: 'uint',
|
|
288
283
|
};
|
|
289
|
-
|
|
284
|
+
export const ebmlReadVersion = {
|
|
290
285
|
name: 'EBMLReadVersion',
|
|
291
286
|
type: 'uint',
|
|
292
287
|
};
|
|
293
|
-
|
|
288
|
+
export const ebmlMaxIdLength = {
|
|
294
289
|
name: 'EBMLMaxIDLength',
|
|
295
290
|
type: 'uint',
|
|
296
291
|
};
|
|
297
|
-
|
|
292
|
+
export const ebmlMaxSizeLength = {
|
|
298
293
|
name: 'EBMLMaxSizeLength',
|
|
299
294
|
type: 'uint',
|
|
300
295
|
};
|
|
301
|
-
|
|
296
|
+
export const docType = {
|
|
302
297
|
name: 'DocType',
|
|
303
298
|
type: 'string',
|
|
304
299
|
};
|
|
305
|
-
|
|
300
|
+
export const docTypeVersion = {
|
|
306
301
|
name: 'DocTypeVersion',
|
|
307
302
|
type: 'uint',
|
|
308
303
|
};
|
|
309
|
-
|
|
304
|
+
export const docTypeReadVersion = {
|
|
310
305
|
name: 'DocTypeReadVersion',
|
|
311
306
|
type: 'uint',
|
|
312
307
|
};
|
|
@@ -314,419 +309,419 @@ const voidEbml = {
|
|
|
314
309
|
name: 'Void',
|
|
315
310
|
type: 'uint8array',
|
|
316
311
|
};
|
|
317
|
-
|
|
312
|
+
export const matroskaHeader = {
|
|
318
313
|
name: 'Header',
|
|
319
314
|
type: 'children',
|
|
320
315
|
};
|
|
321
|
-
|
|
316
|
+
export const seekId = {
|
|
322
317
|
name: 'SeekID',
|
|
323
318
|
type: 'hex-string',
|
|
324
319
|
};
|
|
325
|
-
|
|
320
|
+
export const _name = {
|
|
326
321
|
name: 'Name',
|
|
327
322
|
type: 'string',
|
|
328
323
|
};
|
|
329
|
-
|
|
324
|
+
export const minCache = {
|
|
330
325
|
name: 'MinCache',
|
|
331
326
|
type: 'uint',
|
|
332
327
|
};
|
|
333
|
-
|
|
328
|
+
export const maxCache = {
|
|
334
329
|
name: 'MaxCache',
|
|
335
330
|
type: 'uint',
|
|
336
331
|
};
|
|
337
|
-
|
|
332
|
+
export const seekPosition = {
|
|
338
333
|
name: 'SeekPosition',
|
|
339
334
|
type: 'uint',
|
|
340
335
|
};
|
|
341
|
-
|
|
336
|
+
export const seek = {
|
|
342
337
|
name: 'Seek',
|
|
343
338
|
type: 'children',
|
|
344
339
|
};
|
|
345
|
-
|
|
340
|
+
export const seekHead = {
|
|
346
341
|
name: 'SeekHead',
|
|
347
342
|
type: 'children',
|
|
348
343
|
};
|
|
349
|
-
|
|
344
|
+
export const voidHeader = {
|
|
350
345
|
name: 'Void',
|
|
351
346
|
type: 'uint8array',
|
|
352
347
|
};
|
|
353
|
-
|
|
348
|
+
export const codecID = {
|
|
354
349
|
name: 'CodecID',
|
|
355
350
|
type: 'string',
|
|
356
351
|
};
|
|
357
|
-
|
|
352
|
+
export const trackType = {
|
|
358
353
|
name: 'TrackType',
|
|
359
354
|
type: 'uint',
|
|
360
355
|
};
|
|
361
|
-
|
|
356
|
+
export const widthType = {
|
|
362
357
|
name: 'PixelWidth',
|
|
363
358
|
type: 'uint',
|
|
364
359
|
};
|
|
365
|
-
|
|
360
|
+
export const heightType = {
|
|
366
361
|
name: 'PixelHeight',
|
|
367
362
|
type: 'uint',
|
|
368
363
|
};
|
|
369
|
-
|
|
364
|
+
export const muxingApp = {
|
|
370
365
|
name: 'MuxingApp',
|
|
371
366
|
type: 'string',
|
|
372
367
|
};
|
|
373
|
-
|
|
368
|
+
export const duration = {
|
|
374
369
|
name: 'Duration',
|
|
375
370
|
type: 'float',
|
|
376
371
|
};
|
|
377
|
-
|
|
372
|
+
export const timestampScale = {
|
|
378
373
|
name: 'TimestampScale',
|
|
379
374
|
type: 'uint',
|
|
380
375
|
};
|
|
381
|
-
|
|
376
|
+
export const writingApp = {
|
|
382
377
|
name: 'WritingApp',
|
|
383
378
|
type: 'string',
|
|
384
379
|
};
|
|
385
|
-
|
|
380
|
+
export const infoType = {
|
|
386
381
|
name: 'Info',
|
|
387
382
|
type: 'children',
|
|
388
383
|
};
|
|
389
|
-
|
|
384
|
+
export const titleType = {
|
|
390
385
|
name: 'Title',
|
|
391
386
|
type: 'string',
|
|
392
387
|
};
|
|
393
|
-
|
|
388
|
+
export const tagTrackUidType = {
|
|
394
389
|
name: 'TagTrackUID',
|
|
395
390
|
type: 'hex-string',
|
|
396
391
|
};
|
|
397
|
-
|
|
392
|
+
export const samplingFrequency = {
|
|
398
393
|
name: 'SamplingFrequency',
|
|
399
394
|
type: 'float',
|
|
400
395
|
};
|
|
401
|
-
|
|
396
|
+
export const channels = {
|
|
402
397
|
name: 'Channels',
|
|
403
398
|
type: 'uint',
|
|
404
399
|
};
|
|
405
|
-
|
|
400
|
+
export const alphaMode = {
|
|
406
401
|
name: 'AlphaMode',
|
|
407
402
|
type: 'uint',
|
|
408
403
|
};
|
|
409
|
-
|
|
404
|
+
export const interlaced = {
|
|
410
405
|
name: 'FlagInterlaced',
|
|
411
406
|
type: 'uint',
|
|
412
407
|
};
|
|
413
|
-
|
|
408
|
+
export const bitDepth = {
|
|
414
409
|
name: 'BitDepth',
|
|
415
410
|
type: 'uint',
|
|
416
411
|
};
|
|
417
|
-
|
|
412
|
+
export const displayWidth = {
|
|
418
413
|
name: 'DisplayWidth',
|
|
419
414
|
type: 'uint',
|
|
420
415
|
};
|
|
421
|
-
|
|
416
|
+
export const displayHeight = {
|
|
422
417
|
name: 'DisplayHeight',
|
|
423
418
|
type: 'uint',
|
|
424
419
|
};
|
|
425
|
-
|
|
420
|
+
export const displayUnit = {
|
|
426
421
|
name: 'DisplayUnit',
|
|
427
422
|
type: 'uint',
|
|
428
423
|
};
|
|
429
|
-
|
|
424
|
+
export const flagLacing = {
|
|
430
425
|
name: 'FlagLacing',
|
|
431
426
|
type: 'uint',
|
|
432
427
|
};
|
|
433
|
-
|
|
428
|
+
export const tagSegment = {
|
|
434
429
|
name: 'Tag',
|
|
435
430
|
type: 'children',
|
|
436
431
|
};
|
|
437
|
-
|
|
432
|
+
export const tags = {
|
|
438
433
|
name: 'Tags',
|
|
439
434
|
type: 'children',
|
|
440
435
|
};
|
|
441
|
-
|
|
436
|
+
export const trackNumber = {
|
|
442
437
|
name: 'TrackNumber',
|
|
443
438
|
type: 'uint',
|
|
444
439
|
};
|
|
445
|
-
|
|
440
|
+
export const trackUID = {
|
|
446
441
|
name: 'TrackUID',
|
|
447
442
|
type: 'hex-string',
|
|
448
443
|
};
|
|
449
|
-
|
|
444
|
+
export const color = {
|
|
450
445
|
name: 'Colour',
|
|
451
446
|
type: 'children',
|
|
452
447
|
};
|
|
453
|
-
|
|
448
|
+
export const transferCharacteristics = {
|
|
454
449
|
name: 'TransferCharacteristics',
|
|
455
450
|
type: 'uint',
|
|
456
451
|
};
|
|
457
|
-
|
|
452
|
+
export const matrixCoefficients = {
|
|
458
453
|
name: 'MatrixCoefficients',
|
|
459
454
|
type: 'uint',
|
|
460
455
|
};
|
|
461
|
-
|
|
456
|
+
export const primaries = {
|
|
462
457
|
name: 'Primaries',
|
|
463
458
|
type: 'uint',
|
|
464
459
|
};
|
|
465
|
-
|
|
460
|
+
export const range = {
|
|
466
461
|
name: 'Range',
|
|
467
462
|
type: 'uint',
|
|
468
463
|
};
|
|
469
|
-
|
|
464
|
+
export const ChromaSitingHorz = {
|
|
470
465
|
name: 'ChromaSitingHorz',
|
|
471
466
|
type: 'uint',
|
|
472
467
|
};
|
|
473
|
-
|
|
468
|
+
export const ChromaSitingVert = {
|
|
474
469
|
name: 'ChromaSitingVert',
|
|
475
470
|
type: 'uint',
|
|
476
471
|
};
|
|
477
|
-
|
|
472
|
+
export const language = {
|
|
478
473
|
name: 'Language',
|
|
479
474
|
type: 'string',
|
|
480
475
|
};
|
|
481
|
-
|
|
476
|
+
export const defaultDuration = {
|
|
482
477
|
name: 'DefaultDuration',
|
|
483
478
|
type: 'uint',
|
|
484
479
|
};
|
|
485
|
-
|
|
480
|
+
export const codecPrivate = {
|
|
486
481
|
name: 'CodecPrivate',
|
|
487
482
|
type: 'uint8array',
|
|
488
483
|
};
|
|
489
|
-
|
|
484
|
+
export const blockAdditionsSegment = {
|
|
490
485
|
name: 'BlockAdditions',
|
|
491
486
|
type: 'uint8array',
|
|
492
487
|
};
|
|
493
|
-
|
|
488
|
+
export const maxBlockAdditionIdSegment = {
|
|
494
489
|
name: 'MaxBlockAdditionID',
|
|
495
490
|
type: 'uint',
|
|
496
491
|
};
|
|
497
|
-
|
|
492
|
+
export const audioSegment = {
|
|
498
493
|
name: 'Audio',
|
|
499
494
|
type: 'children',
|
|
500
495
|
};
|
|
501
|
-
|
|
496
|
+
export const videoSegment = {
|
|
502
497
|
name: 'Video',
|
|
503
498
|
type: 'children',
|
|
504
499
|
};
|
|
505
|
-
|
|
500
|
+
export const flagDefault = {
|
|
506
501
|
name: 'FlagDefault',
|
|
507
502
|
type: 'uint',
|
|
508
503
|
};
|
|
509
|
-
|
|
504
|
+
export const referenceBlock = {
|
|
510
505
|
name: 'ReferenceBlock',
|
|
511
506
|
type: 'uint',
|
|
512
507
|
};
|
|
513
|
-
|
|
508
|
+
export const blockDurationSegment = {
|
|
514
509
|
name: 'BlockDuration',
|
|
515
510
|
type: 'uint',
|
|
516
511
|
};
|
|
517
|
-
|
|
512
|
+
export const blockElement = {
|
|
518
513
|
name: 'Block',
|
|
519
514
|
type: 'uint8array',
|
|
520
515
|
};
|
|
521
|
-
|
|
516
|
+
export const codecName = {
|
|
522
517
|
name: 'CodecName',
|
|
523
518
|
type: 'string',
|
|
524
519
|
};
|
|
525
|
-
|
|
520
|
+
export const trackTimestampScale = {
|
|
526
521
|
name: 'TrackTimestampScale',
|
|
527
522
|
type: 'float',
|
|
528
523
|
};
|
|
529
|
-
|
|
524
|
+
export const trackEntry = {
|
|
530
525
|
name: 'TrackEntry',
|
|
531
526
|
type: 'children',
|
|
532
527
|
};
|
|
533
|
-
|
|
528
|
+
export const tracks = {
|
|
534
529
|
name: 'Tracks',
|
|
535
530
|
type: 'children',
|
|
536
531
|
};
|
|
537
|
-
|
|
532
|
+
export const timestampEntry = {
|
|
538
533
|
name: 'Timestamp',
|
|
539
534
|
type: 'uint',
|
|
540
535
|
};
|
|
541
|
-
|
|
536
|
+
export const block = {
|
|
542
537
|
name: 'Block',
|
|
543
538
|
type: 'uint8array',
|
|
544
539
|
};
|
|
545
|
-
|
|
540
|
+
export const simpleBlock = {
|
|
546
541
|
name: 'SimpleBlock',
|
|
547
542
|
type: 'uint8array',
|
|
548
543
|
};
|
|
549
|
-
|
|
544
|
+
export const blockGroup = {
|
|
550
545
|
name: 'BlockGroup',
|
|
551
546
|
type: 'children',
|
|
552
547
|
};
|
|
553
|
-
|
|
548
|
+
export const segment = {
|
|
554
549
|
name: 'Segment',
|
|
555
550
|
type: 'children',
|
|
556
551
|
};
|
|
557
|
-
|
|
552
|
+
export const cluster = {
|
|
558
553
|
name: 'Cluster',
|
|
559
554
|
type: 'children',
|
|
560
555
|
};
|
|
561
|
-
|
|
556
|
+
export const targetsType = {
|
|
562
557
|
name: 'Targets',
|
|
563
558
|
type: 'children',
|
|
564
559
|
};
|
|
565
|
-
|
|
560
|
+
export const simpleTagType = {
|
|
566
561
|
name: 'SimpleTag',
|
|
567
562
|
type: 'children',
|
|
568
563
|
};
|
|
569
|
-
|
|
564
|
+
export const tagNameType = {
|
|
570
565
|
name: 'TagName',
|
|
571
566
|
type: 'string',
|
|
572
567
|
};
|
|
573
|
-
|
|
568
|
+
export const tagStringType = {
|
|
574
569
|
name: 'TagString',
|
|
575
570
|
type: 'string',
|
|
576
571
|
};
|
|
577
|
-
|
|
578
|
-
[
|
|
579
|
-
[
|
|
580
|
-
[
|
|
581
|
-
[
|
|
582
|
-
[
|
|
583
|
-
[
|
|
584
|
-
[
|
|
585
|
-
[
|
|
586
|
-
[
|
|
587
|
-
[
|
|
588
|
-
[
|
|
589
|
-
[
|
|
590
|
-
[
|
|
591
|
-
[
|
|
572
|
+
export const ebmlMap = {
|
|
573
|
+
[matroskaElements.Header]: matroskaHeader,
|
|
574
|
+
[matroskaElements.DocType]: docType,
|
|
575
|
+
[matroskaElements.Targets]: targetsType,
|
|
576
|
+
[matroskaElements.SimpleTag]: simpleTagType,
|
|
577
|
+
[matroskaElements.TagName]: tagNameType,
|
|
578
|
+
[matroskaElements.TagString]: tagStringType,
|
|
579
|
+
[matroskaElements.DocTypeVersion]: docTypeVersion,
|
|
580
|
+
[matroskaElements.DocTypeReadVersion]: docTypeReadVersion,
|
|
581
|
+
[matroskaElements.EBMLVersion]: ebmlVersion,
|
|
582
|
+
[matroskaElements.EBMLReadVersion]: ebmlReadVersion,
|
|
583
|
+
[matroskaElements.EBMLMaxIDLength]: ebmlMaxIdLength,
|
|
584
|
+
[matroskaElements.EBMLMaxSizeLength]: ebmlMaxSizeLength,
|
|
585
|
+
[matroskaElements.Void]: voidEbml,
|
|
586
|
+
[matroskaElements.Cues]: {
|
|
592
587
|
name: 'Cues',
|
|
593
588
|
type: 'children',
|
|
594
589
|
},
|
|
595
|
-
[
|
|
590
|
+
[matroskaElements.CuePoint]: {
|
|
596
591
|
name: 'CuePoint',
|
|
597
592
|
type: 'children',
|
|
598
593
|
},
|
|
599
|
-
[
|
|
594
|
+
[matroskaElements.CueTime]: {
|
|
600
595
|
name: 'CueTime',
|
|
601
596
|
type: 'uint',
|
|
602
597
|
},
|
|
603
|
-
[
|
|
598
|
+
[matroskaElements.CueTrackPositions]: {
|
|
604
599
|
name: 'CueTrackPositions',
|
|
605
600
|
type: 'children',
|
|
606
601
|
},
|
|
607
|
-
[
|
|
602
|
+
[matroskaElements.CueClusterPosition]: {
|
|
608
603
|
name: 'CueClusterPosition',
|
|
609
604
|
type: 'uint',
|
|
610
605
|
},
|
|
611
|
-
[
|
|
606
|
+
[matroskaElements.CueRelativePosition]: {
|
|
612
607
|
name: 'CueRelativePosition',
|
|
613
608
|
type: 'uint',
|
|
614
609
|
},
|
|
615
|
-
[
|
|
610
|
+
[matroskaElements.CueBlockNumber]: {
|
|
616
611
|
name: 'CueBlockNumber',
|
|
617
612
|
type: 'uint',
|
|
618
613
|
},
|
|
619
|
-
[
|
|
614
|
+
[matroskaElements.CueTrack]: {
|
|
620
615
|
name: 'CueTrack',
|
|
621
616
|
type: 'uint',
|
|
622
617
|
},
|
|
623
|
-
[
|
|
618
|
+
[matroskaElements.DateUTC]: {
|
|
624
619
|
name: 'DateUTC',
|
|
625
620
|
type: 'uint8array',
|
|
626
621
|
},
|
|
627
|
-
[
|
|
628
|
-
[
|
|
622
|
+
[matroskaElements.TrackTimestampScale]: trackTimestampScale,
|
|
623
|
+
[matroskaElements.CodecDelay]: {
|
|
629
624
|
name: 'CodecDelay',
|
|
630
625
|
type: 'uint8array',
|
|
631
626
|
},
|
|
632
|
-
[
|
|
627
|
+
[matroskaElements.SeekPreRoll]: {
|
|
633
628
|
name: 'SeekPreRoll',
|
|
634
629
|
type: 'uint8array',
|
|
635
630
|
},
|
|
636
|
-
[
|
|
631
|
+
[matroskaElements.DiscardPadding]: {
|
|
637
632
|
name: 'DiscardPadding',
|
|
638
633
|
type: 'uint8array',
|
|
639
634
|
},
|
|
640
|
-
[
|
|
635
|
+
[matroskaElements.OutputSamplingFrequency]: {
|
|
641
636
|
name: 'OutputSamplingFrequency',
|
|
642
637
|
type: 'uint8array',
|
|
643
638
|
},
|
|
644
|
-
[
|
|
645
|
-
[
|
|
639
|
+
[matroskaElements.CodecName]: codecName,
|
|
640
|
+
[matroskaElements.Position]: {
|
|
646
641
|
name: 'Position',
|
|
647
642
|
type: 'uint8array',
|
|
648
643
|
},
|
|
649
|
-
[
|
|
644
|
+
[matroskaElements.SliceDuration]: {
|
|
650
645
|
name: 'SliceDuration',
|
|
651
646
|
type: 'uint8array',
|
|
652
647
|
},
|
|
653
|
-
[
|
|
654
|
-
[
|
|
655
|
-
[
|
|
656
|
-
[
|
|
657
|
-
[
|
|
658
|
-
[
|
|
659
|
-
[
|
|
660
|
-
[
|
|
661
|
-
[
|
|
648
|
+
[matroskaElements.TagTrackUID]: tagTrackUidType,
|
|
649
|
+
[matroskaElements.SeekHead]: seekHead,
|
|
650
|
+
[matroskaElements.Seek]: seek,
|
|
651
|
+
[matroskaElements.SeekID]: seekId,
|
|
652
|
+
[matroskaElements.Name]: _name,
|
|
653
|
+
[matroskaElements.MinCache]: minCache,
|
|
654
|
+
[matroskaElements.MaxCache]: maxCache,
|
|
655
|
+
[matroskaElements.SeekPosition]: seekPosition,
|
|
656
|
+
[matroskaElements.Crc32]: {
|
|
662
657
|
name: 'Crc32',
|
|
663
658
|
type: 'uint8array',
|
|
664
659
|
},
|
|
665
|
-
[
|
|
666
|
-
[
|
|
660
|
+
[matroskaElements.MuxingApp]: muxingApp,
|
|
661
|
+
[matroskaElements.WritingApp]: {
|
|
667
662
|
name: 'WritingApp',
|
|
668
663
|
type: 'string',
|
|
669
664
|
},
|
|
670
|
-
[
|
|
665
|
+
[matroskaElements.SegmentUUID]: {
|
|
671
666
|
name: 'SegmentUUID',
|
|
672
667
|
type: 'string',
|
|
673
668
|
},
|
|
674
|
-
[
|
|
675
|
-
[
|
|
669
|
+
[matroskaElements.Duration]: duration,
|
|
670
|
+
[matroskaElements.CodecID]: {
|
|
676
671
|
name: 'CodecID',
|
|
677
672
|
type: 'string',
|
|
678
673
|
},
|
|
679
|
-
[
|
|
680
|
-
[
|
|
681
|
-
[
|
|
682
|
-
[
|
|
683
|
-
[
|
|
684
|
-
[
|
|
685
|
-
[
|
|
686
|
-
[
|
|
687
|
-
[
|
|
688
|
-
[
|
|
689
|
-
[
|
|
690
|
-
[
|
|
691
|
-
[
|
|
692
|
-
[
|
|
693
|
-
[
|
|
694
|
-
[
|
|
695
|
-
[
|
|
696
|
-
[
|
|
697
|
-
[
|
|
698
|
-
[
|
|
699
|
-
[
|
|
700
|
-
[
|
|
701
|
-
[
|
|
702
|
-
[
|
|
703
|
-
[
|
|
704
|
-
[
|
|
705
|
-
[
|
|
706
|
-
[
|
|
707
|
-
[
|
|
708
|
-
[
|
|
709
|
-
[
|
|
710
|
-
[
|
|
674
|
+
[matroskaElements.TrackType]: trackType,
|
|
675
|
+
[matroskaElements.PixelWidth]: widthType,
|
|
676
|
+
[matroskaElements.PixelHeight]: heightType,
|
|
677
|
+
[matroskaElements.TimestampScale]: timestampScale,
|
|
678
|
+
[matroskaElements.Info]: infoType,
|
|
679
|
+
[matroskaElements.Title]: titleType,
|
|
680
|
+
[matroskaElements.SamplingFrequency]: samplingFrequency,
|
|
681
|
+
[matroskaElements.Channels]: channels,
|
|
682
|
+
[matroskaElements.AlphaMode]: alphaMode,
|
|
683
|
+
[matroskaElements.FlagInterlaced]: interlaced,
|
|
684
|
+
[matroskaElements.BitDepth]: bitDepth,
|
|
685
|
+
[matroskaElements.DisplayHeight]: displayHeight,
|
|
686
|
+
[matroskaElements.DisplayWidth]: displayWidth,
|
|
687
|
+
[matroskaElements.DisplayUnit]: displayUnit,
|
|
688
|
+
[matroskaElements.FlagLacing]: flagLacing,
|
|
689
|
+
[matroskaElements.Tags]: tags,
|
|
690
|
+
[matroskaElements.Tag]: tagSegment,
|
|
691
|
+
[matroskaElements.TrackNumber]: trackNumber,
|
|
692
|
+
[matroskaElements.TrackUID]: trackUID,
|
|
693
|
+
[matroskaElements.Colour]: color,
|
|
694
|
+
[matroskaElements.Language]: language,
|
|
695
|
+
[matroskaElements.DefaultDuration]: defaultDuration,
|
|
696
|
+
[matroskaElements.CodecPrivate]: codecPrivate,
|
|
697
|
+
[matroskaElements.BlockDuration]: blockDurationSegment,
|
|
698
|
+
[matroskaElements.BlockAdditions]: blockAdditionsSegment,
|
|
699
|
+
[matroskaElements.MaxBlockAdditionID]: maxBlockAdditionIdSegment,
|
|
700
|
+
[matroskaElements.Audio]: audioSegment,
|
|
701
|
+
[matroskaElements.Video]: videoSegment,
|
|
702
|
+
[matroskaElements.FlagDefault]: flagDefault,
|
|
703
|
+
[matroskaElements.ReferenceBlock]: referenceBlock,
|
|
704
|
+
[matroskaElements.TrackEntry]: trackEntry,
|
|
705
|
+
[matroskaElements.Timestamp]: {
|
|
711
706
|
name: 'Timestamp',
|
|
712
707
|
type: 'uint',
|
|
713
708
|
},
|
|
714
|
-
[
|
|
715
|
-
[
|
|
716
|
-
[
|
|
717
|
-
[
|
|
718
|
-
[
|
|
709
|
+
[matroskaElements.Tracks]: tracks,
|
|
710
|
+
[matroskaElements.Block]: block,
|
|
711
|
+
[matroskaElements.SimpleBlock]: simpleBlock,
|
|
712
|
+
[matroskaElements.BlockGroup]: blockGroup,
|
|
713
|
+
[matroskaElements.Segment]: {
|
|
719
714
|
name: 'Segment',
|
|
720
715
|
type: 'children',
|
|
721
716
|
},
|
|
722
|
-
[
|
|
717
|
+
[matroskaElements.Cluster]: {
|
|
723
718
|
name: 'Cluster',
|
|
724
719
|
type: 'children',
|
|
725
720
|
},
|
|
726
|
-
[
|
|
727
|
-
[
|
|
728
|
-
[
|
|
729
|
-
[
|
|
730
|
-
[
|
|
731
|
-
[
|
|
721
|
+
[matroskaElements.TransferCharacteristics]: transferCharacteristics,
|
|
722
|
+
[matroskaElements.MatrixCoefficients]: matrixCoefficients,
|
|
723
|
+
[matroskaElements.Primaries]: primaries,
|
|
724
|
+
[matroskaElements.Range]: range,
|
|
725
|
+
[matroskaElements.ChromaSitingHorz]: ChromaSitingHorz,
|
|
726
|
+
[matroskaElements.ChromaSitingVert]: ChromaSitingVert,
|
|
732
727
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const all_segments_1 = require("./all-segments");
|
|
5
|
-
const parseBlockFlags = (iterator, type) => {
|
|
6
|
-
if (type === all_segments_1.matroskaElements.Block) {
|
|
1
|
+
import { matroskaElements } from './all-segments';
|
|
2
|
+
export const parseBlockFlags = (iterator, type) => {
|
|
3
|
+
if (type === matroskaElements.Block) {
|
|
7
4
|
iterator.startReadingBits();
|
|
8
5
|
// Reserved
|
|
9
6
|
iterator.getBits(4);
|
|
@@ -18,7 +15,7 @@ const parseBlockFlags = (iterator, type) => {
|
|
|
18
15
|
keyframe: null,
|
|
19
16
|
};
|
|
20
17
|
}
|
|
21
|
-
if (type ===
|
|
18
|
+
if (type === matroskaElements.SimpleBlock) {
|
|
22
19
|
iterator.startReadingBits();
|
|
23
20
|
const keyframe = Boolean(iterator.getBits(1));
|
|
24
21
|
// Reserved
|
|
@@ -35,4 +32,3 @@ const parseBlockFlags = (iterator, type) => {
|
|
|
35
32
|
}
|
|
36
33
|
throw new Error('Unexpected type');
|
|
37
34
|
};
|
|
38
|
-
exports.parseBlockFlags = parseBlockFlags;
|