Skip to content

node-av / lib/native-types / NativeCodec

Interface: NativeCodec

Defined in: src/lib/native-types.ts:154

Internal

Native AVCodec binding interface

Represents a codec (encoder or decoder) definition. This is an immutable descriptor - actual encoding/decoding happens via CodecContext.

Properties

__brand

readonly __brand: "NativeCodec"

Defined in: src/lib/native-types.ts:155


capabilities

readonly capabilities: AVCodecCap

Defined in: src/lib/native-types.ts:161


channelLayouts

readonly channelLayouts: null | ChannelLayout[]

Defined in: src/lib/native-types.ts:169


id

readonly id: AVCodecID

Defined in: src/lib/native-types.ts:160


longName

readonly longName: null | string

Defined in: src/lib/native-types.ts:158


maxLowres

readonly maxLowres: number

Defined in: src/lib/native-types.ts:162


name

readonly name: null | string

Defined in: src/lib/native-types.ts:157


pixelFormats

readonly pixelFormats: null | AVPixelFormat[]

Defined in: src/lib/native-types.ts:166


profiles

readonly profiles: null | CodecProfile[]

Defined in: src/lib/native-types.ts:163


sampleFormats

readonly sampleFormats: null | AVSampleFormat[]

Defined in: src/lib/native-types.ts:168


supportedFramerates

readonly supportedFramerates: null | IRational[]

Defined in: src/lib/native-types.ts:165


supportedSamplerates

readonly supportedSamplerates: null | number[]

Defined in: src/lib/native-types.ts:167


type

readonly type: AVMediaType

Defined in: src/lib/native-types.ts:159


wrapper

readonly wrapper: null | string

Defined in: src/lib/native-types.ts:164

Methods

getHwConfig()

getHwConfig(index): null | { deviceType: AVHWDeviceType; methods: number; pixFmt: AVPixelFormat; }

Defined in: src/lib/native-types.ts:174

Parameters

index

number

Returns

null | { deviceType: AVHWDeviceType; methods: number; pixFmt: AVPixelFormat; }


isDecoder()

isDecoder(): boolean

Defined in: src/lib/native-types.ts:172

Returns

boolean


isEncoder()

isEncoder(): boolean

Defined in: src/lib/native-types.ts:171

Returns

boolean


isExperimental()

isExperimental(): boolean

Defined in: src/lib/native-types.ts:173

Returns

boolean