跳到主要内容

av_hwdevice_ctx_alloc

搜索

函数 av_hwdevice_ctx_alloc 

源代码
pub unsafe extern "C" fn av_hwdevice_ctx_alloc(
    type_: AVHWDeviceType,
) -> *mut AVBufferRef
展开描述

Allocate an AVHWDeviceContext for a given hardware type.

@param type the type of the hardware device to allocate. @return a reference to the newly created AVHWDeviceContext on success or NULL on failure.