/*! * Copyright (c) 2026-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { VideoSamplePixelFormat, MediaCodec } from 'mediabunny'; import * as NodeAv from 'node-av'; export declare const CODEC_TO_CODEC_ID: Partial>; export declare const getHardwareContext: () => NodeAv.HardwareContext | null; export declare const getHardwareDecoderCodec: (codecId: NodeAv.AVCodecID) => Promise; export declare const getHardwareEncoderCodec: (codecId: NodeAv.AVCodecID) => Promise; export declare const mapColorPrimaries: (primaries: string) => NodeAv.AVColorPrimaries | null; export declare const unmapColorPrimaries: (primaries: number) => "bt709" | "bt470bg" | "smpte170m" | "bt2020" | "smpte432" | null; export declare const mapTransferCharacteristics: (transfer: string) => NodeAv.AVColorTransferCharacteristic | null; export declare const unmapTransferCharacteristics: (transfer: number) => "bt709" | "smpte170m" | "iec61966-2-1" | "linear" | "pq" | "hlg" | null; export declare const mapMatrixCoefficients: (matrix: string) => NodeAv.AVColorSpace | null; export declare const unmapMatrixCoefficients: (matrix: number) => "bt709" | "bt470bg" | "smpte170m" | "rgb" | "bt2020-ncl" | null; export declare const toPixelFormat: (ffmpegPixelFormat: NodeAv.AVPixelFormat) => VideoSamplePixelFormat | null; export declare const fromPixelFormat: (pixelFormat: VideoSamplePixelFormat) => NodeAv.AVPixelFormat; export declare const toAudioSampleFormat: (ffmpegSampleFormat: NodeAv.AVSampleFormat) => AudioSampleFormat | null; export declare const fromAudioSampleFormat: (sampleFormat: AudioSampleFormat) => NodeAv.AVSampleFormat; export declare const getChannelLayout: (numChannels: number) => NodeAv.ChannelLayout; /** * DTS insists on the side-based surround layouts and rejects the back-based ones that {@link getChannelLayout} * hands out, so it gets its own mapping. */ export declare const getDtsChannelLayout: (numChannels: number) => NodeAv.ChannelLayout; /** The TrueHD encoder only accepts a fixed set of layouts, so it gets its own mapping. */ export declare const getTrueHdChannelLayout: (numChannels: number) => NodeAv.ChannelLayout; //# sourceMappingURL=misc.d.ts.map