Lines Matching defs:OH_AVBuffer

41  * @brief Forward declaration of OH_AVBuffer.
45 typedef struct OH_AVBuffer OH_AVBuffer;
54 * @brief Create an OH_AVBuffer instance, It should be noted that the life cycle of the OH_AVBuffer instance pointed
58 * @return Returns a pointer to an OH_AVBuffer instance if the execution is successful, otherwise returns nullptr.
59 * Possible failure causes: 1. capacity <= 0. 2. create allocator failed. 3. create OH_AVBuffer failed.
60 * 4. created buffer memory is nullptr. 5. created buffer memory's addr is nullptr. 6. failed to new OH_AVBuffer.
63 OH_AVBuffer *OH_AVBuffer_Create(int32_t capacity);
68 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
75 OH_AVErrCode OH_AVBuffer_Destroy(OH_AVBuffer *buffer);
80 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
89 OH_AVErrCode OH_AVBuffer_GetBufferAttr(OH_AVBuffer *buffer, OH_AVCodecBufferAttr *attr);
94 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
103 OH_AVErrCode OH_AVBuffer_SetBufferAttr(OH_AVBuffer *buffer, const OH_AVCodecBufferAttr *attr);
109 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
115 OH_AVFormat *OH_AVBuffer_GetParameter(OH_AVBuffer *buffer);
120 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
128 OH_AVErrCode OH_AVBuffer_SetParameter(OH_AVBuffer *buffer, const OH_AVFormat *format);
133 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
139 uint8_t *OH_AVBuffer_GetAddr(OH_AVBuffer *buffer);
144 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
150 int32_t OH_AVBuffer_GetCapacity(OH_AVBuffer *buffer);
153 * @brief Get the OH_NativeBuffer instance pointer,It should be noted that the life cycle of the OH_AVBuffer
156 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
162 OH_NativeBuffer *OH_AVBuffer_GetNativeBuffer(OH_AVBuffer *buffer);