@remotion/media-parser 4.0.247 → 4.0.249
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/boxes/avc/key.d.ts +1 -1
- package/dist/boxes/iso-base-media/get-children.d.ts +14 -0
- package/dist/boxes/iso-base-media/get-children.js +39 -0
- package/dist/boxes/iso-base-media/mdat/mdat.d.ts +2 -1
- package/dist/boxes/iso-base-media/mdat/mdat.js +10 -1
- package/dist/boxes/iso-base-media/moov/moov.js +2 -3
- package/dist/boxes/iso-base-media/parse-boxes.d.ts +15 -0
- package/dist/boxes/iso-base-media/parse-boxes.js +129 -0
- package/dist/boxes/iso-base-media/parse-mdat-partially.d.ts +12 -0
- package/dist/boxes/iso-base-media/parse-mdat-partially.js +33 -0
- package/dist/boxes/iso-base-media/process-box.d.ts +2 -21
- package/dist/boxes/iso-base-media/process-box.js +53 -270
- package/dist/boxes/iso-base-media/stsd/mebx.js +2 -3
- package/dist/boxes/iso-base-media/stsd/samples.js +5 -9
- package/dist/boxes/iso-base-media/trak/trak.js +2 -3
- package/dist/boxes/mp3/get-duration.d.ts +2 -0
- package/dist/boxes/mp3/get-duration.js +30 -0
- package/dist/boxes/mp3/get-frame-length.d.ts +13 -0
- package/dist/boxes/mp3/get-frame-length.js +33 -0
- package/dist/boxes/mp3/get-metadata-from-mp3.d.ts +3 -0
- package/dist/boxes/mp3/get-metadata-from-mp3.js +8 -0
- package/dist/boxes/mp3/get-tracks-from-mp3.d.ts +4 -0
- package/dist/boxes/mp3/get-tracks-from-mp3.js +25 -0
- package/dist/boxes/mp3/id3-v1.d.ts +2 -0
- package/dist/boxes/mp3/id3-v1.js +12 -0
- package/dist/boxes/mp3/id3-v2.d.ts +0 -0
- package/dist/boxes/mp3/id3-v2.js +1 -0
- package/dist/boxes/mp3/id3.d.ts +8 -0
- package/dist/boxes/mp3/id3.js +78 -0
- package/dist/boxes/mp3/parse-mp3.d.ts +8 -0
- package/dist/boxes/mp3/parse-mp3.js +57 -0
- package/dist/boxes/mp3/parse-mpeg-header.d.ts +6 -0
- package/dist/boxes/mp3/parse-mpeg-header.js +274 -0
- package/dist/boxes/mp3/samples-per-mpeg-file.d.ts +4 -0
- package/dist/boxes/mp3/samples-per-mpeg-file.js +26 -0
- package/dist/boxes/riff/continue-after-riff-result.d.ts +13 -0
- package/dist/boxes/riff/continue-after-riff-result.js +34 -0
- package/dist/boxes/riff/expect-riff-box.d.ts +3 -1
- package/dist/boxes/riff/expect-riff-box.js +4 -3
- package/dist/boxes/riff/parse-box.d.ts +1 -7
- package/dist/boxes/riff/parse-box.js +4 -120
- package/dist/boxes/riff/parse-list-box.d.ts +3 -1
- package/dist/boxes/riff/parse-list-box.js +4 -3
- package/dist/boxes/riff/parse-riff-body.d.ts +11 -0
- package/dist/boxes/riff/parse-riff-body.js +105 -0
- package/dist/boxes/riff/parse-riff-box.d.ts +3 -1
- package/dist/boxes/riff/parse-riff-box.js +2 -2
- package/dist/boxes/transport-stream/parse-transport-stream.js +30 -41
- package/dist/buffer-iterator.d.ts +6 -0
- package/dist/buffer-iterator.js +21 -0
- package/dist/continue-mdat-routine.d.ts +17 -0
- package/dist/continue-mdat-routine.js +92 -0
- package/dist/emit-available-info.js +38 -24
- package/dist/esm/index.mjs +1820 -1046
- package/dist/file-types/detect-file-type.js +4 -2
- package/dist/get-audio-codec.js +1 -1
- package/dist/get-container.js +5 -1
- package/dist/get-dimensions.d.ts +1 -1
- package/dist/get-dimensions.js +3 -0
- package/dist/get-duration.js +5 -1
- package/dist/get-fields-from-callbacks.js +1 -0
- package/dist/get-fps.js +3 -0
- package/dist/get-is-hdr.js +1 -1
- package/dist/get-keyframes.js +1 -1
- package/dist/get-tracks.d.ts +1 -1
- package/dist/get-tracks.js +10 -3
- package/dist/get-video-codec.js +1 -1
- package/dist/has-all-info.js +4 -3
- package/dist/index.d.ts +20 -2
- package/dist/may-skip-video-data/need-samples-for-fields.js +1 -0
- package/dist/metadata/get-metadata.d.ts +1 -0
- package/dist/metadata/get-metadata.js +16 -1
- package/dist/options.d.ts +12 -5
- package/dist/parse-media.js +48 -43
- package/dist/parse-result.d.ts +16 -1
- package/dist/parse-video.js +9 -10
- package/dist/state/can-skip-tracks.js +1 -0
- package/dist/state/emitted-fields.js +1 -0
- package/dist/state/images.d.ts +9 -0
- package/dist/state/images.js +14 -0
- package/dist/state/mp3.d.ts +11 -0
- package/dist/state/mp3.js +13 -0
- package/dist/state/parser-state.d.ts +13 -2
- package/dist/state/parser-state.js +8 -1
- package/dist/state/sample-callbacks.js +4 -1
- package/dist/state/slow-duration-fps.d.ts +2 -1
- package/dist/state/slow-duration-fps.js +52 -18
- package/dist/throttled-progress.d.ts +14 -0
- package/dist/throttled-progress.js +44 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/boxes/avc/key.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { AvcInfo } from './parse-avc';
|
|
2
|
-
export declare const getKeyFrameOrDeltaFromAvcInfo: (infos: AvcInfo[]) => "
|
|
2
|
+
export declare const getKeyFrameOrDeltaFromAvcInfo: (infos: AvcInfo[]) => "delta" | "key";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BufferIterator } from '../../buffer-iterator';
|
|
2
|
+
import type { LogLevel } from '../../log';
|
|
3
|
+
import type { Options, ParseMediaFields } from '../../options';
|
|
4
|
+
import type { IsoBaseMediaBox } from '../../parse-result';
|
|
5
|
+
import type { ParserState } from '../../state/parser-state';
|
|
6
|
+
export declare const getChildren: ({ boxType, iterator, bytesRemainingInBox, state, signal, logLevel, fields, }: {
|
|
7
|
+
boxType: string;
|
|
8
|
+
iterator: BufferIterator;
|
|
9
|
+
bytesRemainingInBox: number;
|
|
10
|
+
state: ParserState;
|
|
11
|
+
signal: AbortSignal | null;
|
|
12
|
+
logLevel: LogLevel;
|
|
13
|
+
fields: Options<ParseMediaFields>;
|
|
14
|
+
}) => Promise<IsoBaseMediaBox[]>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getChildren = void 0;
|
|
4
|
+
const parse_boxes_1 = require("./parse-boxes");
|
|
5
|
+
const getChildren = async ({ boxType, iterator, bytesRemainingInBox, state, signal, logLevel, fields, }) => {
|
|
6
|
+
const parseChildren = boxType === 'mdia' ||
|
|
7
|
+
boxType === 'minf' ||
|
|
8
|
+
boxType === 'stbl' ||
|
|
9
|
+
boxType === 'udta' ||
|
|
10
|
+
boxType === 'moof' ||
|
|
11
|
+
boxType === 'dims' ||
|
|
12
|
+
boxType === 'meta' ||
|
|
13
|
+
boxType === 'wave' ||
|
|
14
|
+
boxType === 'traf' ||
|
|
15
|
+
boxType === 'stsb';
|
|
16
|
+
if (parseChildren) {
|
|
17
|
+
const boxes = [];
|
|
18
|
+
const parsed = await (0, parse_boxes_1.parseIsoBaseMediaBoxes)({
|
|
19
|
+
iterator,
|
|
20
|
+
maxBytes: bytesRemainingInBox,
|
|
21
|
+
allowIncompleteBoxes: false,
|
|
22
|
+
initialBoxes: boxes,
|
|
23
|
+
state,
|
|
24
|
+
signal,
|
|
25
|
+
logLevel,
|
|
26
|
+
fields,
|
|
27
|
+
});
|
|
28
|
+
if (parsed.status === 'incomplete') {
|
|
29
|
+
throw new Error('Incomplete boxes are not allowed');
|
|
30
|
+
}
|
|
31
|
+
return boxes;
|
|
32
|
+
}
|
|
33
|
+
if (bytesRemainingInBox < 0) {
|
|
34
|
+
throw new Error('Box size is too big ' + JSON.stringify({ boxType }));
|
|
35
|
+
}
|
|
36
|
+
iterator.discard(bytesRemainingInBox);
|
|
37
|
+
return [];
|
|
38
|
+
};
|
|
39
|
+
exports.getChildren = getChildren;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BufferIterator } from '../../../buffer-iterator';
|
|
2
2
|
import type { IsoBaseMediaBox } from '../../../parse-result';
|
|
3
|
+
import type { PartialMdatBox } from '../../../parse-video';
|
|
3
4
|
import type { ParserState } from '../../../state/parser-state';
|
|
4
5
|
type MdatStatus = {
|
|
5
6
|
status: 'samples-buffered';
|
|
@@ -21,5 +22,5 @@ export declare const parseMdat: ({ data, size, fileOffset, existingBoxes, state,
|
|
|
21
22
|
state: ParserState;
|
|
22
23
|
signal: AbortSignal | null;
|
|
23
24
|
maySkipSampleProcessing: boolean;
|
|
24
|
-
}) => Promise<MdatBox>;
|
|
25
|
+
}) => Promise<MdatBox | PartialMdatBox>;
|
|
25
26
|
export {};
|
|
@@ -6,7 +6,7 @@ const get_tracks_1 = require("../../../get-tracks");
|
|
|
6
6
|
const get_sample_positions_from_track_1 = require("../get-sample-positions-from-track");
|
|
7
7
|
const traversal_1 = require("../traversal");
|
|
8
8
|
const parseMdat = async ({ data, size, fileOffset, existingBoxes, state, signal, maySkipSampleProcessing, }) => {
|
|
9
|
-
const alreadyHas = (0, get_tracks_1.
|
|
9
|
+
const alreadyHas = (0, get_tracks_1.getHasTracks)({
|
|
10
10
|
type: 'iso-base-media',
|
|
11
11
|
boxes: existingBoxes,
|
|
12
12
|
}, state);
|
|
@@ -122,6 +122,15 @@ const parseMdat = async ({ data, size, fileOffset, existingBoxes, state, signal,
|
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
+
const expectedOffsetNow = size + fileOffset;
|
|
126
|
+
const actualOffsetNow = data.counter.getOffset();
|
|
127
|
+
if (expectedOffsetNow !== actualOffsetNow) {
|
|
128
|
+
return Promise.resolve({
|
|
129
|
+
type: 'partial-mdat-box',
|
|
130
|
+
boxSize: size,
|
|
131
|
+
fileOffset,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
125
134
|
return Promise.resolve({
|
|
126
135
|
type: 'mdat-box',
|
|
127
136
|
boxSize: size,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parseMoov = void 0;
|
|
4
|
-
const
|
|
4
|
+
const parse_boxes_1 = require("../parse-boxes");
|
|
5
5
|
const parseMoov = async ({ iterator, offset, size, state, signal, logLevel, fields, }) => {
|
|
6
6
|
const boxes = [];
|
|
7
|
-
const children = await (0,
|
|
7
|
+
const children = await (0, parse_boxes_1.parseIsoBaseMediaBoxes)({
|
|
8
8
|
iterator,
|
|
9
9
|
maxBytes: size - (iterator.counter.getOffset() - offset),
|
|
10
10
|
allowIncompleteBoxes: false,
|
|
11
11
|
initialBoxes: boxes,
|
|
12
12
|
state,
|
|
13
|
-
continueMdat: false,
|
|
14
13
|
signal,
|
|
15
14
|
logLevel,
|
|
16
15
|
fields,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BufferIterator } from '../../buffer-iterator';
|
|
2
|
+
import type { LogLevel } from '../../log';
|
|
3
|
+
import type { Options, ParseMediaFields } from '../../options';
|
|
4
|
+
import type { IsoBaseMediaBox, ParseResult } from '../../parse-result';
|
|
5
|
+
import type { ParserState } from '../../state/parser-state';
|
|
6
|
+
export declare const parseIsoBaseMediaBoxes: ({ iterator, maxBytes, allowIncompleteBoxes, initialBoxes, state, signal, logLevel, fields, }: {
|
|
7
|
+
iterator: BufferIterator;
|
|
8
|
+
maxBytes: number;
|
|
9
|
+
allowIncompleteBoxes: boolean;
|
|
10
|
+
initialBoxes: IsoBaseMediaBox[];
|
|
11
|
+
state: ParserState;
|
|
12
|
+
signal: AbortSignal | null;
|
|
13
|
+
logLevel: LogLevel;
|
|
14
|
+
fields: Options<ParseMediaFields>;
|
|
15
|
+
}) => Promise<ParseResult>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseIsoBaseMediaBoxes = void 0;
|
|
4
|
+
const continue_mdat_routine_1 = require("../../continue-mdat-routine");
|
|
5
|
+
const has_all_info_1 = require("../../has-all-info");
|
|
6
|
+
const may_skip_video_data_1 = require("../../may-skip-video-data/may-skip-video-data");
|
|
7
|
+
const process_box_1 = require("./process-box");
|
|
8
|
+
const traversal_1 = require("./traversal");
|
|
9
|
+
const parseIsoBaseMediaBoxes = async ({ iterator, maxBytes, allowIncompleteBoxes, initialBoxes, state, signal, logLevel, fields, }) => {
|
|
10
|
+
var _a;
|
|
11
|
+
const initialOffset = iterator.counter.getOffset();
|
|
12
|
+
const continueParsing = () => {
|
|
13
|
+
return (0, exports.parseIsoBaseMediaBoxes)({
|
|
14
|
+
iterator,
|
|
15
|
+
maxBytes,
|
|
16
|
+
allowIncompleteBoxes,
|
|
17
|
+
initialBoxes,
|
|
18
|
+
state,
|
|
19
|
+
signal,
|
|
20
|
+
logLevel,
|
|
21
|
+
fields,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const alreadyHasMdat = (_a = state.structure
|
|
25
|
+
.getStructureOrNull()) === null || _a === void 0 ? void 0 : _a.boxes.find((b) => b.type === 'mdat-box');
|
|
26
|
+
while (iterator.bytesRemaining() > 0 &&
|
|
27
|
+
iterator.counter.getOffset() - initialOffset < maxBytes) {
|
|
28
|
+
const result = await (0, process_box_1.processBox)({
|
|
29
|
+
iterator,
|
|
30
|
+
allowIncompleteBoxes,
|
|
31
|
+
parsedBoxes: initialBoxes,
|
|
32
|
+
state,
|
|
33
|
+
signal,
|
|
34
|
+
logLevel,
|
|
35
|
+
fields,
|
|
36
|
+
});
|
|
37
|
+
if (result.type === 'incomplete') {
|
|
38
|
+
if (Number.isFinite(maxBytes)) {
|
|
39
|
+
throw new Error('maxBytes must be Infinity for top-level boxes');
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
status: 'incomplete',
|
|
43
|
+
continueParsing,
|
|
44
|
+
skipTo: null,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (result.type === 'partial-mdat-box') {
|
|
48
|
+
return {
|
|
49
|
+
status: 'incomplete',
|
|
50
|
+
continueParsing: () => {
|
|
51
|
+
return Promise.resolve((0, continue_mdat_routine_1.continueMdatRoutine)({
|
|
52
|
+
iterator,
|
|
53
|
+
maxBytes,
|
|
54
|
+
allowIncompleteBoxes,
|
|
55
|
+
initialBoxes,
|
|
56
|
+
state,
|
|
57
|
+
continueMdat: result,
|
|
58
|
+
signal,
|
|
59
|
+
logLevel,
|
|
60
|
+
fields,
|
|
61
|
+
}));
|
|
62
|
+
},
|
|
63
|
+
skipTo: null,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (result.box.type === 'mdat-box' && alreadyHasMdat) {
|
|
67
|
+
initialBoxes = initialBoxes.filter((b) => b.type !== 'mdat-box');
|
|
68
|
+
initialBoxes.push(result.box);
|
|
69
|
+
iterator.allowDiscard();
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
initialBoxes.push(result.box);
|
|
74
|
+
if ((0, has_all_info_1.hasAllInfo)({ fields, state })) {
|
|
75
|
+
return {
|
|
76
|
+
status: 'done',
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (result.skipTo !== null) {
|
|
81
|
+
if (!state.supportsContentRange) {
|
|
82
|
+
throw new Error('Content-Range header is not supported by the reader, but was asked to seek');
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
status: 'incomplete',
|
|
86
|
+
continueParsing,
|
|
87
|
+
skipTo: result.skipTo,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
if (iterator.bytesRemaining() < 0) {
|
|
91
|
+
return {
|
|
92
|
+
status: 'incomplete',
|
|
93
|
+
continueParsing,
|
|
94
|
+
skipTo: null,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
iterator.removeBytesRead();
|
|
98
|
+
}
|
|
99
|
+
const mdatState = (0, traversal_1.getMdatBox)(initialBoxes);
|
|
100
|
+
const skipped = (mdatState === null || mdatState === void 0 ? void 0 : mdatState.status) === 'samples-skipped' &&
|
|
101
|
+
!(0, may_skip_video_data_1.maySkipVideoData)({ state }) &&
|
|
102
|
+
state.supportsContentRange;
|
|
103
|
+
const buffered = (mdatState === null || mdatState === void 0 ? void 0 : mdatState.status) === 'samples-buffered' && !(0, may_skip_video_data_1.maySkipVideoData)({ state });
|
|
104
|
+
if (skipped || buffered) {
|
|
105
|
+
return {
|
|
106
|
+
status: 'incomplete',
|
|
107
|
+
continueParsing: () => {
|
|
108
|
+
if (buffered) {
|
|
109
|
+
iterator.skipTo(mdatState.fileOffset, false);
|
|
110
|
+
}
|
|
111
|
+
return (0, exports.parseIsoBaseMediaBoxes)({
|
|
112
|
+
iterator,
|
|
113
|
+
maxBytes,
|
|
114
|
+
allowIncompleteBoxes: false,
|
|
115
|
+
initialBoxes,
|
|
116
|
+
state,
|
|
117
|
+
signal,
|
|
118
|
+
logLevel,
|
|
119
|
+
fields,
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
skipTo: skipped ? mdatState.fileOffset : null,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
status: 'done',
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
exports.parseIsoBaseMediaBoxes = parseIsoBaseMediaBoxes;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BufferIterator } from '../../buffer-iterator';
|
|
2
|
+
import type { IsoBaseMediaBox } from '../../parse-result';
|
|
3
|
+
import type { BoxAndNext } from '../../parse-video';
|
|
4
|
+
import type { ParserState } from '../../state/parser-state';
|
|
5
|
+
export declare const parseMdatPartially: ({ iterator, boxSize, fileOffset, parsedBoxes, state, signal, }: {
|
|
6
|
+
iterator: BufferIterator;
|
|
7
|
+
boxSize: number;
|
|
8
|
+
fileOffset: number;
|
|
9
|
+
parsedBoxes: IsoBaseMediaBox[];
|
|
10
|
+
state: ParserState;
|
|
11
|
+
signal: AbortSignal | null;
|
|
12
|
+
}) => Promise<BoxAndNext>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseMdatPartially = void 0;
|
|
4
|
+
const mdat_1 = require("./mdat/mdat");
|
|
5
|
+
const parseMdatPartially = async ({ iterator, boxSize, fileOffset, parsedBoxes, state, signal, }) => {
|
|
6
|
+
const box = await (0, mdat_1.parseMdat)({
|
|
7
|
+
data: iterator,
|
|
8
|
+
size: boxSize,
|
|
9
|
+
fileOffset,
|
|
10
|
+
existingBoxes: parsedBoxes,
|
|
11
|
+
state,
|
|
12
|
+
signal,
|
|
13
|
+
maySkipSampleProcessing: state.supportsContentRange,
|
|
14
|
+
});
|
|
15
|
+
if (box.type === 'partial-mdat-box') {
|
|
16
|
+
return box;
|
|
17
|
+
}
|
|
18
|
+
if ((box.status === 'samples-processed' || box.status === 'samples-buffered') &&
|
|
19
|
+
box.fileOffset + boxSize === iterator.counter.getOffset()) {
|
|
20
|
+
return {
|
|
21
|
+
type: 'complete',
|
|
22
|
+
box,
|
|
23
|
+
size: boxSize,
|
|
24
|
+
skipTo: null,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
type: 'partial-mdat-box',
|
|
29
|
+
boxSize,
|
|
30
|
+
fileOffset,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
exports.parseMdatPartially = parseMdatPartially;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import type { BufferIterator } from '../../buffer-iterator';
|
|
2
2
|
import type { LogLevel } from '../../log';
|
|
3
3
|
import type { Options, ParseMediaFields } from '../../options';
|
|
4
|
-
import type { IsoBaseMediaBox
|
|
5
|
-
import type { BoxAndNext
|
|
4
|
+
import type { IsoBaseMediaBox } from '../../parse-result';
|
|
5
|
+
import type { BoxAndNext } from '../../parse-video';
|
|
6
6
|
import type { ParserState } from '../../state/parser-state';
|
|
7
|
-
export declare const parseMdatPartially: ({ iterator, boxSize, fileOffset, parsedBoxes, state, signal, }: {
|
|
8
|
-
iterator: BufferIterator;
|
|
9
|
-
boxSize: number;
|
|
10
|
-
fileOffset: number;
|
|
11
|
-
parsedBoxes: IsoBaseMediaBox[];
|
|
12
|
-
state: ParserState;
|
|
13
|
-
signal: AbortSignal | null;
|
|
14
|
-
}) => Promise<BoxAndNext>;
|
|
15
7
|
export declare const processBox: ({ iterator, allowIncompleteBoxes, parsedBoxes, state, signal, logLevel, fields, }: {
|
|
16
8
|
iterator: BufferIterator;
|
|
17
9
|
allowIncompleteBoxes: boolean;
|
|
@@ -21,14 +13,3 @@ export declare const processBox: ({ iterator, allowIncompleteBoxes, parsedBoxes,
|
|
|
21
13
|
logLevel: LogLevel;
|
|
22
14
|
fields: Options<ParseMediaFields>;
|
|
23
15
|
}) => Promise<BoxAndNext>;
|
|
24
|
-
export declare const parseIsoBaseMediaBoxes: ({ iterator, maxBytes, allowIncompleteBoxes, initialBoxes, state, continueMdat, signal, logLevel, fields, }: {
|
|
25
|
-
iterator: BufferIterator;
|
|
26
|
-
maxBytes: number;
|
|
27
|
-
allowIncompleteBoxes: boolean;
|
|
28
|
-
initialBoxes: IsoBaseMediaBox[];
|
|
29
|
-
state: ParserState;
|
|
30
|
-
continueMdat: false | PartialMdatBox;
|
|
31
|
-
signal: AbortSignal | null;
|
|
32
|
-
logLevel: LogLevel;
|
|
33
|
-
fields: Options<ParseMediaFields>;
|
|
34
|
-
}) => Promise<ParseResult>;
|