bring the multi-commit integration from master to pi-dev libxaac multi-arch cleanup Change-Id: Ibcefa14f439e75f48a54955c9abf1a06c418e41e Change-Id: Ia7a9b1e4de0add847c136f6f545b81dc8087521d Change-Id: I12c3f8414dc9971017de223e88f292f8982a5c9b Fix dependency error in Android.bp Change-Id: Ic54f688736b3f2a70172676e4cee22aea4cbd705 Localized Android.bp Change-Id: I68c4fc24fca279104c8ce2129fd4a3ed8d116b9b Import xHE-AAC decoder from Ittiam Change-Id: I3c8d124033f967b29d6e384cce5c843ee17a7bb1 Bug: 77287124 Test: build, cts DecoderTest
58 lines
2.1 KiB
C
58 lines
2.1 KiB
C
/******************************************************************************
|
|
* *
|
|
* Copyright (C) 2018 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at:
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
*****************************************************************************
|
|
* Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
|
|
*/
|
|
#ifndef IXHEAACD_ERROR_HANDLER_H
|
|
#define IXHEAACD_ERROR_HANDLER_H
|
|
|
|
#define IA_ERROR_NON_FATAL_IDX 0x0
|
|
#define IA_ERROR_FATAL_IDX 0x1
|
|
|
|
#define IA_ERROR_CLASS_0 0x0
|
|
#define IA_ERROR_CLASS_1 0x1
|
|
#define IA_ERROR_CLASS_2 0x2
|
|
#define IA_ERROR_CLASS_3 0x3
|
|
#define IA_ERROR_CLASS_4 0x4
|
|
#define IA_ERROR_CLASS_5 0x5
|
|
#define IA_ERROR_CLASS_6 0x6
|
|
#define IA_ERROR_CLASS_7 0x7
|
|
#define IA_ERROR_CLASS_8 0x8
|
|
#define IA_ERROR_CLASS_9 0x9
|
|
#define IA_ERROR_CLASS_A 0xA
|
|
#define IA_ERROR_CLASS_B 0xB
|
|
#define IA_ERROR_CLASS_C 0xC
|
|
#define IA_ERROR_CLASS_D 0xD
|
|
#define IA_ERROR_CLASS_E 0xE
|
|
#define IA_ERROR_CLASS_F 0xF
|
|
|
|
typedef struct {
|
|
pWORD8 pb_module_name;
|
|
pWORD8 ppb_class_names[16];
|
|
WORD8 **ppppb_error_msg_pointers[2][16];
|
|
} ia_error_info_struct;
|
|
|
|
IA_ERRORCODE ixheaacd_error_handler(ia_error_info_struct *p_mod_err_info,
|
|
WORD8 *pb_context, IA_ERRORCODE code);
|
|
|
|
#define _IA_HANDLE_ERROR(p_mod_err_info, context, e) \
|
|
if ((e) != IA_NO_ERROR) { \
|
|
ixheaacd_error_handler((p_mod_err_info), (context), (e)); \
|
|
if ((e)&IA_FATAL_ERROR) return (e); \
|
|
}
|
|
|
|
#endif /* IXHEAACD_ERROR_HANDLER_H */
|