mirror of
https://gitee.com/openharmony/multimedia_av_codec
synced 2025-03-02 13:26:43 +00:00
【修改说明】修改avcodec_error接口名称
Signed-off-by: West <weihouyao@huawei.com>
This commit is contained in:
parent
ff560cf865
commit
ffc01a986c
@ -207,7 +207,7 @@ std::string AVCSErrorToString(AVCodecServiceErrCode code)
|
||||
return "invalid error code:" + std::to_string(static_cast<int32_t>(code));
|
||||
}
|
||||
|
||||
std::string OH_AVErrCodeToString(OH_AVErrCode code)
|
||||
std::string OHAVErrCodeToString(OH_AVErrCode code)
|
||||
{
|
||||
if (OHAVCODECERRCODE_INFOS.count(code) != 0) {
|
||||
return OHAVCODECERRCODE_INFOS.at(code);
|
||||
@ -220,7 +220,7 @@ std::string OH_AVErrCodeToString(OH_AVErrCode code)
|
||||
return "invalid error code:" + std::to_string(static_cast<int32_t>(code));
|
||||
}
|
||||
|
||||
std::string AVCSErrorToOH_AVErrCodeString(AVCodecServiceErrCode code)
|
||||
std::string AVCSErrorToOHAVErrCodeString(AVCodecServiceErrCode code)
|
||||
{
|
||||
if (AVCS_ERRCODE_INFOS.count(code) != 0 && AVCSERRCODE_TO_OHAVCODECERRCODE.count(code) != 0) {
|
||||
OH_AVErrCode extCode = AVCSERRCODE_TO_OHAVCODECERRCODE.at(code);
|
||||
@ -232,7 +232,7 @@ std::string AVCSErrorToOH_AVErrCodeString(AVCodecServiceErrCode code)
|
||||
return "unkown error";
|
||||
}
|
||||
|
||||
OH_AVErrCode AVCSErrorToOH_AVErrCode(AVCodecServiceErrCode code)
|
||||
OH_AVErrCode AVCSErrorToOHAVErrCode(AVCodecServiceErrCode code)
|
||||
{
|
||||
if (AVCS_ERRCODE_INFOS.count(code) != 0 && AVCSERRCODE_TO_OHAVCODECERRCODE.count(code) != 0) {
|
||||
return AVCSERRCODE_TO_OHAVCODECERRCODE.at(code);
|
||||
|
@ -77,9 +77,9 @@ typedef enum AVCodecServiceErrCode : ErrCode {
|
||||
} AVCodecServiceErrCode;
|
||||
|
||||
__attribute__((visibility("default"))) std::string AVCSErrorToString(AVCodecServiceErrCode code);
|
||||
__attribute__((visibility("default"))) std::string AVCSExtErrorToString(AVCodecServiceExtErrCode code);
|
||||
__attribute__((visibility("default"))) std::string AVCSErrorToExtErrorString(AVCodecServiceErrCode code);
|
||||
__attribute__((visibility("default"))) AVCodecServiceExtErrCode AVCSErrorToExtError(AVCodecServiceErrCode code);
|
||||
__attribute__((visibility("default"))) std::string OHAVErrCodeToString(OH_AVErrCode code);
|
||||
__attribute__((visibility("default"))) std::string AVCSErrorToOHAVErrCodeString(AVCodecServiceErrCode code);
|
||||
__attribute__((visibility("default"))) OH_AVErrCode AVCSErrorToOHAVErrCode(AVCodecServiceErrCode code);
|
||||
|
||||
} // namespace AVCodec
|
||||
} // namespace OHOS
|
||||
|
Loading…
x
Reference in New Issue
Block a user