Lines Matching refs:buffer

35  * @param capacity the buffer's capacity, bytes
42 * @brief Clear the internal resources of the buffer and destroy the buffer instance.
44 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
49 OH_AVErrCode OH_AVBuffer_Destroy(OH_AVBuffer *buffer);
52 * @brief Get the buffer's attribute.
54 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
61 OH_AVErrCode OH_AVBuffer_GetBufferAttr(OH_AVBuffer *buffer, OH_AVCodecBufferAttr *attr);
64 * @brief Set the buffer's attribute.
66 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
73 OH_AVErrCode OH_AVBuffer_SetBufferAttr(OH_AVBuffer *buffer, const OH_AVCodecBufferAttr *attr);
76 * @brief Get the buffer's parameter. It should be noted that the life cycle of the OH_AVFormat instance pointed to
79 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
84 OH_AVFormat *OH_AVBuffer_GetParameter(OH_AVBuffer *buffer);
87 * @brief Set the buffer's parameter.
89 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
95 OH_AVErrCode OH_AVBuffer_SetParameter(OH_AVBuffer *buffer, const OH_AVFormat *format);
98 * @brief Get the buffer's virtual address.
100 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
101 * @return the buffer's virtual address if the buffer is valid, otherwise nullptr
104 uint8_t *OH_AVBuffer_GetAddr(OH_AVBuffer *buffer);
107 * @brief Get the buffer's capacity
109 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
110 * @return the buffer's capacity if the buffer is valid, otherwise -1
113 int32_t OH_AVBuffer_GetCapacity(OH_AVBuffer *buffer);
119 * @param buffer Encapsulate OH_AVBuffer structure instance pointer
124 OH_NativeBuffer *OH_AVBuffer_GetNativeBuffer(OH_AVBuffer *buffer);