node-av-light 0.0.0 → 7.1.0-beta.1
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/LICENSE.md +22 -0
- package/README.md +711 -0
- package/dist/api/audio-frame-buffer.d.ts +636 -0
- package/dist/api/audio-frame-buffer.js +1027 -0
- package/dist/api/audio-frame-buffer.js.map +1 -0
- package/dist/api/bitstream-filter.d.ts +938 -0
- package/dist/api/bitstream-filter.js +1427 -0
- package/dist/api/bitstream-filter.js.map +1 -0
- package/dist/api/constants.d.ts +44 -0
- package/dist/api/constants.js +45 -0
- package/dist/api/constants.js.map +1 -0
- package/dist/api/data/test_av1.ivf +0 -0
- package/dist/api/data/test_h264.h264 +0 -0
- package/dist/api/data/test_hevc.h265 +0 -0
- package/dist/api/data/test_mjpeg.mjpeg +0 -0
- package/dist/api/data/test_vp8.ivf +0 -0
- package/dist/api/data/test_vp9.ivf +0 -0
- package/dist/api/decoder.d.ts +1413 -0
- package/dist/api/decoder.js +2367 -0
- package/dist/api/decoder.js.map +1 -0
- package/dist/api/demuxer.d.ts +1295 -0
- package/dist/api/demuxer.js +2344 -0
- package/dist/api/demuxer.js.map +1 -0
- package/dist/api/device.d.ts +589 -0
- package/dist/api/device.js +964 -0
- package/dist/api/device.js.map +1 -0
- package/dist/api/encoder-pool.d.ts +262 -0
- package/dist/api/encoder-pool.js +397 -0
- package/dist/api/encoder-pool.js.map +1 -0
- package/dist/api/encoder.d.ts +1509 -0
- package/dist/api/encoder.js +2619 -0
- package/dist/api/encoder.js.map +1 -0
- package/dist/api/filter-complex.d.ts +828 -0
- package/dist/api/filter-complex.js +1661 -0
- package/dist/api/filter-complex.js.map +1 -0
- package/dist/api/filter-presets.d.ts +800 -0
- package/dist/api/filter-presets.js +1554 -0
- package/dist/api/filter-presets.js.map +1 -0
- package/dist/api/filter.d.ts +1339 -0
- package/dist/api/filter.js +2075 -0
- package/dist/api/filter.js.map +1 -0
- package/dist/api/fmp4-stream.d.ts +797 -0
- package/dist/api/fmp4-stream.js +1428 -0
- package/dist/api/fmp4-stream.js.map +1 -0
- package/dist/api/hardware.d.ts +677 -0
- package/dist/api/hardware.js +1300 -0
- package/dist/api/hardware.js.map +1 -0
- package/dist/api/index.d.ts +21 -0
- package/dist/api/index.js +38 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/io-stream.d.ts +308 -0
- package/dist/api/io-stream.js +358 -0
- package/dist/api/io-stream.js.map +1 -0
- package/dist/api/muxer.d.ts +1311 -0
- package/dist/api/muxer.js +2672 -0
- package/dist/api/muxer.js.map +1 -0
- package/dist/api/pipeline.d.ts +801 -0
- package/dist/api/pipeline.js +1344 -0
- package/dist/api/pipeline.js.map +1 -0
- package/dist/api/probe.d.ts +128 -0
- package/dist/api/probe.js +227 -0
- package/dist/api/probe.js.map +1 -0
- package/dist/api/rtp-stream.d.ts +497 -0
- package/dist/api/rtp-stream.js +1131 -0
- package/dist/api/rtp-stream.js.map +1 -0
- package/dist/api/scaler.d.ts +561 -0
- package/dist/api/scaler.js +918 -0
- package/dist/api/scaler.js.map +1 -0
- package/dist/api/types.d.ts +17 -0
- package/dist/api/types.js +2 -0
- package/dist/api/types.js.map +1 -0
- package/dist/api/utilities/async-queue.d.ts +149 -0
- package/dist/api/utilities/async-queue.js +254 -0
- package/dist/api/utilities/async-queue.js.map +1 -0
- package/dist/api/utilities/audio-sample.d.ts +117 -0
- package/dist/api/utilities/audio-sample.js +112 -0
- package/dist/api/utilities/audio-sample.js.map +1 -0
- package/dist/api/utilities/audio-transcode.d.ts +20 -0
- package/dist/api/utilities/audio-transcode.js +27 -0
- package/dist/api/utilities/audio-transcode.js.map +1 -0
- package/dist/api/utilities/channel-layout.d.ts +76 -0
- package/dist/api/utilities/channel-layout.js +80 -0
- package/dist/api/utilities/channel-layout.js.map +1 -0
- package/dist/api/utilities/codec-format.d.ts +87 -0
- package/dist/api/utilities/codec-format.js +117 -0
- package/dist/api/utilities/codec-format.js.map +1 -0
- package/dist/api/utilities/context-options.d.ts +25 -0
- package/dist/api/utilities/context-options.js +23 -0
- package/dist/api/utilities/context-options.js.map +1 -0
- package/dist/api/utilities/electron-shared-texture.d.ts +368 -0
- package/dist/api/utilities/electron-shared-texture.js +540 -0
- package/dist/api/utilities/electron-shared-texture.js.map +1 -0
- package/dist/api/utilities/image.d.ts +207 -0
- package/dist/api/utilities/image.js +213 -0
- package/dist/api/utilities/image.js.map +1 -0
- package/dist/api/utilities/index.d.ts +14 -0
- package/dist/api/utilities/index.js +27 -0
- package/dist/api/utilities/index.js.map +1 -0
- package/dist/api/utilities/live-decoding.d.ts +15 -0
- package/dist/api/utilities/live-decoding.js +32 -0
- package/dist/api/utilities/live-decoding.js.map +1 -0
- package/dist/api/utilities/media-type.d.ts +49 -0
- package/dist/api/utilities/media-type.js +53 -0
- package/dist/api/utilities/media-type.js.map +1 -0
- package/dist/api/utilities/packet-age-watchdog.d.ts +198 -0
- package/dist/api/utilities/packet-age-watchdog.js +594 -0
- package/dist/api/utilities/packet-age-watchdog.js.map +1 -0
- package/dist/api/utilities/pixel-format.d.ts +89 -0
- package/dist/api/utilities/pixel-format.js +97 -0
- package/dist/api/utilities/pixel-format.js.map +1 -0
- package/dist/api/utilities/sample-format.d.ts +129 -0
- package/dist/api/utilities/sample-format.js +141 -0
- package/dist/api/utilities/sample-format.js.map +1 -0
- package/dist/api/utilities/scale-size.d.ts +51 -0
- package/dist/api/utilities/scale-size.js +55 -0
- package/dist/api/utilities/scale-size.js.map +1 -0
- package/dist/api/utilities/scheduler.d.ts +138 -0
- package/dist/api/utilities/scheduler.js +98 -0
- package/dist/api/utilities/scheduler.js.map +1 -0
- package/dist/api/utilities/streaming.d.ts +186 -0
- package/dist/api/utilities/streaming.js +309 -0
- package/dist/api/utilities/streaming.js.map +1 -0
- package/dist/api/utilities/timestamp.d.ts +193 -0
- package/dist/api/utilities/timestamp.js +206 -0
- package/dist/api/utilities/timestamp.js.map +1 -0
- package/dist/api/utilities/video-transcode.d.ts +218 -0
- package/dist/api/utilities/video-transcode.js +624 -0
- package/dist/api/utilities/video-transcode.js.map +1 -0
- package/dist/api/utilities/whisper-model.d.ts +330 -0
- package/dist/api/utilities/whisper-model.js +587 -0
- package/dist/api/utilities/whisper-model.js.map +1 -0
- package/dist/api/utils.d.ts +19 -0
- package/dist/api/utils.js +39 -0
- package/dist/api/utils.js.map +1 -0
- package/dist/api/webrtc-stream.d.ts +294 -0
- package/dist/api/webrtc-stream.js +546 -0
- package/dist/api/webrtc-stream.js.map +1 -0
- package/dist/api/whisper.d.ts +326 -0
- package/dist/api/whisper.js +402 -0
- package/dist/api/whisper.js.map +1 -0
- package/dist/constants/bsf-options.d.ts +364 -0
- package/dist/constants/bsf-options.js +7 -0
- package/dist/constants/bsf-options.js.map +1 -0
- package/dist/constants/channel-layouts.d.ts +53 -0
- package/dist/constants/channel-layouts.js +57 -0
- package/dist/constants/channel-layouts.js.map +1 -0
- package/dist/constants/constants.d.ts +2435 -0
- package/dist/constants/constants.js +1989 -0
- package/dist/constants/constants.js.map +1 -0
- package/dist/constants/decoders.d.ts +651 -0
- package/dist/constants/decoders.js +641 -0
- package/dist/constants/decoders.js.map +1 -0
- package/dist/constants/encoders.d.ts +314 -0
- package/dist/constants/encoders.js +309 -0
- package/dist/constants/encoders.js.map +1 -0
- package/dist/constants/filter-options.d.ts +12099 -0
- package/dist/constants/filter-options.js +7 -0
- package/dist/constants/filter-options.js.map +1 -0
- package/dist/constants/format-options.d.ts +4319 -0
- package/dist/constants/format-options.js +7 -0
- package/dist/constants/format-options.js.map +1 -0
- package/dist/constants/formats.d.ts +18 -0
- package/dist/constants/formats.js +7 -0
- package/dist/constants/formats.js.map +1 -0
- package/dist/constants/hardware.d.ts +26 -0
- package/dist/constants/hardware.js +27 -0
- package/dist/constants/hardware.js.map +1 -0
- package/dist/constants/index.d.ts +10 -0
- package/dist/constants/index.js +6 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/options.d.ts +6217 -0
- package/dist/constants/options.js +7 -0
- package/dist/constants/options.js.map +1 -0
- package/dist/ffmpeg/index.d.ts +101 -0
- package/dist/ffmpeg/index.js +161 -0
- package/dist/ffmpeg/index.js.map +1 -0
- package/dist/ffmpeg/version.d.ts +6 -0
- package/dist/ffmpeg/version.js +7 -0
- package/dist/ffmpeg/version.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/audio-fifo.d.ts +399 -0
- package/dist/lib/audio-fifo.js +431 -0
- package/dist/lib/audio-fifo.js.map +1 -0
- package/dist/lib/binding.d.ts +242 -0
- package/dist/lib/binding.js +102 -0
- package/dist/lib/binding.js.map +1 -0
- package/dist/lib/bitstream-filter-context.d.ts +381 -0
- package/dist/lib/bitstream-filter-context.js +443 -0
- package/dist/lib/bitstream-filter-context.js.map +1 -0
- package/dist/lib/bitstream-filter.d.ts +140 -0
- package/dist/lib/bitstream-filter.js +154 -0
- package/dist/lib/bitstream-filter.js.map +1 -0
- package/dist/lib/codec-context.d.ts +1069 -0
- package/dist/lib/codec-context.js +1336 -0
- package/dist/lib/codec-context.js.map +1 -0
- package/dist/lib/codec-parameters.d.ts +664 -0
- package/dist/lib/codec-parameters.js +813 -0
- package/dist/lib/codec-parameters.js.map +1 -0
- package/dist/lib/codec-parser.d.ts +201 -0
- package/dist/lib/codec-parser.js +213 -0
- package/dist/lib/codec-parser.js.map +1 -0
- package/dist/lib/codec.d.ts +617 -0
- package/dist/lib/codec.js +746 -0
- package/dist/lib/codec.js.map +1 -0
- package/dist/lib/device.d.ts +294 -0
- package/dist/lib/device.js +326 -0
- package/dist/lib/device.js.map +1 -0
- package/dist/lib/dictionary.d.ts +333 -0
- package/dist/lib/dictionary.js +372 -0
- package/dist/lib/dictionary.js.map +1 -0
- package/dist/lib/error.d.ts +311 -0
- package/dist/lib/error.js +395 -0
- package/dist/lib/error.js.map +1 -0
- package/dist/lib/fifo.d.ts +416 -0
- package/dist/lib/fifo.js +453 -0
- package/dist/lib/fifo.js.map +1 -0
- package/dist/lib/filter-context.d.ts +714 -0
- package/dist/lib/filter-context.js +783 -0
- package/dist/lib/filter-context.js.map +1 -0
- package/dist/lib/filter-graph-segment.d.ts +161 -0
- package/dist/lib/filter-graph-segment.js +172 -0
- package/dist/lib/filter-graph-segment.js.map +1 -0
- package/dist/lib/filter-graph.d.ts +641 -0
- package/dist/lib/filter-graph.js +704 -0
- package/dist/lib/filter-graph.js.map +1 -0
- package/dist/lib/filter-inout.d.ts +202 -0
- package/dist/lib/filter-inout.js +261 -0
- package/dist/lib/filter-inout.js.map +1 -0
- package/dist/lib/filter.d.ts +243 -0
- package/dist/lib/filter.js +272 -0
- package/dist/lib/filter.js.map +1 -0
- package/dist/lib/format-context.d.ts +1335 -0
- package/dist/lib/format-context.js +1455 -0
- package/dist/lib/format-context.js.map +1 -0
- package/dist/lib/frame-utils.d.ts +116 -0
- package/dist/lib/frame-utils.js +98 -0
- package/dist/lib/frame-utils.js.map +1 -0
- package/dist/lib/frame.d.ts +1315 -0
- package/dist/lib/frame.js +1535 -0
- package/dist/lib/frame.js.map +1 -0
- package/dist/lib/hardware-device-context.d.ts +362 -0
- package/dist/lib/hardware-device-context.js +383 -0
- package/dist/lib/hardware-device-context.js.map +1 -0
- package/dist/lib/hardware-frames-context.d.ts +418 -0
- package/dist/lib/hardware-frames-context.js +471 -0
- package/dist/lib/hardware-frames-context.js.map +1 -0
- package/dist/lib/index.d.ts +35 -0
- package/dist/lib/index.js +60 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/input-format.d.ts +249 -0
- package/dist/lib/input-format.js +306 -0
- package/dist/lib/input-format.js.map +1 -0
- package/dist/lib/io-context.d.ts +698 -0
- package/dist/lib/io-context.js +771 -0
- package/dist/lib/io-context.js.map +1 -0
- package/dist/lib/log.d.ts +174 -0
- package/dist/lib/log.js +184 -0
- package/dist/lib/log.js.map +1 -0
- package/dist/lib/native-types.d.ts +1024 -0
- package/dist/lib/native-types.js +2 -0
- package/dist/lib/native-types.js.map +1 -0
- package/dist/lib/option.d.ts +953 -0
- package/dist/lib/option.js +1607 -0
- package/dist/lib/option.js.map +1 -0
- package/dist/lib/output-format.d.ts +222 -0
- package/dist/lib/output-format.js +259 -0
- package/dist/lib/output-format.js.map +1 -0
- package/dist/lib/packet.d.ts +521 -0
- package/dist/lib/packet.js +613 -0
- package/dist/lib/packet.js.map +1 -0
- package/dist/lib/rational.d.ts +251 -0
- package/dist/lib/rational.js +278 -0
- package/dist/lib/rational.js.map +1 -0
- package/dist/lib/software-resample-context.d.ts +552 -0
- package/dist/lib/software-resample-context.js +592 -0
- package/dist/lib/software-resample-context.js.map +1 -0
- package/dist/lib/software-scale-context.d.ts +344 -0
- package/dist/lib/software-scale-context.js +366 -0
- package/dist/lib/software-scale-context.js.map +1 -0
- package/dist/lib/stream.d.ts +383 -0
- package/dist/lib/stream.js +524 -0
- package/dist/lib/stream.js.map +1 -0
- package/dist/lib/sync-queue.d.ts +179 -0
- package/dist/lib/sync-queue.js +197 -0
- package/dist/lib/sync-queue.js.map +1 -0
- package/dist/lib/types.d.ts +34 -0
- package/dist/lib/types.js +2 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/utilities.d.ts +1198 -0
- package/dist/lib/utilities.js +1302 -0
- package/dist/lib/utilities.js.map +1 -0
- package/dist/utils/electron.d.ts +49 -0
- package/dist/utils/electron.js +63 -0
- package/dist/utils/electron.js.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/libc.d.ts +11 -0
- package/dist/utils/libc.js +35 -0
- package/dist/utils/libc.js.map +1 -0
- package/dist/utils/variant.d.ts +26 -0
- package/dist/utils/variant.js +31 -0
- package/dist/utils/variant.js.map +1 -0
- package/dist/webrtc/index.d.ts +4 -0
- package/dist/webrtc/index.js +7 -0
- package/dist/webrtc/index.js.map +1 -0
- package/install/check.js +124 -0
- package/install/ffmpeg.js +66 -0
- package/package.json +165 -3
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated bitstream-filter option types.
|
|
3
|
+
* Generated from FFmpeg libavcodec AVOption sources (see scripts/generate-bsf-options.js).
|
|
4
|
+
* DO NOT EDIT MANUALLY.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* All bitstream filter names known to this FFmpeg build.
|
|
8
|
+
*
|
|
9
|
+
* Use with `BitStreamFilterAPI.create()` for name autocomplete. Unknown names
|
|
10
|
+
* still pass through via the `(string & {})` fallback in the API signature.
|
|
11
|
+
*/
|
|
12
|
+
export type BsfName = 'aac_adtstoasc' | 'ahx_to_mp2' | 'apv_metadata' | 'av1_frame_merge' | 'av1_frame_split' | 'av1_metadata' | 'chomp' | 'dca_core' | 'dovi_rpu' | 'dts2pts' | 'dump_extra' | 'dv_error_marker' | 'eac3_core' | 'eia608_to_smpte436m' | 'evc_frame_merge' | 'extract_extradata' | 'filter_units' | 'h264_metadata' | 'h264_mp4toannexb' | 'h264_redundant_pps' | 'hapqa_extract' | 'hevc_metadata' | 'hevc_mp4toannexb' | 'imxdump' | 'lcevc_metadata' | 'media100_to_mjpegb' | 'mjpeg2jpeg' | 'mjpegadump' | 'mov2textsub' | 'mpeg2_metadata' | 'mpeg4_unpack_bframes' | 'noise' | 'null' | 'opus_metadata' | 'pcm_rechunk' | 'pgs_frame_merge' | 'prores_metadata' | 'remove_extra' | 'setts' | 'showinfo' | 'smpte436m_to_eia608' | 'text2movsub' | 'trace_headers' | 'trim' | 'truehd_core' | 'vp9_metadata' | 'vp9_raw_reorder' | 'vp9_superframe' | 'vp9_superframe_split' | 'vvc_metadata' | 'vvc_mp4toannexb';
|
|
13
|
+
export interface BsfOptionsMap {
|
|
14
|
+
/**
|
|
15
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#apv_005fmetadata
|
|
16
|
+
*/
|
|
17
|
+
apv_metadata: {
|
|
18
|
+
/** Set color primaries (section 5.3.5) */
|
|
19
|
+
color_primaries?: number;
|
|
20
|
+
/** Set transfer characteristics (section 5.3.5) */
|
|
21
|
+
transfer_characteristics?: number;
|
|
22
|
+
/** Set matrix coefficients (section 5.3.5) */
|
|
23
|
+
matrix_coefficients?: number;
|
|
24
|
+
/** Set full range flag flag (section 5.3.5) */
|
|
25
|
+
full_range_flag?: 'tv' | 'pc';
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#av1_005fmetadata
|
|
29
|
+
*/
|
|
30
|
+
av1_metadata: {
|
|
31
|
+
/** Temporal Delimiter OBU */
|
|
32
|
+
td?: 'pass' | 'insert' | 'remove';
|
|
33
|
+
/** Set color primaries (section 6.4.2) */
|
|
34
|
+
color_primaries?: number;
|
|
35
|
+
/** Set transfer characteristics (section 6.4.2) */
|
|
36
|
+
transfer_characteristics?: number;
|
|
37
|
+
/** Set matrix coefficients (section 6.4.2) */
|
|
38
|
+
matrix_coefficients?: number;
|
|
39
|
+
/** Set color range flag (section 6.4.2) */
|
|
40
|
+
color_range?: 'tv' | 'pc';
|
|
41
|
+
/** Set chroma sample position (section 6.4.2) */
|
|
42
|
+
chroma_sample_position?: 'unknown' | 'vertical' | 'colocated';
|
|
43
|
+
/** Set display tick rate (time_scale / num_units_in_display_tick) */
|
|
44
|
+
tick_rate?: string | number;
|
|
45
|
+
/** Set display ticks per picture for CFR streams */
|
|
46
|
+
num_ticks_per_picture?: number;
|
|
47
|
+
/** Delete all Padding OBUs */
|
|
48
|
+
delete_padding?: boolean;
|
|
49
|
+
/** Remove Dolby Vision RPU */
|
|
50
|
+
remove_dovi?: boolean;
|
|
51
|
+
/** Remove HDR10+ metadata */
|
|
52
|
+
remove_hdr10plus?: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#dovi_005frpu
|
|
56
|
+
*/
|
|
57
|
+
dovi_rpu: {
|
|
58
|
+
/** Strip Dolby Vision metadata */
|
|
59
|
+
strip?: boolean;
|
|
60
|
+
/** DV metadata compression mode */
|
|
61
|
+
compression?: 'none' | 'limited' | 'extended';
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#dump_005fextra
|
|
65
|
+
*/
|
|
66
|
+
dump_extra: {
|
|
67
|
+
/** When to dump extradata */
|
|
68
|
+
freq?: 'k' | 'keyframe' | 'e' | 'all';
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#dv_005ferror_005fmarker
|
|
72
|
+
*/
|
|
73
|
+
dv_error_marker: {
|
|
74
|
+
/** set color */
|
|
75
|
+
color?: string;
|
|
76
|
+
/** specify which error status value to match */
|
|
77
|
+
sta?: 'ok' | 'Aa' | 'Ba' | 'Ca' | 'erri' | 'erru' | 'err' | 'Ab' | 'Bb' | 'Cb' | 'A' | 'B' | 'C' | 'a' | 'b' | 'res' | 'notok' | 'notres' | (string & {});
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#eia608_005fto_005fsmpte436m
|
|
81
|
+
*/
|
|
82
|
+
eia608_to_smpte436m: {
|
|
83
|
+
/** line number -- you probably want 9 or 11 */
|
|
84
|
+
line_number?: number;
|
|
85
|
+
/** wrapping type */
|
|
86
|
+
wrapping_type?: 'vanc_frame' | 'vanc_field_1' | 'vanc_field_2' | 'vanc_progressive_frame';
|
|
87
|
+
/** payload sample coding */
|
|
88
|
+
sample_coding?: '8bit_luma' | '8bit_color_diff' | '8bit_luma_and_color_diff' | '10bit_luma' | '10bit_color_diff' | '10bit_luma_and_color_diff' | '8bit_luma_parity_error' | '8bit_color_diff_parity_error' | '8bit_luma_and_color_diff_parity_error';
|
|
89
|
+
/** initial cdp_*_sequence_cntr value */
|
|
90
|
+
initial_cdp_sequence_cntr?: number;
|
|
91
|
+
/** set the `cdp_frame_rate` fields */
|
|
92
|
+
cdp_frame_rate?: string | number;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#extract_005fextradata
|
|
96
|
+
*/
|
|
97
|
+
extract_extradata: {
|
|
98
|
+
/** remove the extradata from the bitstream */
|
|
99
|
+
remove?: number;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#filter_005funits
|
|
103
|
+
*/
|
|
104
|
+
filter_units: {
|
|
105
|
+
/** List of unit types to pass through the filter. */
|
|
106
|
+
pass_types?: string;
|
|
107
|
+
/** List of unit types to remove in the filter. */
|
|
108
|
+
remove_types?: string;
|
|
109
|
+
/** Remove the selected frames */
|
|
110
|
+
discard?: 'none' | 'default' | 'nonref' | 'bidir' | 'nonintra' | 'nonkey' | 'all';
|
|
111
|
+
/** flags to control the discard frame behavior */
|
|
112
|
+
discard_flags?: 'keep_non_vcl' | (string & {});
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata
|
|
116
|
+
*/
|
|
117
|
+
h264_metadata: {
|
|
118
|
+
/** Access Unit Delimiter NAL units */
|
|
119
|
+
aud?: 'pass' | 'insert' | 'remove';
|
|
120
|
+
/** Set sample aspect ratio (table E-1) */
|
|
121
|
+
sample_aspect_ratio?: string | number;
|
|
122
|
+
/** Set VUI overscan appropriate flag */
|
|
123
|
+
overscan_appropriate_flag?: number;
|
|
124
|
+
/** Set video format (table E-2) */
|
|
125
|
+
video_format?: number;
|
|
126
|
+
/** Set video full range flag */
|
|
127
|
+
video_full_range_flag?: number;
|
|
128
|
+
/** Set colour primaries (table E-3) */
|
|
129
|
+
colour_primaries?: number;
|
|
130
|
+
/** Set transfer characteristics (table E-4) */
|
|
131
|
+
transfer_characteristics?: number;
|
|
132
|
+
/** Set matrix coefficients (table E-5) */
|
|
133
|
+
matrix_coefficients?: number;
|
|
134
|
+
/** Set chroma sample location type (figure E-1) */
|
|
135
|
+
chroma_sample_loc_type?: number;
|
|
136
|
+
/** Set VUI tick rate (time_scale / num_units_in_tick) */
|
|
137
|
+
tick_rate?: string | number;
|
|
138
|
+
/** Set VUI fixed frame rate flag */
|
|
139
|
+
fixed_frame_rate_flag?: number;
|
|
140
|
+
/** Set constraint_set4_flag / constraint_set5_flag to zero */
|
|
141
|
+
zero_new_constraint_set_flags?: boolean;
|
|
142
|
+
/** Set left border crop offset */
|
|
143
|
+
crop_left?: number;
|
|
144
|
+
/** Set right border crop offset */
|
|
145
|
+
crop_right?: number;
|
|
146
|
+
/** Set top border crop offset */
|
|
147
|
+
crop_top?: number;
|
|
148
|
+
/** Set bottom border crop offset */
|
|
149
|
+
crop_bottom?: number;
|
|
150
|
+
/** Insert SEI user data (UUID+string) */
|
|
151
|
+
sei_user_data?: string;
|
|
152
|
+
/** Delete all filler (both NAL and SEI) */
|
|
153
|
+
delete_filler?: number;
|
|
154
|
+
/** Display orientation SEI */
|
|
155
|
+
display_orientation?: 'pass' | 'insert' | 'remove' | 'extract';
|
|
156
|
+
/** Set rotation in display orientation SEI (anticlockwise angle in degrees) */
|
|
157
|
+
rotate?: number;
|
|
158
|
+
/** Set flip in display orientation SEI */
|
|
159
|
+
flip?: 'horizontal' | 'vertical' | (string & {});
|
|
160
|
+
/** Set level (table A-1) */
|
|
161
|
+
level?: 'auto' | '1' | '1b' | '1.1' | '1.2' | '1.3' | '2' | '2.1' | '2.2' | '3' | '3.1' | '3.2' | '4' | '4.1' | '4.2' | '5' | '5.1' | '5.2' | '6' | '6.1' | '6.2';
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#hapqa_005fextract
|
|
165
|
+
*/
|
|
166
|
+
hapqa_extract: {
|
|
167
|
+
/** texture to keep */
|
|
168
|
+
texture?: 'color' | 'alpha';
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#hevc_005fmetadata
|
|
172
|
+
*/
|
|
173
|
+
hevc_metadata: {
|
|
174
|
+
/** Access Unit Delimiter NAL units */
|
|
175
|
+
aud?: 'pass' | 'insert' | 'remove';
|
|
176
|
+
/** Set sample aspect ratio (table E-1) */
|
|
177
|
+
sample_aspect_ratio?: string | number;
|
|
178
|
+
/** Set video format (table E-2) */
|
|
179
|
+
video_format?: number;
|
|
180
|
+
/** Set video full range flag */
|
|
181
|
+
video_full_range_flag?: number;
|
|
182
|
+
/** Set colour primaries (table E-3) */
|
|
183
|
+
colour_primaries?: number;
|
|
184
|
+
/** Set transfer characteristics (table E-4) */
|
|
185
|
+
transfer_characteristics?: number;
|
|
186
|
+
/** Set matrix coefficients (table E-5) */
|
|
187
|
+
matrix_coefficients?: number;
|
|
188
|
+
/** Set chroma sample location type (figure E-1) */
|
|
189
|
+
chroma_sample_loc_type?: number;
|
|
190
|
+
/** Set VPS and VUI tick rate (time_scale / num_units_in_tick) */
|
|
191
|
+
tick_rate?: string | number;
|
|
192
|
+
/** Set VPS and VUI number of ticks per POC increment */
|
|
193
|
+
num_ticks_poc_diff_one?: number;
|
|
194
|
+
/** Set left border crop offset */
|
|
195
|
+
crop_left?: number;
|
|
196
|
+
/** Set right border crop offset */
|
|
197
|
+
crop_right?: number;
|
|
198
|
+
/** Set top border crop offset */
|
|
199
|
+
crop_top?: number;
|
|
200
|
+
/** Set bottom border crop offset */
|
|
201
|
+
crop_bottom?: number;
|
|
202
|
+
/** Set width after crop */
|
|
203
|
+
width?: number;
|
|
204
|
+
/** Set height after crop */
|
|
205
|
+
height?: number;
|
|
206
|
+
/** Set level (tables A.6 and A.7) */
|
|
207
|
+
level?: 'auto' | '1' | '2' | '2.1' | '3' | '3.1' | '4' | '4.1' | '5' | '5.1' | '5.2' | '6' | '6.1' | '6.2' | '8.5';
|
|
208
|
+
/** Remove Dolby Vision EL and RPU */
|
|
209
|
+
remove_dovi?: boolean;
|
|
210
|
+
/** Remove HDR10+ metadata */
|
|
211
|
+
remove_hdr10plus?: boolean;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#lcevc_005fmetadata
|
|
215
|
+
*/
|
|
216
|
+
lcevc_metadata: {
|
|
217
|
+
/** Set VUI overscan appropriate flag */
|
|
218
|
+
overscan_appropriate_flag?: boolean;
|
|
219
|
+
/** Set video format (table E-2) */
|
|
220
|
+
video_format?: number;
|
|
221
|
+
/** Set video full range flag */
|
|
222
|
+
video_full_range_flag?: boolean;
|
|
223
|
+
/** Set colour primaries (table E-3) */
|
|
224
|
+
colour_primaries?: number;
|
|
225
|
+
/** Set transfer characteristics (table E-4) */
|
|
226
|
+
transfer_characteristics?: number;
|
|
227
|
+
/** Set matrix coefficients (table E-5) */
|
|
228
|
+
matrix_coefficients?: number;
|
|
229
|
+
/** Set chroma sample location type (figure E-1) */
|
|
230
|
+
chroma_sample_loc_type?: number;
|
|
231
|
+
/** Delete all filler */
|
|
232
|
+
delete_filler?: boolean;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#mpeg2_005fmetadata
|
|
236
|
+
*/
|
|
237
|
+
mpeg2_metadata: {
|
|
238
|
+
/** Set display aspect ratio (table 6-3) */
|
|
239
|
+
display_aspect_ratio?: string | number;
|
|
240
|
+
/** Set frame rate */
|
|
241
|
+
frame_rate?: string | number;
|
|
242
|
+
/** Set video format (table 6-6) */
|
|
243
|
+
video_format?: number;
|
|
244
|
+
/** Set colour primaries (table 6-7) */
|
|
245
|
+
colour_primaries?: number;
|
|
246
|
+
/** Set transfer characteristics (table 6-8) */
|
|
247
|
+
transfer_characteristics?: number;
|
|
248
|
+
/** Set matrix coefficients (table 6-9) */
|
|
249
|
+
matrix_coefficients?: number;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#noise
|
|
253
|
+
*/
|
|
254
|
+
noise: {
|
|
255
|
+
amount?: string;
|
|
256
|
+
drop?: string;
|
|
257
|
+
dropamount?: number;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#opus_005fmetadata
|
|
261
|
+
*/
|
|
262
|
+
opus_metadata: {
|
|
263
|
+
/** Gain, actual amplification is pow(10, gain/(20.0*256)) */
|
|
264
|
+
gain?: number;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#pcm_005frechunk
|
|
268
|
+
*/
|
|
269
|
+
pcm_rechunk: {
|
|
270
|
+
/** set the number of per-packet output samples */
|
|
271
|
+
nb_out_samples?: number;
|
|
272
|
+
/** set the number of per-packet output samples */
|
|
273
|
+
n?: number;
|
|
274
|
+
/** pad last packet with zeros */
|
|
275
|
+
pad?: boolean;
|
|
276
|
+
/** pad last packet with zeros */
|
|
277
|
+
p?: boolean;
|
|
278
|
+
/** set number of packets per second */
|
|
279
|
+
frame_rate?: string | number;
|
|
280
|
+
/** set number of packets per second */
|
|
281
|
+
r?: string | number;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#prores_005fmetadata
|
|
285
|
+
*/
|
|
286
|
+
prores_metadata: {
|
|
287
|
+
/** select color primaries */
|
|
288
|
+
color_primaries?: 'auto' | 'unknown' | 'bt709' | 'bt470bg' | 'smpte170m' | 'bt2020' | 'smpte431' | 'smpte432';
|
|
289
|
+
/** select color transfer */
|
|
290
|
+
color_trc?: 'auto' | 'unknown' | 'bt709' | 'smpte2084' | 'arib-std-b67';
|
|
291
|
+
/** select colorspace */
|
|
292
|
+
colorspace?: 'auto' | 'unknown' | 'bt709' | 'smpte170m' | 'bt2020nc';
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#remove_005fextra
|
|
296
|
+
*/
|
|
297
|
+
remove_extra: {
|
|
298
|
+
freq?: 'k' | 'keyframe' | 'e' | 'all';
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#setts
|
|
302
|
+
*/
|
|
303
|
+
setts: {
|
|
304
|
+
/** set expression for packet PTS and DTS */
|
|
305
|
+
ts?: string;
|
|
306
|
+
/** set expression for packet PTS */
|
|
307
|
+
pts?: string;
|
|
308
|
+
/** set expression for packet DTS */
|
|
309
|
+
dts?: string;
|
|
310
|
+
/** set expression for packet duration */
|
|
311
|
+
duration?: string;
|
|
312
|
+
/** set output timebase */
|
|
313
|
+
time_base?: string | number;
|
|
314
|
+
/** convert to output timebase before evaluation */
|
|
315
|
+
prescale?: boolean;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#trim
|
|
319
|
+
*/
|
|
320
|
+
trim: {
|
|
321
|
+
/** time or index marking the start of the accepted range */
|
|
322
|
+
start?: number;
|
|
323
|
+
/** how to interpret start */
|
|
324
|
+
start_type?: 'pts' | 'dts' | 'pkt_index' | 'msec_pt' | 'msec_dt';
|
|
325
|
+
/** interpret start relative to the first packet of the stream */
|
|
326
|
+
start_rel?: boolean;
|
|
327
|
+
/** time or index marking the end of the accepted range */
|
|
328
|
+
end?: number;
|
|
329
|
+
/** how to interpret end */
|
|
330
|
+
end_type?: 'pts' | 'dts' | 'pkt_index' | 'msec_pt' | 'msec_dt' | 'dur_ts' | 'dur_t_msec';
|
|
331
|
+
/** interpret end relative to the first exported packet */
|
|
332
|
+
end_rel?: boolean;
|
|
333
|
+
/** trim packets straddling a boundary instead of exporting them untouched or dropping them */
|
|
334
|
+
trim_packets?: boolean;
|
|
335
|
+
/** export the packets the first packet in range needs to be decodable, flagged for the decoder to drop them after decoding */
|
|
336
|
+
preroll?: boolean;
|
|
337
|
+
/** maximum number of packets held for preroll */
|
|
338
|
+
preroll_size?: number;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#vp9_005fmetadata
|
|
342
|
+
*/
|
|
343
|
+
vp9_metadata: {
|
|
344
|
+
/** Set colour space (section 7.2.2) */
|
|
345
|
+
color_space?: 'unknown' | 'bt601' | 'bt709' | 'smpte170' | 'smpte240' | 'bt2020' | 'rgb';
|
|
346
|
+
/** Set colour range (section 7.2.2) */
|
|
347
|
+
color_range?: 'tv' | 'pc';
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* @see https://ffmpeg.org/ffmpeg-bitstream-filters.html#vvc_005fmetadata
|
|
351
|
+
*/
|
|
352
|
+
vvc_metadata: {
|
|
353
|
+
/** Access Unit Delimiter NAL units */
|
|
354
|
+
aud?: 'pass' | 'insert' | 'remove';
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
/** Loose option bag for bitstream filters without generated typings. */
|
|
358
|
+
export type UnknownBsfOptions = Record<string, string | number | boolean | bigint | undefined | null>;
|
|
359
|
+
/**
|
|
360
|
+
* Resolve the options for a bitstream filter. Returns the strongly-typed option
|
|
361
|
+
* set when the filter name is known (autocomplete + validation), otherwise a
|
|
362
|
+
* loose bag.
|
|
363
|
+
*/
|
|
364
|
+
export type BsfOptionsFor<N> = N extends keyof BsfOptionsMap ? BsfOptionsMap[N] : UnknownBsfOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bsf-options.js","sourceRoot":"","sources":["../../src/constants/bsf-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FFmpeg Channel Layout Constants
|
|
3
|
+
* Auto-generated from FFmpeg headers
|
|
4
|
+
* DO NOT EDIT MANUALLY
|
|
5
|
+
*/
|
|
6
|
+
import type { ChannelLayout } from '../lib/types.js';
|
|
7
|
+
export declare const AV_CH_FRONT_LEFT = 1n;
|
|
8
|
+
export declare const AV_CH_FRONT_RIGHT = 2n;
|
|
9
|
+
export declare const AV_CH_FRONT_CENTER = 4n;
|
|
10
|
+
export declare const AV_CH_LOW_FREQUENCY = 8n;
|
|
11
|
+
export declare const AV_CH_BACK_LEFT = 16n;
|
|
12
|
+
export declare const AV_CH_BACK_RIGHT = 32n;
|
|
13
|
+
export declare const AV_CH_FRONT_LEFT_OF_CENTER = 64n;
|
|
14
|
+
export declare const AV_CH_FRONT_RIGHT_OF_CENTER = 128n;
|
|
15
|
+
export declare const AV_CH_BACK_CENTER = 256n;
|
|
16
|
+
export declare const AV_CH_SIDE_LEFT = 512n;
|
|
17
|
+
export declare const AV_CH_SIDE_RIGHT = 1024n;
|
|
18
|
+
export declare const AV_CH_LAYOUT_MONO = 4n;
|
|
19
|
+
export declare const AV_CH_LAYOUT_STEREO = 3n;
|
|
20
|
+
export declare const AV_CH_LAYOUT_2POINT1 = 11n;
|
|
21
|
+
export declare const AV_CH_LAYOUT_SURROUND = 7n;
|
|
22
|
+
export declare const AV_CH_LAYOUT_3POINT1 = 15n;
|
|
23
|
+
export declare const AV_CH_LAYOUT_4POINT0 = 263n;
|
|
24
|
+
export declare const AV_CH_LAYOUT_4POINT1 = 271n;
|
|
25
|
+
export declare const AV_CH_LAYOUT_QUAD = 51n;
|
|
26
|
+
export declare const AV_CH_LAYOUT_5POINT0 = 1543n;
|
|
27
|
+
export declare const AV_CH_LAYOUT_5POINT1 = 1551n;
|
|
28
|
+
export declare const AV_CH_LAYOUT_5POINT0_BACK = 55n;
|
|
29
|
+
export declare const AV_CH_LAYOUT_5POINT1_BACK = 63n;
|
|
30
|
+
export declare const AV_CH_LAYOUT_6POINT0 = 1799n;
|
|
31
|
+
export declare const AV_CH_LAYOUT_6POINT0_FRONT = 1731n;
|
|
32
|
+
export declare const AV_CH_LAYOUT_6POINT1 = 1807n;
|
|
33
|
+
export declare const AV_CH_LAYOUT_7POINT0 = 1591n;
|
|
34
|
+
export declare const AV_CH_LAYOUT_7POINT1 = 1599n;
|
|
35
|
+
export declare const AV_CH_LAYOUT_OCTAGONAL = 1847n;
|
|
36
|
+
export declare const AV_CHANNEL_LAYOUT_MONO: ChannelLayout;
|
|
37
|
+
export declare const AV_CHANNEL_LAYOUT_STEREO: ChannelLayout;
|
|
38
|
+
export declare const AV_CHANNEL_LAYOUT_2POINT1: ChannelLayout;
|
|
39
|
+
export declare const AV_CHANNEL_LAYOUT_SURROUND: ChannelLayout;
|
|
40
|
+
export declare const AV_CHANNEL_LAYOUT_3POINT1: ChannelLayout;
|
|
41
|
+
export declare const AV_CHANNEL_LAYOUT_4POINT0: ChannelLayout;
|
|
42
|
+
export declare const AV_CHANNEL_LAYOUT_4POINT1: ChannelLayout;
|
|
43
|
+
export declare const AV_CHANNEL_LAYOUT_QUAD: ChannelLayout;
|
|
44
|
+
export declare const AV_CHANNEL_LAYOUT_5POINT0: ChannelLayout;
|
|
45
|
+
export declare const AV_CHANNEL_LAYOUT_5POINT1: ChannelLayout;
|
|
46
|
+
export declare const AV_CHANNEL_LAYOUT_5POINT0_BACK: ChannelLayout;
|
|
47
|
+
export declare const AV_CHANNEL_LAYOUT_5POINT1_BACK: ChannelLayout;
|
|
48
|
+
export declare const AV_CHANNEL_LAYOUT_6POINT0: ChannelLayout;
|
|
49
|
+
export declare const AV_CHANNEL_LAYOUT_6POINT0_FRONT: ChannelLayout;
|
|
50
|
+
export declare const AV_CHANNEL_LAYOUT_6POINT1: ChannelLayout;
|
|
51
|
+
export declare const AV_CHANNEL_LAYOUT_7POINT0: ChannelLayout;
|
|
52
|
+
export declare const AV_CHANNEL_LAYOUT_7POINT1: ChannelLayout;
|
|
53
|
+
export declare const AV_CHANNEL_LAYOUT_OCTAGONAL: ChannelLayout;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FFmpeg Channel Layout Constants
|
|
3
|
+
* Auto-generated from FFmpeg headers
|
|
4
|
+
* DO NOT EDIT MANUALLY
|
|
5
|
+
*/
|
|
6
|
+
import { AV_CHANNEL_ORDER_NATIVE } from './constants.js';
|
|
7
|
+
// Channel masks (for legacy API)
|
|
8
|
+
export const AV_CH_FRONT_LEFT = 0x1n;
|
|
9
|
+
export const AV_CH_FRONT_RIGHT = 0x2n;
|
|
10
|
+
export const AV_CH_FRONT_CENTER = 0x4n;
|
|
11
|
+
export const AV_CH_LOW_FREQUENCY = 0x8n;
|
|
12
|
+
export const AV_CH_BACK_LEFT = 0x10n;
|
|
13
|
+
export const AV_CH_BACK_RIGHT = 0x20n;
|
|
14
|
+
export const AV_CH_FRONT_LEFT_OF_CENTER = 0x40n;
|
|
15
|
+
export const AV_CH_FRONT_RIGHT_OF_CENTER = 0x80n;
|
|
16
|
+
export const AV_CH_BACK_CENTER = 0x100n;
|
|
17
|
+
export const AV_CH_SIDE_LEFT = 0x200n;
|
|
18
|
+
export const AV_CH_SIDE_RIGHT = 0x400n;
|
|
19
|
+
// Channel layout bitmasks
|
|
20
|
+
export const AV_CH_LAYOUT_MONO = 0x4n;
|
|
21
|
+
export const AV_CH_LAYOUT_STEREO = 0x3n;
|
|
22
|
+
export const AV_CH_LAYOUT_2POINT1 = 0xbn;
|
|
23
|
+
export const AV_CH_LAYOUT_SURROUND = 0x7n;
|
|
24
|
+
export const AV_CH_LAYOUT_3POINT1 = 0xfn;
|
|
25
|
+
export const AV_CH_LAYOUT_4POINT0 = 0x107n;
|
|
26
|
+
export const AV_CH_LAYOUT_4POINT1 = 0x10fn;
|
|
27
|
+
export const AV_CH_LAYOUT_QUAD = 0x33n;
|
|
28
|
+
export const AV_CH_LAYOUT_5POINT0 = 0x607n;
|
|
29
|
+
export const AV_CH_LAYOUT_5POINT1 = 0x60fn;
|
|
30
|
+
export const AV_CH_LAYOUT_5POINT0_BACK = 0x37n;
|
|
31
|
+
export const AV_CH_LAYOUT_5POINT1_BACK = 0x3fn;
|
|
32
|
+
export const AV_CH_LAYOUT_6POINT0 = 0x707n;
|
|
33
|
+
export const AV_CH_LAYOUT_6POINT0_FRONT = 0x6c3n;
|
|
34
|
+
export const AV_CH_LAYOUT_6POINT1 = 0x70fn;
|
|
35
|
+
export const AV_CH_LAYOUT_7POINT0 = 0x637n;
|
|
36
|
+
export const AV_CH_LAYOUT_7POINT1 = 0x63fn;
|
|
37
|
+
export const AV_CH_LAYOUT_OCTAGONAL = 0x737n;
|
|
38
|
+
// Modern AVChannelLayout structures as ChannelLayout objects
|
|
39
|
+
export const AV_CHANNEL_LAYOUT_MONO = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 1, mask: AV_CH_LAYOUT_MONO };
|
|
40
|
+
export const AV_CHANNEL_LAYOUT_STEREO = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 2, mask: AV_CH_LAYOUT_STEREO };
|
|
41
|
+
export const AV_CHANNEL_LAYOUT_2POINT1 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 3, mask: AV_CH_LAYOUT_2POINT1 };
|
|
42
|
+
export const AV_CHANNEL_LAYOUT_SURROUND = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 3, mask: AV_CH_LAYOUT_SURROUND };
|
|
43
|
+
export const AV_CHANNEL_LAYOUT_3POINT1 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 4, mask: AV_CH_LAYOUT_3POINT1 };
|
|
44
|
+
export const AV_CHANNEL_LAYOUT_4POINT0 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 4, mask: AV_CH_LAYOUT_4POINT0 };
|
|
45
|
+
export const AV_CHANNEL_LAYOUT_4POINT1 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 5, mask: AV_CH_LAYOUT_4POINT1 };
|
|
46
|
+
export const AV_CHANNEL_LAYOUT_QUAD = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 4, mask: AV_CH_LAYOUT_QUAD };
|
|
47
|
+
export const AV_CHANNEL_LAYOUT_5POINT0 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 5, mask: AV_CH_LAYOUT_5POINT0 };
|
|
48
|
+
export const AV_CHANNEL_LAYOUT_5POINT1 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 6, mask: AV_CH_LAYOUT_5POINT1 };
|
|
49
|
+
export const AV_CHANNEL_LAYOUT_5POINT0_BACK = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 5, mask: AV_CH_LAYOUT_5POINT0_BACK };
|
|
50
|
+
export const AV_CHANNEL_LAYOUT_5POINT1_BACK = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 6, mask: AV_CH_LAYOUT_5POINT1_BACK };
|
|
51
|
+
export const AV_CHANNEL_LAYOUT_6POINT0 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 6, mask: AV_CH_LAYOUT_6POINT0 };
|
|
52
|
+
export const AV_CHANNEL_LAYOUT_6POINT0_FRONT = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 6, mask: AV_CH_LAYOUT_6POINT0_FRONT };
|
|
53
|
+
export const AV_CHANNEL_LAYOUT_6POINT1 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 7, mask: AV_CH_LAYOUT_6POINT1 };
|
|
54
|
+
export const AV_CHANNEL_LAYOUT_7POINT0 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 7, mask: AV_CH_LAYOUT_7POINT0 };
|
|
55
|
+
export const AV_CHANNEL_LAYOUT_7POINT1 = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 8, mask: AV_CH_LAYOUT_7POINT1 };
|
|
56
|
+
export const AV_CHANNEL_LAYOUT_OCTAGONAL = { order: AV_CHANNEL_ORDER_NATIVE, nbChannels: 8, mask: AV_CH_LAYOUT_OCTAGONAL };
|
|
57
|
+
//# sourceMappingURL=channel-layouts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-lay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