Skip to main content

Module raw

Module raw 

Source
Expand description

Generated oneVPL struct/union/typedef bindings (types only — see build.rs), plus the handful of opaque handle types bindgen never sees because their home headers (mfxsession.h) are not part of this crate’s bindgen input (see vendor/README.md).

C naming throughout — not snake_case/CamelCase by Rust convention, matching every other -sys crate.

Structs§

__BindgenBitfieldUnit
_mfxEncryptedData
mfxA2RGB10
Specifies “pixel” in A2RGB10 color format
mfxABGR16FP
Specifies “pixel” in ABGR 16 bit half float point color format
mfxBitstream
Defines the buffer that holds compressed video data.
mfxBitstream__bindgen_ty_1__bindgen_ty_1
mfxEncodeCtrl
Contains parameters for per-frame based encoding control.
mfxExtBuffer
The common header definition for external buffers and video processing hints.
mfxFrameData
Describes frame buffer pointers.
mfxFrameId
Describes the view and layer of a frame picture.
mfxFrameId__bindgen_ty_1__bindgen_ty_1
mfxFrameId__bindgen_ty_1__bindgen_ty_2
mfxFrameInfo
Specifies properties of video frames. See also “Configuration Parameter Constraints” chapter.
mfxFrameInfo__bindgen_ty_1__bindgen_ty_1
mfxFrameInfo__bindgen_ty_1__bindgen_ty_2
mfxFrameSurface1
Defines the uncompressed frames surface information and data buffers. The frame surface is in the frame or complementary field pairs of pixels up to four color-channels, in two parts: mfxFrameInfo and mfxFrameData.
mfxFrameSurfaceInterface
Specifies frame surface interface.
mfxGUID
Represents Globally Unique Identifier (GUID) with memory layout compliant to RFC 4122. See https://www.rfc-editor.org/info/rfc4122 for details.
mfxInfoMFX
Specifies configurations for decoding, encoding, and transcoding processes. A zero value in any of these fields indicates that the field is not explicitly specified.
mfxInfoMFX__bindgen_ty_1__bindgen_ty_1
mfxInfoMFX__bindgen_ty_1__bindgen_ty_2
mfxInfoMFX__bindgen_ty_1__bindgen_ty_3
mfxInfoMFX__bindgen_ty_1__bindgen_ty_4
mfxInfoVPP
Specifies configurations for video processing. A zero value in any of the fields indicates that the corresponding field is not explicitly specified.
mfxInitParam
Specifies advanced initialization parameters. A zero value in any of the fields indicates that the corresponding field is not explicitly specified.
mfxInitParam__bindgen_ty_1__bindgen_ty_1
mfxPayload
Describes user data payload in MPEG-2 or SEI message payload in H.264.
mfxStructVersion__bindgen_ty_1
Structure with Major and Minor fields. / /! @struct Anonymous
mfxVersion__bindgen_ty_1
@brief Structure with Major and Minor fields. / /! @struct Anonymous
mfxVideoParam
Configuration parameters for encoding, decoding, transcoding, and video processing.
mfxY410
Specifies “pixel” in Y410 color format.
mfxY416
Specifies “pixel” in Y416 color format.

Constants§

mfxHandleType_MFX_HANDLE_CM_DEVICE
< Pointer to CmDevice interface ( Intel(r) C for Metal Runtime ).
mfxHandleType_MFX_HANDLE_CONFIG_INTERFACE
< Pointer to interface of type mfxConfigInterface.
mfxHandleType_MFX_HANDLE_D3D9_DEVICE_MANAGER
< Pointer to the IDirect3DDeviceManager9 interface. See Working with Microsoft* DirectX* Applications for more details on how to use this handle.
mfxHandleType_MFX_HANDLE_D3D11_DEVICE
< Pointer to the ID3D11Device interface. See Working with Microsoft* DirectX* Applications for more details on how to use this handle.
mfxHandleType_MFX_HANDLE_DIRECT3D_DEVICE_MANAGER9
< Pointer to the IDirect3DDeviceManager9 interface. See Working with Microsoft* DirectX* Applications for more details on how to use this handle.
mfxHandleType_MFX_HANDLE_HDDLUNITE_WORKLOADCONTEXT
< Pointer to HddlUnite::WorkloadContext interface.
mfxHandleType_MFX_HANDLE_PXP_CONTEXT
< Pointer to PXP context for protected content support.
mfxHandleType_MFX_HANDLE_RESERVED1
mfxHandleType_MFX_HANDLE_RESERVED3
mfxHandleType_MFX_HANDLE_VA_CONFIG_ID
< Pointer to VAConfigID interface. It represents external VA config for Common Encryption usage model.
mfxHandleType_MFX_HANDLE_VA_CONTEXT_ID
< Pointer to VAContextID interface. It represents external VA context for Common Encryption usage model.
mfxHandleType_MFX_HANDLE_VA_DISPLAY
< VADisplay interface. See Working with VA-API Applications for more details on how to use this handle.
mfxResourceType_MFX_RESOURCE_DMA_RESOURCE
< DMA resource.
mfxResourceType_MFX_RESOURCE_DX9_SURFACE
< Pointer to IDirect3DSurface9.
mfxResourceType_MFX_RESOURCE_DX11_TEXTURE
< Pointer to ID3D11Texture2D.
mfxResourceType_MFX_RESOURCE_DX12_RESOURCE
< Pointer to ID3D12Resource.
mfxResourceType_MFX_RESOURCE_HDDLUNITE_REMOTE_MEMORY
< HDDL Unite Remote memory handle.
mfxResourceType_MFX_RESOURCE_SYSTEM_SURFACE
< System memory.
mfxResourceType_MFX_RESOURCE_VA_BUFFER
< Pointer to VA buffer index.
mfxResourceType_MFX_RESOURCE_VA_BUFFER_PTR
< Pointer to VA buffer index.
mfxResourceType_MFX_RESOURCE_VA_SURFACE
< Pointer to VA surface index.
mfxResourceType_MFX_RESOURCE_VA_SURFACE_PTR
< Pointer to VA surface index.
mfxStatus_MFX_ERR_ABORTED
< Operation aborted.
mfxStatus_MFX_ERR_DEVICE_FAILED
< Device operation failure.
mfxStatus_MFX_ERR_DEVICE_LOST
< Lose the hardware acceleration device.
mfxStatus_MFX_ERR_GPU_HANG
< Device operation failure caused by GPU hang.
mfxStatus_MFX_ERR_INCOMPATIBLE_VIDEO_PARAM
< Incompatible video parameters.
mfxStatus_MFX_ERR_INVALID_HANDLE
< Invalid handle.
mfxStatus_MFX_ERR_INVALID_VIDEO_PARAM
< Invalid video parameters.
mfxStatus_MFX_ERR_LOCK_MEMORY
< Failed to lock the memory block.
mfxStatus_MFX_ERR_MEMORY_ALLOC
< Failed to allocate memory.
mfxStatus_MFX_ERR_MORE_BITSTREAM
< Expect more bitstream buffers at output.
mfxStatus_MFX_ERR_MORE_DATA
< Expect more data at input.
mfxStatus_MFX_ERR_MORE_DATA_SUBMIT_TASK
< Return MFX_ERR_MORE_DATA but submit internal asynchronous task.
mfxStatus_MFX_ERR_MORE_EXTBUFFER
< Expect additional extended configuration buffer.
mfxStatus_MFX_ERR_MORE_SURFACE
< Expect more surface at output.
mfxStatus_MFX_ERR_NONE
< No error.
mfxStatus_MFX_ERR_NONE_PARTIAL_OUTPUT
< Frame is not ready, but bitstream contains partial output.
mfxStatus_MFX_ERR_NOT_ENOUGH_BUFFER
< Insufficient buffer at input/output.
mfxStatus_MFX_ERR_NOT_FOUND
< The specified object is not found.
mfxStatus_MFX_ERR_NOT_IMPLEMENTED
< Feature or function not implemented.
mfxStatus_MFX_ERR_NOT_INITIALIZED
< Member function called before initialization.
mfxStatus_MFX_ERR_NULL_PTR
< Null pointer.
mfxStatus_MFX_ERR_REALLOC_SURFACE
< Bigger output surface required.
mfxStatus_MFX_ERR_RESOURCE_MAPPED
< Write access is already acquired and user requested another write access, or read access with MFX_MEMORY_NO_WAIT flag.
mfxStatus_MFX_ERR_UNDEFINED_BEHAVIOR
< Undefined behavior.
mfxStatus_MFX_ERR_UNKNOWN
< Unknown error.
mfxStatus_MFX_ERR_UNSUPPORTED
< Unsupported feature.
mfxStatus_MFX_TASK_BUSY
< Task is waiting for resources.
mfxStatus_MFX_TASK_DONE
< Task has been completed.
mfxStatus_MFX_TASK_WORKING
< There is some more work to do.
mfxStatus_MFX_WRN_ALLOC_TIMEOUT_EXPIRED
< Timeout expired for internal frame allocation.
mfxStatus_MFX_WRN_DEVICE_BUSY
< The hardware acceleration device is busy.
mfxStatus_MFX_WRN_FILTER_SKIPPED
< One of requested filters has been skipped.
mfxStatus_MFX_WRN_INCOMPATIBLE_VIDEO_PARAM
< Incompatible video parameters.
mfxStatus_MFX_WRN_IN_EXECUTION
< The previous asynchronous operation is in execution.
mfxStatus_MFX_WRN_OUT_OF_RANGE
< The value is out of valid range.
mfxStatus_MFX_WRN_PARTIAL_ACCELERATION
< Software acceleration is used.
mfxStatus_MFX_WRN_VALUE_NOT_CHANGED
< The value is saturated based on its valid range.
mfxStatus_MFX_WRN_VIDEO_PARAM_CHANGED
< The video parameters are changed during decoding.

Type Aliases§

mfxEncryptedData
mfxFP16
mfxHDL
mfxHandleType
The mfxHandleType enumerator itemizes system handle types that implementations might use.
mfxI32
mfxI64
mfxIMPL
This enumerator itemizes implementation types. The implementation type is a bit OR’ed value of the base type and any decorative flags. @note This enumerator is for legacy dispatcher compatibility only. The new dispatcher does not use it.
mfxMemId
mfxResourceType
The mfxResourceType enumerator specifies types of different native data frames and buffers.
mfxSession
Opaque oneVPL session handle (mfxSession, typedef struct _mfxSession *mfxSession;mfxsession.h). An opaque pointer has no fields to get wrong by hand-declaring it here; mfxsession.h itself is not part of this crate’s bindgen input (see vendor/README.md).
mfxStatus

Error message *********************************************************************************/ /*! @enum mfxStatus Itemizes status codes returned by API functions.
mfxSyncPoint
Synchronization point object handle (mfxSyncPoint, typedef struct _mfxSyncPoint *mfxSyncPoint;mfxcommon.h line 186). Forward-declared only upstream (never a defined struct body anywhere in oneVPL), and not reachable from any of this crate’s bindgen-allowlisted root types (only referenced by function signatures, which build.rs ignores — see vendor/README.md), so hand-declared here like mfxSession above.
mfxU8
mfxU16
mfxU32
mfxU64

Unions§

mfxBitstream__bindgen_ty_1
@internal :unnamed(union) @endinternal
mfxFrameData__bindgen_ty_1
@name Extension Buffers / /! @{
mfxFrameData__bindgen_ty_2
mfxFrameData__bindgen_ty_3
@name Color Planes Data pointers to corresponding color channels (planes). The frame buffer pointers must be 16-byte aligned. The application has to specify pointers to all color channels even for packed formats. For example, for YUY2 format the application must specify Y, U, and V pointers. For RGB32 format, the application must specify R, G, B, and A pointers. / /*! @{
mfxFrameData__bindgen_ty_4
mfxFrameData__bindgen_ty_5
mfxFrameId__bindgen_ty_1
mfxFrameInfo__bindgen_ty_1
mfxFrameSurface1__bindgen_ty_1
mfxInfoMFX__bindgen_ty_1
mfxInfoMFX__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1
Rate control method; see the RateControlMethod enumerator for details.
mfxInfoMFX__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2
mfxInfoMFX__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3
mfxInitParam__bindgen_ty_1
@internal :unnamed(union) @endinternal
mfxStructVersion
Introduce the field Version for any structure. Assumed that any structure changes are backward binary compatible. mfxStructVersion starts from {1,0} for any new API structures. If mfxStructVersion is added to the existent legacy structure (replacing reserved fields) it starts from {1, 1}.
mfxVersion
The mfxVersion union describes the version of the implementation.
mfxVideoParam__bindgen_ty_1