【修改说明】修改avcodec_error接口名称

Signed-off-by: West <weihouyao@huawei.com>
This commit is contained in:
West 2023-04-04 18:00:00 +08:00
parent ff560cf865
commit ffc01a986c
2 changed files with 6 additions and 6 deletions

View File

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

View File

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