• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2 * Copyright 2022-2023 Huawei Technologies Co., Ltd
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 
8 * http://www.apache.org/licenses/LICENSE-2.0
9 
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 #ifndef MINDSPORE_CCSRC_MINDDATA_DATASET_KERNELS_IMAGE_DVPP_UTILS_ACL_LITE_ERROR_H_
17 #define MINDSPORE_CCSRC_MINDDATA_DATASET_KERNELS_IMAGE_DVPP_UTILS_ACL_LITE_ERROR_H_
18 
19 using AclLiteError = int;
20 
21 constexpr int ACLLITE_OK = 0;
22 constexpr int ACLLITE_ERROR = 1;
23 constexpr int ACLLITE_ERROR_INVALID_ARGS = 2;
24 constexpr int ACLLITE_ERROR_SET_ACL_CONTEXT = 3;
25 constexpr int ACLLITE_ERROR_GET_ACL_CONTEXT = 4;
26 constexpr int ACLLITE_ERROR_CREATE_ACL_CONTEXT = 5;
27 constexpr int ACLLITE_ERROR_CREATE_THREAD = 6;
28 constexpr int ACLLITE_ERROR_CREATE_STREAM = 7;
29 constexpr int ACLLITE_ERROR_GET_RUM_MODE = 8;
30 constexpr int ACLLITE_ERROR_APP_INIT = 9;
31 constexpr int ACLLITE_ERROR_DEST_INVALID = 10;
32 constexpr int ACLLITE_ERROR_INITED_ALREADY = 11;
33 constexpr int ACLLITE_ERROR_ENQUEUE = 12;
34 constexpr int ACLLITE_ERROR_WRITE_FILE = 13;
35 constexpr int ACLLITE_ERROR_THREAD_ABNORMAL = 14;
36 constexpr int ACLLITE_ERROR_START_THREAD = 15;
37 constexpr int ACLLITE_ERROR_ADD_THREAD = 16;
38 
39 // malloc or new memory failed
40 constexpr int ACLLITE_ERROR_MALLOC = 101;
41 // aclrtMalloc failed
42 constexpr int ACLLITE_ERROR_MALLOC_DEVICE = 102;
43 
44 constexpr int ACLLITE_ERROR_MALLOC_DVPP = 103;
45 // access file failed
46 constexpr int ACLLITE_ERROR_ACCESS_FILE = 201;
47 // the file is invalid
48 constexpr int ACLLITE_ERROR_INVALID_FILE = 202;
49 // open file failed
50 constexpr int ACLLITE_ERROR_OPEN_FILE = 203;
51 
52 // load model repeated
53 constexpr int ACLLITE_ERROR_LOAD_MODEL_REPEATED = 301;
54 
55 constexpr int ACLLITE_ERROR_NO_MODEL_DESC = 302;
56 // load mode by acl failed
57 constexpr int ACLLITE_ERROR_LOAD_MODEL = 303;
58 
59 constexpr int ACLLITE_ERROR_CREATE_MODEL_DESC = 304;
60 
61 constexpr int ACLLITE_ERROR_GET_MODEL_DESC = 305;
62 
63 constexpr int ACLLITE_ERROR_CREATE_DATASET = 306;
64 
65 constexpr int ACLLITE_ERROR_CREATE_DATA_BUFFER = 307;
66 
67 constexpr int ACLLITE_ERROR_ADD_DATASET_BUFFER = 308;
68 
69 constexpr int ACLLITE_ERROR_EXECUTE_MODEL = 309;
70 
71 constexpr int ACLLITE_ERROR_GET_DATASET_BUFFER = 310;
72 
73 constexpr int ACLLITE_ERROR_GET_DATA_BUFFER_ADDR = 311;
74 
75 constexpr int ACLLITE_ERROR_GET_DATA_BUFFER_SIZE = 312;
76 
77 constexpr int ACLLITE_ERROR_COPY_DATA = 313;
78 
79 constexpr int ACLLITE_ERROR_SET_CAMERA = 400;
80 
81 constexpr int ACLLITE_ERROR_CAMERA_NO_ACCESSABLE = 401;
82 
83 constexpr int ACLLITE_ERROR_OPEN_CAMERA = 402;
84 
85 constexpr int ACLLITE_ERROR_READ_CAMERA_FRAME = 403;
86 
87 constexpr int ACLLITE_ERROR_UNSURPPORT_PROPERTY = 404;
88 
89 constexpr int ACLLITE_ERROR_INVALID_PROPERTY_VALUE = 405;
90 
91 constexpr int ACLLITE_ERROR_UNSURPPORT_VIDEO_CAPTURE = 406;
92 
93 constexpr int ACLLITE_ERROR_CREATE_DVPP_CHANNEL_DESC = 501;
94 
95 constexpr int ACLLITE_ERRROR_CREATE_DVPP_CHANNEL = 502;
96 
97 constexpr int ACLLITE_ERROR_CREATE_PIC_DESC = 503;
98 
99 constexpr int ACLLITE_ERROR_CREATE_RESIZE_CONFIG = 504;
100 
101 constexpr int ACLLITE_ERROR_RESIZE_ASYNC = 505;
102 
103 constexpr int ACLLITE_ERROR_SYNC_STREAM = 506;
104 
105 constexpr int ACLLITE_ERROR_JPEGE_ASYNC = 507;
106 
107 constexpr int ACLLITE_ERROR_JPEGD_ASYNC = 508;
108 
109 constexpr int ACLLITE_ERROR_FFMPEG_DECODER_INIT = 601;
110 
111 constexpr int ACLLITE_ERROR_OPEN_VIDEO_UNREADY = 602;
112 
113 constexpr int ACLLITE_ERROR_TOO_MANY_VIDEO_DECODERS = 603;
114 
115 constexpr int ACLLITE_ERROR_SET_VDEC_CHANNEL_ID = 604;
116 
117 constexpr int ACLLITE_ERROR_SET_STREAM_DESC_DATA = 605;
118 
119 constexpr int ACLLITE_ERROR_SET_VDEC_CHANNEL_THREAD_ID = 606;
120 
121 constexpr int ACLLITE_ERROR_SET_VDEC_CALLBACK = 607;
122 
123 constexpr int ACLLITE_ERROR_SET_VDEC_ENTYPE = 608;
124 
125 constexpr int ACLLITE_ERROR_SET_VDEC_PIC_FORMAT = 609;
126 
127 constexpr int ACLLITE_ERROR_CREATE_VDEC_CHANNEL = 610;
128 
129 constexpr int ACLLITE_ERROR_CREATE_STREAM_DESC = 611;
130 
131 constexpr int ACLLITE_ERROR_SET_STREAM_DESC_EOS = 612;
132 
133 constexpr int ACLLITE_ERROR_SET_STREAM_DESC_SIZE = 613;
134 
135 constexpr int ACLLITE_ERROR_SET_PIC_DESC_DATA = 614;
136 
137 constexpr int ACLLITE_ERROR_SET_PIC_DESC_SIZE = 615;
138 
139 constexpr int ACLLITE_ERROR_SET_PIC_DESC_FORMAT = 616;
140 
141 constexpr int ACLLITE_ERROR_VDEC_IS_EXITTING = 617;
142 
143 constexpr int ACLLITE_ERROR_VDEC_SET_WIDTH = 618;
144 
145 constexpr int ACLLITE_ERROR_VDEC_WIDTH_INVALID = 619;
146 
147 constexpr int ACLLITE_ERROR_VDEC_HEIGHT_INVALID = 620;
148 
149 constexpr int ACLLITE_ERROR_VDEC_SET_HEIGHT = 621;
150 
151 constexpr int ACLLITE_ERROR_VDEC_ENTYPE_INVALID = 622;
152 
153 constexpr int ACLLITE_ERROR_VDEC_FORMAT_INVALID = 623;
154 
155 constexpr int ACLLITE_ERROR_VDEC_INVALID_PARAM = 624;
156 
157 constexpr int ACLLITE_ERROR_VDEC_SEND_FRAME = 625;
158 
159 constexpr int ACLLITE_ERROR_VDEC_QUEUE_FULL = 626;
160 
161 constexpr int ACLLITE_ERROR_SET_RTSP_TRANS = 627;
162 
163 constexpr int ACLLITE_ERROR_READ_EMPTY = 628;
164 
165 constexpr int ACLLITE_ERROR_VIDEO_DECODER_STATUS = 629;
166 
167 constexpr int ACLLITE_ERROR_DECODE_FINISH = 630;
168 
169 constexpr int ACLLITE_ERROR_H26X_FRAME = 631;
170 
171 constexpr int ACLLITE_ERROR_VENC_STATUS = 701;
172 
173 constexpr int ACLLITE_ERROR_VENC_QUEUE_FULL = 702;
174 
175 constexpr int ACLLITE_ERROR_CREATE_VENC_CHAN_DESC = 703;
176 
177 constexpr int ACLLITE_ERROR_SET_VENC_CHAN_TID = 704;
178 
179 constexpr int ACLLITE_ERROR_VENC_SET_EOS = 705;
180 
181 constexpr int ACLLITE_ERROR_VENC_SET_IF_FRAME = 706;
182 
183 constexpr int ACLLITE_ERROR_CREATE_VENC_CHAN = 707;
184 
185 constexpr int ACLLITE_ERROR_VENC_CREATE_FRAME_CONFIG = 708;
186 
187 constexpr int ACLLITE_ERROR_VENC_SEND_FRAME = 709;
188 
189 constexpr int ACLLITE_ERROR_SUBSCRIBE_REPORT = 710;
190 
191 #endif  // MINDSPORE_CCSRC_MINDDATA_DATASET_KERNELS_IMAGE_DVPP_UTILS_ACL_LITE_ERROR_H_
192