mirror of
https://gitee.com/openharmony/multimedia_av_codec
synced 2024-12-04 05:12:00 +00:00
【修改说明】 修改北向接口dequeueOutputBuffer增加attr
Signed-off-by: li-jianchao1993 <lijianchao9@huawei.com>
This commit is contained in:
parent
576e9ca1c4
commit
771fd3d90e
@ -461,12 +461,12 @@ OH_AVBufferElement* OH_AVCodec_GetOutputBuffer(OH_AVCodec *codec, size_t index)
|
||||
return bufferElement;
|
||||
}
|
||||
|
||||
OH_AVCodecErrCode OH_AVCodec_DequeueInputBuffer(OH_AVCodec *codec, uint32_t index, int64_t timeoutUs)
|
||||
OH_AVCodecErrCode OH_AVCodec_DequeueInputBuffer(OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs)
|
||||
{
|
||||
return AVCODEC_ERR_UNSUPPORT;
|
||||
}
|
||||
|
||||
OH_AVCodecErrCode OH_AVCodec_DequeueOutputBuffer(OH_AVCodec *codec, uint32_t index, int64_t timeoutUs)
|
||||
OH_AVCodecErrCode OH_AVCodec_DequeueOutputBuffer(OH_AVCodec *codec, uint32_t *index, OH_AVCodecBufferAttr *attr, int64_t timeoutUs)
|
||||
{
|
||||
return AVCODEC_ERR_UNSUPPORT;
|
||||
}
|
||||
|
@ -216,13 +216,14 @@ OH_AVCodecErrCode OH_AVCodec_QueueInputBuffer(OH_AVCodec *codec, uint32_t index,
|
||||
* @syscap SystemCapability.Multimedia.AVCodec.Codec
|
||||
* @param codec Pointer to an OH_AVCodec instance
|
||||
* @param index Pointer to an uint32_t instance
|
||||
* @param attr Pointer to an OH_AVCodecBufferAttr instance
|
||||
* @param timeoutUs timeoutUs
|
||||
* @return Returns AVCODEC_ERR_OK if the execution is successful,
|
||||
* otherwise returns negtive value for invalid buffer index
|
||||
* @since 10
|
||||
* @version 4.0
|
||||
*/
|
||||
OH_AVCodecErrCode OH_AVCodec_DequeueOutputBuffer(OH_AVCodec *codec, uint32_t *index, int64_t timeoutUs);
|
||||
OH_AVCodecErrCode OH_AVCodec_DequeueOutputBuffer(OH_AVCodec *codec, uint32_t *index, OH_AVCodecBufferAttr *attr, int64_t timeoutUs);
|
||||
|
||||
/**
|
||||
* @brief Get an output buffer.
|
||||
|
Loading…
Reference in New Issue
Block a user