native_avbuffer.h
Overview
The native_avbuffer.h file declares the functions of the media struct AVBuffer.
Library: libnative_media_core.so
System capability: SystemCapability.Multimedia.Media.Core
Since: 11
Related module: Core
Summary
Types
Name | Description |
---|---|
typedef struct OH_AVBuffer OH_AVBuffer | Defines a struct that describes a native object for the media memory interface. |
typedef struct OH_NativeBuffer OH_NativeBuffer | Defines a struct that describes a native object for the graphics memory interface. |
Functions
Name | Description |
---|---|
OH_AVBuffer * OH_AVBuffer_Create (int32_t capacity) | Creates an OH_AVBuffer instance. The caller must call OH_AVBuffer_Destroy to manually release the OH_AVBuffer instance returned. |
OH_AVErrCode OH_AVBuffer_Destroy (OH_AVBuffer *buffer) | Releases an OH_AVBuffer instance. |
OH_AVErrCode OH_AVBuffer_GetBufferAttr (OH_AVBuffer *buffer, OH_AVCodecBufferAttr *attr) | Obtains the high-frequency attribute of a data buffer. |
OH_AVErrCode OH_AVBuffer_SetBufferAttr (OH_AVBuffer *buffer, const OH_AVCodecBufferAttr *attr) | Sets the high-frequency attribute for a data buffer. |
OH_AVFormat * OH_AVBuffer_GetParameter (OH_AVBuffer *buffer) | Obtains the frame parameter of a data buffer. |
OH_AVErrCode OH_AVBuffer_SetParameter (OH_AVBuffer *buffer, const OH_AVFormat *format) | Sets the frame parameter for a data buffer. |
uint8_t * OH_AVBuffer_GetAddr (OH_AVBuffer *buffer) | Obtains the virtual address of a data buffer. |
int32_t OH_AVBuffer_GetCapacity (OH_AVBuffer *buffer) | Obtains the capacity of a data buffer. |
OH_NativeBuffer * OH_AVBuffer_GetNativeBuffer (OH_AVBuffer *buffer) | Obtains the pointer to an OH_NativeBuffer instance. |