MCPcopy Create free account

hub / github.com/Vanilagy/mediabunny / functions

Functions2,168 in github.com/Vanilagy/mediabunny

↓ 739 callersFunctionassert
(x: unknown)
src/misc.ts:12
↓ 279 callersMethodadd
(audioSample: AudioSample)
src/resample.ts:173
↓ 244 callersMethodreadBits
(n: number)
shared/bitstream.ts:29
↓ 191 callersMethodget
(name: string)
src/hls/hls-misc.ts:64
↓ 158 callersMethodslice
Creates a new subslice of this slice whose byte range must be contained within this slice.
src/reader.ts:199
↓ 133 callersMethodskipBits
(n: number)
shared/bitstream.ts:72
↓ 115 callersMethodstart
* Starts the creation of the output file. This method should be called after all tracks have been added. Only after * the output has started can med
src/output.ts:763
↓ 109 callersMethodfinalize
* Finalizes the output file. This method must be called after all media samples across all tracks have been added. * Once the Promise returned by th
src/output.ts:868
↓ 95 callersMethodgetCodec
()
src/input-track.ts:40
↓ 94 callersMethodaddVideoTrack
Adds a video track to the output with the given source. Can only be called before the output is started.
src/output.ts:598
↓ 94 callersMethodgetPrimaryAudioTrack
* Returns the primary audio track of this input file, or null if there are no audio tracks. * * Multiple factors determine which track is consider
src/input.ts:454
↓ 94 callersFunctionu32
(value: number)
src/isobmff/isobmff-boxes.ts:161
↓ 88 callersFunctionreadU32Be
(slice: FileSlice)
src/reader.ts:283
↓ 84 callersFunctionreadExpGolomb
(bitstream: Bitstream)
src/misc.ts:46
↓ 80 callersMethodcopyTo
* Copies this video sample's pixel data to an ArrayBuffer or ArrayBufferView. * @returns The byte layout of the planes of the copied data.
src/sample.ts:775
↓ 79 callersMethodgetPrimaryVideoTrack
* Returns the primary video track of this input file, or null if there are no video tracks. * * Multiple factors determine which track is consider
src/input.ts:430
↓ 78 callersMethodskip
(n: number)
src/mpeg-ts/mpeg-ts-demuxer.ts:1973
↓ 74 callersMethodwriteBits
(n: number, value: number)
shared/bitstream.ts:44
↓ 67 callersMethodaddAudioTrack
Adds an audio track to the output with the given source. Can only be called before the output is started.
src/output.ts:627
↓ 67 callersMethodrequestSlice
(start: number, length: number)
src/reader.ts:29
↓ 64 callersMethodgetDecoderConfig
()
src/input-track.ts:54
↓ 64 callersFunctionreadBytes
(slice: FileSlice, length: number)
src/reader.ts:224
↓ 63 callersFunctionreadU8
(slice: FileSlice)
src/reader.ts:233
↓ 63 callersMethodwrite
Writes the given data to the target, at the current position.
src/writer.ts:36
↓ 58 callersFunctionbox
(type: string, contents?: NestedNumberArray, children?: (Box | null)[])
src/isobmff/isobmff-boxes.ts:261
↓ 58 callersMethodpackets
* Creates an async iterator that yields the packets in this track in decode order. To enable fast iteration, this * method will intelligently preloa
src/media-sink.ts:307
↓ 57 callersMethodclose
()
test/browser/custom-sample-resources.test.ts:69
↓ 55 callersFunctionu16
(value: number)
src/isobmff/isobmff-boxes.ts:146
↓ 54 callersMethodtrim
* Returns a new {@link AudioSample} containing only the frames in the range [startSample, endSample). Both bounds * must lie within this sample's ra
src/sample.ts:2732
↓ 53 callersMethodencode
(audioSample: AudioSample)
packages/ac3/src/encoder.ts:82
↓ 53 callersFunctionvideoSource
(codec: VideoCodec = 'avc')
test/node/hls-output.test.ts:29
↓ 51 callersMethodacquire
()
src/misc.ts:177
↓ 51 callersMethodgetPos
Returns the current position.
src/writer.ts:50
↓ 51 callersMethodinit
({ key, iv }: Aes128CbcContextInit)
src/aes.ts:103
↓ 49 callersMethodallocationSize
* Returns the number of bytes required to hold this video sample's pixel data.
src/sample.ts:749
↓ 49 callersMethoddecode
(packet: EncodedPacket)
src/media-sink.ts:988
↓ 48 callersFunctiontoDataView
(source: AllowSharedBufferSource)
src/misc.ts:91
↓ 47 callersMethodgetFirstPacket
(options: PacketRetrievalOptions)
src/input-track.ts:57
↓ 46 callersMethodcomputeDuration
* Computes the duration of the input file, in seconds. More precisely, returns the largest end timestamp among * all tracks. * * Optionally, you
src/input.ts:357
↓ 46 callersFunctionpromiseWithResolvers
()
src/misc.ts:277
↓ 45 callersMethodgetNumberOfChannels
()
src/input-track.ts:796
↓ 45 callersMethodon
Registers a listener for a log event. Returns a function that, when called, removes the listener again.
src/logging.ts:86
↓ 44 callersMethodflush
Signals to the writer that it may be time to flush.
src/writer.ts:55
↓ 44 callersMethodgetSampleRate
()
src/input-track.ts:797
↓ 44 callersFunctiontoUint8Array
(source: AllowSharedBufferSource)
src/misc.ts:81
↓ 43 callersMethodgetTracks
* Returns the list of all tracks of this input file in the order in which they appear in the file. An optional * query can be provided.
src/input.ts:398
↓ 42 callersMethodgetFirstTimestamp
* Returns the timestamp at which the input file starts. More precisely, returns the smallest starting timestamp * among all tracks. * * Optional
src/input.ts:331
↓ 42 callersFunctionjoinPaths
(basePath: FilePath, relativePath: FilePath)
src/misc.ts:834
↓ 41 callersMethod_warn
@internal
src/logging.ts:104
↓ 41 callersFunctionreadUnsignedInt
(slice: FileSlice, width: number)
src/matroska/ebml.ts:539
↓ 39 callersFunctionbinarySearchLessOrEqual
(arr: T[], key: number, valueGetter: (x: T) => number)
src/misc.ts:251
↓ 39 callersMethodgetPacket
(timestamp: number, options: PacketRetrievalOptions)
src/input-track.ts:58
↓ 38 callersMethodclose
()
src/media-source.ts:977
↓ 36 callersMethodseek
Sets the current position for future writes to a new one.
src/writer.ts:45
↓ 35 callersFunctionfullBox
( type: string, version: number, flags: number, contents?: NestedNumberArray, children?: Box[], )
src/isobmff/isobmff-boxes.ts:268
↓ 33 callersFunctionaudioSource
(codec: AudioCodec = 'aac')
test/node/hls-output.test.ts:30
↓ 33 callersMethoddelegate
If the backing track is already present, delegate synchronously; otherwise, hydrate first.
src/segmented-input.ts:282
↓ 33 callersMethodexecute
* Executes the conversion process. Resolves once conversion is complete. * * Will throw if `isValid` is `false`.
src/conversion.ts:1048
↓ 33 callersMethodgetName
()
src/input-track.ts:42
↓ 31 callersMethodsplit
(sourceFrame: VideoFrame)
src/media-source.ts:933
↓ 30 callersMethodclose
* Closes this video sample, releasing held resources. Video samples should be closed as soon as they are not * needed anymore.
src/sample.ts:725
↓ 30 callersMethodgetDurationFromMetadata
(options: DurationMetadataRequestOptions)
src/input-track.ts:51
↓ 29 callersFunctionexpectColor
(actual: number[], expected: number[], tolerance = 4)
test/node/server-extension.test.ts:1185
↓ 29 callersFunctiongetColorAt
(rgba: Uint8Array, width: number, x: number, y: number)
test/node/server-extension.test.ts:1180
↓ 28 callersFunctionascii
(text: string, nullTerminated = false)
src/isobmff/isobmff-boxes.ts:223
↓ 27 callersMethodfree
* Frees the ref, decrementing the source's internal reference count. If the source's internal reference count * reaches zero, it gets disposed. To c
src/source.ts:261
↓ 27 callersMethodgetCodedHeight
()
src/input-track.ts:500
↓ 27 callersMethodgetCodedWidth
()
src/input-track.ts:499
↓ 27 callersMethodgetFormat
()
test/browser/custom-sample-resources.test.ts:18
↓ 27 callersMethodgetNextPacket
(packet: EncodedPacket, options: PacketRetrievalOptions)
src/input-track.ts:59
↓ 26 callersFunctionlast
(arr: T[])
src/misc.ts:37
↓ 25 callersMethodclose
()
src/media-sink.ts:1374
↓ 25 callersMethodrequestSliceRange
(start: number, minLength: number, maxLength: number)
src/reader.ts:67
↓ 25 callersFunctionsetUpSegmentationEnvironment
(options: { video?: boolean; audio?: boolean; } = {})
test/node/hls-output.test.ts:815
↓ 24 callersMethodclone
Clones this video sample.
src/sample.ts:663
↓ 24 callersFunctionintoTimescale
(timeInSeconds: number, timescale: number, round = true)
src/isobmff/isobmff-muxer.ts:163
↓ 24 callersMethodreadContiguousElements
(slice: FileSlice, stopIds?: number[])
src/matroska/matroska-demuxer.ts:923
↓ 24 callersFunctionrequireSync
(value: MaybePromise<T>, getterName: string, asyncName: string)
src/input-track.ts:461
↓ 23 callersMethodgetDisplayHeight
Returns the display height of the track's frames in pixels, after aspect ratio adjustment and rotation.
src/input-track.ts:679
↓ 23 callersMethodgetDisposition
()
src/input-track.ts:47
↓ 23 callersFunctionreadAscii
(slice: FileSlice, length: number)
src/reader.ts:370
↓ 22 callersFunctionencodeFrames
( encodingConfig: ConstructorParameters<typeof VideoSampleSource>[0], frames: { width: number; height: n
test/browser/media-sources.test.ts:503
↓ 22 callersMethodgetDisplayWidth
Returns the display width of the track's frames in pixels, after aspect ratio adjustment and rotation.
src/input-track.ts:648
↓ 22 callersMethodgetMetadataTags
* Returns descriptive metadata tags about the media file, such as title, author, date, cover art, or other * attached files.
src/input.ts:505
↓ 22 callersFunctionu8
(value: number)
src/isobmff/isobmff-boxes.ts:142
↓ 20 callersFunctionclamp
(value: number, min: number, max: number)
src/misc.ts:430
↓ 20 callersFunctionreadU16Be
(slice: FileSlice)
src/reader.ts:247
↓ 20 callersMethodrun
* Schedules an async function to be run. If the maximum allowed level of parallelism has not yet been reached, * the function will be executed immed
src/misc.ts:1304
↓ 19 callersMethod_error
@internal
src/logging.ts:95
↓ 19 callersMethoddispose
* Disposes this input and frees connected resources. When an input is disposed, ongoing read operations will be * canceled, all future read operatio
src/input.ts:518
↓ 19 callersFunctionencodeDecodeTest
( codec: AudioCodec, extraConfig: Partial<AudioEncoderConfig>, onPacket: (packet: EncodedPacket, meta: E
test/node/server-extension.test.ts:1688
↓ 18 callersFunctionassertNever
(x: never)
src/misc.ts:340
↓ 18 callersMethodgetKeyPacket
(timestamp: number, options: PacketRetrievalOptions)
src/input-track.ts:60
↓ 18 callersMethodwriteBox
(box: Box)
src/isobmff/isobmff-boxes.ts:84
↓ 16 callersFunctionaddCommentTag
(key: string, value: string)
src/codec-data.ts:2650
↓ 16 callersMethodgetSample
* Retrieves the video sample (frame) corresponding to the given timestamp, in seconds. More specifically, returns * the last video sample (in presen
src/media-sink.ts:1717
↓ 16 callersMethodhydrate
()
src/segmented-input.ts:250
↓ 16 callersMethodsamples
* Creates an async iterator that yields the video samples (frames) of this track in presentation order. This method * will intelligently pre-decode
src/media-sink.ts:1734
↓ 16 callersMethodstartTrackingWrites
()
src/writer.ts:106
↓ 16 callersMethodwriteU32
(value: number)
src/wave/riff-writer.ts:22
next →1–100 of 2,168, ranked by callers