mirror of
https://gitee.com/openharmony/multimedia_av_codec
synced 2024-12-11 17:16:02 +00:00
【修改说明】 修改北向错误码,修改服务端错误码命名
Signed-off-by: li-jianchao1993 <lijianchao9@huawei.com>
This commit is contained in:
parent
1ebdb0813e
commit
90703d714b
@ -91,21 +91,6 @@ typedef enum AVCodecServiceExtErrCode : ErrCode {
|
||||
AVCS_ERR_EXT_EXTEND_START = 100, // extend err start.
|
||||
} AVCodecServiceExtErrCode;
|
||||
|
||||
// avcodec northbound interface error code
|
||||
typedef enum OH_AVCodecErrCode {
|
||||
AVC_ERR_OK = 0,
|
||||
AVC_ERR_NO_MEMORY = 1, // no memory.
|
||||
AVC_ERR_OPERATE_NOT_PERMIT = 2, // opertation not be permitted.
|
||||
AVC_ERR_INVALID_VAL = 3, // invalid argument.
|
||||
AVC_ERR_IO = 4, // IO error.
|
||||
AVC_ERR_TIMEOUT = 5, // network timeout.
|
||||
AVC_ERR_UNKNOWN = 6, // unknown error.
|
||||
AVC_ERR_SERVICE_DIED = 7, // avcodec service died.
|
||||
AVC_ERR_INVALID_STATE = 8, // the state is not support this operation.
|
||||
AVC_ERR_UNSUPPORT = 9, // unsupport interface.
|
||||
AVC_ERR_EXTEND_START = 100, // extend err start.
|
||||
} OH_AVCodecErrCode;
|
||||
|
||||
__attribute__((visibility("default"))) std::string AVCSErrorToString(AVCodecServiceErrCode code);
|
||||
__attribute__((visibility("default"))) std::string AVCSExtErrorToString(AVCodecServiceExtErrCode code);
|
||||
__attribute__((visibility("default"))) std::string AVCSErrorToExtErrorString(AVCodecServiceErrCode code);
|
||||
|
@ -25,51 +25,51 @@ extern "C" {
|
||||
* @since 10
|
||||
* @version 4.0
|
||||
*/
|
||||
typedef enum OH_AVErrCode {
|
||||
typedef enum OH_AVCodecErrCode {
|
||||
/**
|
||||
* the operation completed successfully.
|
||||
*/
|
||||
AV_ERR_OK = 0,
|
||||
AVCODEC_ERR_OK = 0,
|
||||
/**
|
||||
* no memory.
|
||||
*/
|
||||
AV_ERR_NO_MEMORY = -1,
|
||||
AVCODEC_ERR_NO_MEMORY = 1,
|
||||
/**
|
||||
* opertation not be permitted.
|
||||
*/
|
||||
AV_ERR_OPERATE_NOT_PERMIT = -2,
|
||||
AVCODEC_ERR_OPERATE_NOT_PERMIT = 2,
|
||||
/**
|
||||
* invalid argument.
|
||||
*/
|
||||
AV_ERR_INVALID_VAL = -3,
|
||||
AVCODEC_ERR_INVALID_VAL = 3,
|
||||
/**
|
||||
* IO error.
|
||||
*/
|
||||
AV_ERR_IO = -4,
|
||||
AVCODEC_ERR_IO = 4,
|
||||
/**
|
||||
* network timeout.
|
||||
* avcodec service timeout.
|
||||
*/
|
||||
AV_ERR_TIMEOUT = -5,
|
||||
AVCODEC_ERR_TIMEOUT = 5,
|
||||
/**
|
||||
* unknown error.
|
||||
*/
|
||||
AV_ERR_UNKNOWN = -6,
|
||||
AVCODEC_ERR_UNKNOWN = 6,
|
||||
/**
|
||||
* media service died.
|
||||
* avcodec service died.
|
||||
*/
|
||||
AV_ERR_SERVICE_DIED = -7,
|
||||
AVCODEC_ERR_SERVICE_DIED = 7,
|
||||
/**
|
||||
* the state is not support this operation.
|
||||
*/
|
||||
AV_ERR_INVALID_STATE = -8,
|
||||
AVCODEC_ERR_INVALID_STATE = 8,
|
||||
/**
|
||||
* unsupport interface.
|
||||
*/
|
||||
AV_ERR_UNSUPPORT = -9,
|
||||
AVCODEC_ERR_UNSUPPORT = 9,
|
||||
/**
|
||||
* extend err start.
|
||||
*/
|
||||
AV_ERR_EXTEND_START = -100,
|
||||
AVCODEC_ERR_EXTEND_START = 100,
|
||||
} OH_AVErrCode;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user