From 3bfb49cce0f8984c75a7ae3df815f3b1d3f96ae4 Mon Sep 17 00:00:00 2001 From: chongzhi Date: Tue, 12 Nov 2024 17:46:14 +0800 Subject: [PATCH] =?UTF-8?q?ndk=E9=94=99=E8=AF=AF=E7=A0=81=E6=96=B0?= =?UTF-8?q?=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chongzhi --- multimedia/media_foundation/native_averrors.h | 167 ++++++++++++++++++ 1 file changed, 167 insertions(+) diff --git a/multimedia/media_foundation/native_averrors.h b/multimedia/media_foundation/native_averrors.h index edecfa2a8..a7bee5077 100644 --- a/multimedia/media_foundation/native_averrors.h +++ b/multimedia/media_foundation/native_averrors.h @@ -107,6 +107,173 @@ typedef enum OH_AVErrCode { * @since 12 */ AV_ERR_VIDEO_UNSUPPORTED_COLOR_SPACE_CONVERSION = 301, + /** + * @error the address of server is incorrect, and IO can not find host. + * @since 14 + */ + AV_ERR_IO_CANNOT_FIND_HOST = 5411001, + /** + * @error network connection timeout. + * @since 14 + */ + AV_ERR_IO_CONNECTION_TIMEOUT = 5411002, + /** + * @error failed link due to abnormal network. + * @since 14 + */ + AV_ERR_IO_NETWORK_ABNORMAL = 5411003, + /** + * @error failed link due to unavailable network. + * @since 14 + */ + AV_ERR_IO_NETWORK_UNAVAILABLE = 5411004, + /** + * @error network permission dennied. + * @since 14 + */ + AV_ERR_IO_NO_PERMISSION = 5411005, + /** + * @error the client request parameters are incorrect or exceed the processing capacity. + * @since 14 + */ + AV_ERR_IO_NETWORK_ACCESS_DENIED = 5411006, + /** + * @error cannot find available network resources. + * @since 14 + */ + AV_ERR_IO_RESOURCE_NOT_FOUND = 5411007, + /** + * @error the server fails to verify the client certificate because the certificate is not carried, + * the certificate is invalid, or the certificate is expired. + * @since 14 + */ + AV_ERR_IO_SSL_CLIENT_CERT_NEEDED = 5411008, + /** + * @error the client fails to verify the server certificate because the certificate is not carried, + * the certificate is invalid, or the certificate is expired. + * @since 14 + */ + AV_ERR_IO_SSL_CONNECT_FAIL = 5411009, + /** + * @error IO SSL server cert untrusted. + * @since 14 + */ + AV_ERR_IO_SSL_SERVER_CERT_UNTRUSTED = 5411010, + /** + * @error unsupported request due to network protocols. + * @since 14 + */ + AV_ERR_IO_UNSUPPORTED_REQUEST = 5411011, + /** + * @error file data is incorrect, and no specific data can be provided. + * @since 14 + */ + AV_ERR_IO_DATA_ABNORMAL = 5411012, + /** + * @error file is occupied by other processes and cannot be accessed. + * @since 14 + */ + AV_ERR_IO_FILE_ACCESS_DENIED = 5411013, + /** + * @error the file handle is incorrect. + * @since 14 + */ + AV_ERR_IO_FILE_BAD_HANDLE = 5411014, + /** + * @error IO file not found. + * @since 14 + */ + AV_ERR_IO_FILE_NOT_FOUND = 5411015, + /** + * @error IO file permission denied because API does not have permissions. + * @since 14 + */ + AV_ERR_IO_FILE_PERMISSION_DENIED = 5411016, + /** + * @error fail to decode the audio data. + * @since 14 + */ + AV_ERR_IO_AUDIO_DEC_FAILED = 5411017, + /** + * @error fail to init the audio decoder. + * @since 14 + */ + AV_ERR_IO_AUDIO_DEC_INIT_FAILED = 5411018, + /** + * @error audio decoder is unavailable for handler incurrupt, or audio decoder subsystem abnormal. + * @since 14 + */ + AV_ERR_IO_AUDIO_DEC_UNAVAILABLE = 5411019, + /** + * @error audio device error. + * @since 14 + */ + AV_ERR_IO_AUDIO_DEVICE_ERROR = 5411020, + /** + * @error audio device state does not support the current operation. + * @since 14 + */ + AV_ERR_IO_AUDIO_DEVICE_INVALID_STATE = 5411021, + /** + * @error audio device timeout when calling audio render interface. + * @since 14 + */ + AV_ERR_IO_AUDIO_DEVICE_TIMEOUT = 5411022, + /** + * @error audio device unavailable, unable to create an audio device. + * @since 14 + */ + AV_ERR_IO_AUDIO_DEVICE_UNAVAILABLE = 5411023, + /** + * @error fail to encode the audio data. + * @since 14 + */ + AV_ERR_IO_AUDIO_ENC_FAILED = 5411024, + /** + * @error fail to init the audio encoder. + * @since 14 + */ + AV_ERR_IO_AUDIO_ENC_INIT_FAILED = 5411025, + /** + * @error audio encoder is unavailable for handler incurrupt, or audio encoder subsystem abnormal. + * @since 14 + */ + AV_ERR_IO_AUDIO_ENC_UNAVAILABLE = 5411026, + /** + * @error fail to decode the video data. + * @since 14 + */ + AV_ERR_IO_VIDEO_DEC_FAILED = 5411027, + /** + * @error fail to init the video decoder. + * @since 14 + */ + AV_ERR_IO_VIDEO_DEC_INIT_FAILED = 5411028, + /** + * @error video decoder is unavailable for handler incurrupt, or video decoder subsystem abnormal. + * @since 14 + */ + AV_ERR_IO_VIDEO_DEC_UNAVAILABLE = 5411029, + /** + * @error video device error. + * @since 14 + */ + AV_ERR_IO_VIDEO_DEVICE_ERROR = 5411030, + /** + * @error fail to encode the video data. + * @since 14 + */ + AV_ERR_IO_VIDEO_ENC_FAILED = 5411031, + /** + * @error fail to init the video encoder. + * @since 14 + */ + AV_ERR_IO_VIDEO_ENC_INIT_FAILED = 5411032, + /** + * @error video encoder is unavailable for handler incurrupt, or video encoder subsystem abnormal. + * @since 14 + */ + AV_ERR_IO_VIDEO_ENC_UNAVAILABLE = 5411033, } OH_AVErrCode; #ifdef __cplusplus -- Gitee