Skip to main content

Module consts

Module consts 

Source
Expand description

Hand-transcribed oneVPL numeric constants.

Every value here is copied verbatim from the vendored headers under vendor/api/vpl/ (pinned commit — see vendor/README.md), cited by file and (approximate) line. These are plain C enum { NAME = value, ... }; blocks that are not attached to a named/typedef’d type bindgen would pick up under this crate’s allowlist_type("_?mfx.*") filter (see build.rs), so they are transcribed by hand instead of generated — a small, closed, independently-checkable set.

Constants§

MFX_CHROMAFORMAT_YUV420
4:2:0 chroma sampling. (mfxstructures.h line 265)
MFX_CODEC_AV1
AV1 codec ID. (mfxstructures.h line 1148)
MFX_CODEC_AVC
AVC / H.264 codec ID. (mfxstructures.h line ~1142)
MFX_CODEC_HEVC
HEVC / H.265 codec ID. (mfxstructures.h line 1143)
MFX_ERR_DEVICE_LOST
Lost the hardware acceleration device. (mfxdefs.h)
MFX_ERR_GPU_HANG
Device operation failure caused by GPU hang. (mfxdefs.h)
MFX_ERR_INCOMPATIBLE_VIDEO_PARAM
Incompatible video parameters. (mfxdefs.h)
MFX_ERR_INVALID_HANDLE
Invalid handle. (mfxdefs.h)
MFX_ERR_INVALID_VIDEO_PARAM
Invalid video parameters. (mfxdefs.h)
MFX_ERR_MEMORY_ALLOC
Failed to allocate memory. (mfxdefs.h)
MFX_ERR_MORE_DATA
Expect more data at input — not a hard failure; the caller has not fed enough frames yet for a packet to be ready. (mfxdefs.h)
MFX_ERR_MORE_SURFACE
Expect more surface at output. (mfxdefs.h)
MFX_ERR_NONE
No error. (mfxdefs.h)
MFX_ERR_NOT_ENOUGH_BUFFER
Insufficient buffer at input/output. (mfxdefs.h)
MFX_ERR_NOT_INITIALIZED
Member function called before initialization. (mfxdefs.h)
MFX_ERR_NULL_PTR
Null pointer. (mfxdefs.h)
MFX_ERR_UNKNOWN
Unknown error. (mfxdefs.h)
MFX_ERR_UNSUPPORTED
Unsupported feature. (mfxdefs.h)
MFX_FOURCC_NV12
NV12 color format. (mfxstructures.h line ~162)
MFX_FRAMETYPE_I
I-frame. (mfxstructures.h line 2984)
MFX_FRAMETYPE_IDR
IDR frame. (mfxstructures.h line 2990)
MFX_FRAMETYPE_REF
Reference frame. (mfxstructures.h line 2989)
MFX_GPUCOPY_DEFAULT
Default GPU-copy hinting (let the runtime decide). (mfxcommon.h line 190)
MFX_HANDLE_D3D11_DEVICE
Pointer to ID3D11Device.
MFX_IMPL_HARDWARE
A single specific hardware implementation. (mfxcommon.h)
MFX_IMPL_HARDWARE_ANY
Any hardware implementation, unconstrained — this crate’s session-open implementation selector. (mfxcommon.h)
MFX_IMPL_VIA_D3D11
Acceleration-mode bit: use Direct3D11 for hardware acceleration. (mfxcommon.h)
MFX_IOPATTERN_IN_SYSTEM_MEMORY
Input is a linear buffer directly in system memory (CPU-upload path — this crate’s only Stage 1 path). (mfxstructures.h line 1135)
MFX_LEVEL_AV1_41
AV1 level 4.1. (mfxstructures.h line 1320)
MFX_LEVEL_AVC_41
AVC level 4.1 (covers up to 1080p30-ish; ample for this stage’s test sizes). (mfxstructures.h line 1207)
MFX_LEVEL_HEVC_41
HEVC level 4.1 — matches this crate’s AVC 4.1 choice, ample for this stage’s test sizes. (mfxstructures.h line 1278)
MFX_PICSTRUCT_PROGRESSIVE
Progressive picture. (mfxstructures.h line 247)
MFX_PROFILE_AV1_MAIN
AV1 Main profile. (mfxstructures.h line 1304)
MFX_PROFILE_AVC_BASELINE
AVC Baseline profile. (mfxstructures.h line 1172)
MFX_PROFILE_HEVC_MAIN
HEVC Main (8-bit 4:2:0) profile. (mfxstructures.h line 1263)
MFX_RATECONTROL_CBR
Constant bitrate. (mfxstructures.h line 1412)
MFX_RATECONTROL_CQP
Constant QP. (mfxstructures.h line 1414)
MFX_TARGETUSAGE_BALANCED
Balanced quality/speed target usage (MFX_TARGETUSAGE_4). (mfxstructures.h line ~1396-1406)
MFX_WRN_DEVICE_BUSY
The hardware acceleration device is busy — retry. (mfxdefs.h)
MFX_WRN_INCOMPATIBLE_VIDEO_PARAM
Incompatible video parameters (non-fatal — the library adjusted them). (mfxdefs.h)
MFX_WRN_IN_EXECUTION
The previous asynchronous operation is in execution — not a hard failure. (mfxdefs.h)
MFX_WRN_PARTIAL_ACCELERATION
Software acceleration is used (no real HW path) — the caller should treat this as a degraded-but-successful Init, not a failure. (mfxdefs.h)

Functions§

mfx_succeeded
true for any MFX_ERR_*/MFX_WRN_* value this crate treats as “the call itself succeeded” (MFX_ERR_NONE or a positive MFX_WRN_* warning code).