From 72daff4d7c8ed67fe207b018974fa473dcb54503 Mon Sep 17 00:00:00 2001 From: cailei Date: Thu, 30 May 2024 11:01:39 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20d06e6d9=20from=20https://gitee.com/cail?= =?UTF-8?q?ei24/interface=5Fsdk=5Fc/pulls/792=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cailei --- multimedia/av_codec/native_avmuxer.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/multimedia/av_codec/native_avmuxer.h b/multimedia/av_codec/native_avmuxer.h index 2e622508c..e88f992c8 100644 --- a/multimedia/av_codec/native_avmuxer.h +++ b/multimedia/av_codec/native_avmuxer.h @@ -44,6 +44,8 @@ OH_AVMuxer *OH_AVMuxer_Create(int32_t fd, OH_AVOutputFormat format); * @param rotation The supported angles are 0, 90, 180, and 270 degrees. * @return Returns AV_ERR_OK if the execution is successful, * otherwise returns a specific error code, refer to {@link OH_AVErrCode} + * {@link AV_ERR_INVALID_VAL}, the muxer or rotation invalid. + * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permit to call the interface, it was called in invalid state. * @since 10 */ OH_AVErrCode OH_AVMuxer_SetRotation(OH_AVMuxer *muxer, int32_t rotation); @@ -59,6 +61,11 @@ OH_AVErrCode OH_AVMuxer_SetRotation(OH_AVMuxer *muxer, int32_t rotation); * @param trackFormat OH_AVFormat handle pointer contain track format * @return Returns AV_ERR_OK if the execution is successful, * otherwise returns a specific error code, refer to {@link OH_AVErrCode} + * {@link AV_ERR_INVALID_VAL}, the muxer or trackIndex or trackFormat invalid. + * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permit to call the interface, it was called in invalid state. + * {@link AV_ERR_UNSUPPORT}, the mime type is not supported. + * {@link AV_ERR_NO_MEMORY}, failed to malloc memory. + * {@link AV_ERR_UNKNOWN}, unknown error. * @since 10 */ OH_AVErrCode OH_AVMuxer_AddTrack(OH_AVMuxer *muxer, int32_t *trackIndex, OH_AVFormat *trackFormat); @@ -70,6 +77,9 @@ OH_AVErrCode OH_AVMuxer_AddTrack(OH_AVMuxer *muxer, int32_t *trackIndex, OH_AVFo * @param muxer Pointer to an OH_AVMuxer instance * @return Returns AV_ERR_OK if the execution is successful, * otherwise returns a specific error code, refer to {@link OH_AVErrCode} + * {@link AV_ERR_INVALID_VAL}, the muxer invalid. + * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permit to call the interface, it was called in invalid state. + * {@link AV_ERR_UNKNOWN}, unknown error. * @since 10 */ OH_AVErrCode OH_AVMuxer_Start(OH_AVMuxer *muxer); @@ -86,6 +96,10 @@ OH_AVErrCode OH_AVMuxer_Start(OH_AVMuxer *muxer); * @param info The buffer information related to this sample {@link OH_AVCodecBufferAttr} * @return Returns AV_ERR_OK if the execution is successful, * otherwise returns a specific error code, refer to {@link OH_AVErrCode} + * {@link AV_ERR_INVALID_VAL}, the muxer or trackIndex or sample or info invalid. + * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permit to call the interface, it was called in invalid state. + * {@link AV_ERR_NO_MEMORY}, failed to request memory. + * {@link AV_ERR_UNKNOWN}, unknown error. * @deprecated since 11 * @useinstead OH_AVMuxer_WriteSampleBuffer * @since 10 @@ -104,6 +118,10 @@ OH_AVErrCode OH_AVMuxer_WriteSample(OH_AVMuxer *muxer, uint32_t trackIndex, * @param sample The encoded or demuxer sample, which including data and buffer information * @return Returns AV_ERR_OK if the execution is successful, * otherwise returns a specific error code, refer to {@link OH_AVErrCode} + * {@link AV_ERR_INVALID_VAL}, the muxer or trackIndex or sample invalid. + * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permit to call the interface, it was called in invalid state. + * {@link AV_ERR_NO_MEMORY}, failed to request memory. + * {@link AV_ERR_UNKNOWN}, unknown error. * @since 11 */ OH_AVErrCode OH_AVMuxer_WriteSampleBuffer(OH_AVMuxer *muxer, uint32_t trackIndex, @@ -116,6 +134,8 @@ OH_AVErrCode OH_AVMuxer_WriteSampleBuffer(OH_AVMuxer *muxer, uint32_t trackIndex * @param muxer Pointer to an OH_AVMuxer instance * @return Returns AV_ERR_OK if the execution is successful, * otherwise returns a specific error code, refer to {@link OH_AVErrCode} + * {@link AV_ERR_INVALID_VAL}, the muxer invalid. + * {@link AV_ERR_OPERATE_NOT_PERMIT}, not permit to call the interface, it was called in invalid state. * @since 10 */ OH_AVErrCode OH_AVMuxer_Stop(OH_AVMuxer *muxer); @@ -126,6 +146,7 @@ OH_AVErrCode OH_AVMuxer_Stop(OH_AVMuxer *muxer); * @param muxer Pointer to an OH_AVMuxer instance * @return Returns AV_ERR_OK if the execution is successful, * otherwise returns a specific error code, refer to {@link OH_AVErrCode} + * {@link AV_ERR_INVALID_VAL}, the muxer invalid. * @since 10 */ OH_AVErrCode OH_AVMuxer_Destroy(OH_AVMuxer *muxer); -- Gitee