1 /******************************************************************************
2 *
3 * Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 ******************************************************************************/
18 /**
19 *******************************************************************************
20 * @file
21 *  ihevcd_error.h
22 *
23 * @brief
24 *  Definitions related to error handling
25 *
26 * @author
27 *  Harish
28 *
29 * @par List of Functions:
30 *
31 * @remarks
32 *  None
33 *
34 *******************************************************************************
35 */
36 
37 #ifndef _IHEVCD_ERROR_H_
38 #define _IHEVCD_ERROR_H_
39 
40 /**
41  * Enumerations for error codes used in the codec.
42  * Not all these are expected to be returned to the application.
43  * Only select few will be exported
44  */
45 typedef enum
46 {
47     /**
48      * VPS id more than MAX_VPS_CNT
49      */
50     IHEVCD_UNSUPPORTED_VPS_ID  = IVD_DUMMY_ELEMENT_FOR_CODEC_EXTENSIONS + 0x300,
51     /**
52      * SPS id more than MAX_SPS_CNT
53      */
54 
55     IHEVCD_UNSUPPORTED_SPS_ID,
56     /**
57      * PPS id more than MAX_PPS_CNT
58      */
59 
60     IHEVCD_UNSUPPORTED_PPS_ID,
61 
62     /**
63      * Invelid Parameter while decoding
64      */
65     IHEVCD_INVALID_PARAMETER,
66 
67     /**
68      * Invalid header
69      */
70     IHEVCD_INVALID_HEADER,
71 
72     /**
73      * In sufficient memory allocated for MV Bank
74      */
75     IHEVCD_INSUFFICIENT_MEM_MVBANK,
76 
77     /**
78      * In sufficient memory allocated for MV Bank
79      */
80     IHEVCD_INSUFFICIENT_MEM_PICBUF,
81 
82     /**
83      * Buffer manager error
84      */
85     IHEVCD_BUF_MGR_ERROR,
86 
87     /**
88      * No free MV Bank buffer available to store current pic
89      */
90     IHEVCD_NO_FREE_MVBANK,
91 
92     /**
93      * No free picture buffer available to store current pic
94      */
95     IHEVCD_NO_FREE_PICBUF,
96     /**
97      * Reached slice header in header mode
98      */
99     IHEVCD_SLICE_IN_HEADER_MODE,
100 
101     /**
102      * Ignore current slice and continue
103      */
104     IHEVCD_IGNORE_SLICE,
105 
106     /**
107      * Reference Picture not found
108      */
109     IHEVCD_REF_PIC_NOT_FOUND,
110 
111     /**
112      * Bit depth is greater than 8
113      */
114     IHEVCD_UNSUPPORTED_BIT_DEPTH,
115 
116     /**
117      * Limit on the number of frames decoded
118      */
119     IHEVCD_NUM_FRAMES_LIMIT_REACHED,
120 
121     /**
122      * VUI parameters not found
123      */
124     IHEVCD_VUI_PARAMS_NOT_FOUND,
125 
126 }IHEVCD_ERROR_T;
127 #endif /* _IHEVCD_ERROR_H_ */
128