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.hline 265) - MFX_
CODEC_ AV1 - AV1 codec ID. (
mfxstructures.hline 1148) - MFX_
CODEC_ AVC - AVC / H.264 codec ID. (
mfxstructures.hline ~1142) - MFX_
CODEC_ HEVC - HEVC / H.265 codec ID. (
mfxstructures.hline 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.hline ~162) - MFX_
FRAMETYPE_ I - I-frame. (
mfxstructures.hline 2984) - MFX_
FRAMETYPE_ IDR - IDR frame. (
mfxstructures.hline 2990) - MFX_
FRAMETYPE_ REF - Reference frame. (
mfxstructures.hline 2989) - MFX_
GPUCOPY_ DEFAULT - Default GPU-copy hinting (let the runtime decide). (
mfxcommon.hline 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
Direct3D11for 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.hline 1135) - MFX_
LEVEL_ AV1_ 41 - AV1 level 4.1. (
mfxstructures.hline 1320) - MFX_
LEVEL_ AVC_ 41 - AVC level 4.1 (covers up to 1080p30-ish; ample for this stage’s test sizes).
(
mfxstructures.hline 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.hline 1278) - MFX_
PICSTRUCT_ PROGRESSIVE - Progressive picture. (
mfxstructures.hline 247) - MFX_
PROFILE_ AV1_ MAIN - AV1 Main profile. (
mfxstructures.hline 1304) - MFX_
PROFILE_ AVC_ BASELINE - AVC Baseline profile. (
mfxstructures.hline 1172) - MFX_
PROFILE_ HEVC_ MAIN - HEVC Main (8-bit 4:2:0) profile. (
mfxstructures.hline 1263) - MFX_
RATECONTROL_ CBR - Constant bitrate. (
mfxstructures.hline 1412) - MFX_
RATECONTROL_ CQP - Constant QP. (
mfxstructures.hline 1414) - MFX_
TARGETUSAGE_ BALANCED - Balanced quality/speed target usage (
MFX_TARGETUSAGE_4). (mfxstructures.hline ~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 truefor anyMFX_ERR_*/MFX_WRN_*value this crate treats as “the call itself succeeded” (MFX_ERR_NONEor a positiveMFX_WRN_*warning code).