【修改说明】 修改北向接口dequeueOutputBuffer增加attr

Signed-off-by: li-jianchao1993 <lijianchao9@huawei.com>
This commit is contained in:
li-jianchao1993 2023-04-06 11:14:47 +08:00
parent 576e9ca1c4
commit 771fd3d90e
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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.