node-av / lib/native-types / NativeHardwareDeviceContext
Interface: NativeHardwareDeviceContext
Defined in: src/lib/native-types.ts:930
Internal
Native AVHWDeviceContext binding interface
Hardware device context for hardware acceleration. Direct mapping to FFmpeg's AVHWDeviceContext.
Extends
Disposable
Properties
__brand
readonly__brand:"NativeHardwareDeviceContext"
Defined in: src/lib/native-types.ts:931
hwctx
readonlyhwctx:bigint|null
Defined in: src/lib/native-types.ts:934
type
readonlytype:AVHWDeviceType
Defined in: src/lib/native-types.ts:933
Methods
[dispose]()
[dispose]():
void
Defined in: src/lib/native-types.ts:951
Returns
void
Overrides
Disposable.[dispose]
alloc()
alloc(
type):void
Defined in: src/lib/native-types.ts:936
Parameters
type
Returns
void
create()
create(
type,device,options):number
Defined in: src/lib/native-types.ts:938
Parameters
type
device
string | null
options
any
Returns
number
createDerived()
createDerived(
source,type):number
Defined in: src/lib/native-types.ts:939
Parameters
source
NativeHardwareDeviceContext
type
Returns
number
free()
free():
void
Defined in: src/lib/native-types.ts:949
Returns
void
getHwframeConstraints()
getHwframeConstraints(
hwconfig?): {maxHeight:number;maxWidth:number;minHeight:number;minWidth:number;validHwFormats?:AVPixelFormat[];validSwFormats?:AVPixelFormat[]; } |null
Defined in: src/lib/native-types.ts:941
Parameters
hwconfig?
bigint
Returns
{ maxHeight: number; maxWidth: number; minHeight: number; minWidth: number; validHwFormats?: AVPixelFormat[]; validSwFormats?: AVPixelFormat[]; } | null
hwconfigAlloc()
hwconfigAlloc():
bigint|null
Defined in: src/lib/native-types.ts:940
Returns
bigint | null
init()
init():
number
Defined in: src/lib/native-types.ts:937
Returns
number
