1 /*
2  * Copyright (C) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef PLUGINS_COMMON_LIBS_IMAGE_LIBEXTPLUGIN_INCLUDE_HEIF_PARSER_HEIF_ERROR_H
17 #define PLUGINS_COMMON_LIBS_IMAGE_LIBEXTPLUGIN_INCLUDE_HEIF_PARSER_HEIF_ERROR_H
18 
19 namespace OHOS {
20 namespace ImagePlugin {
21 enum heif_error {
22     heif_error_ok = 0,
23     heif_error_eof = 1,
24     heif_error_no_ftyp = 2,
25     heif_error_no_idat = 3,
26     heif_error_no_meta = 4,
27     heif_error_no_hvcc = 5,
28     heif_error_no_pitm = 6,
29     heif_error_no_ipco = 7,
30     heif_error_no_ipma = 8,
31     heif_error_no_iloc = 9,
32     heif_error_no_iinf = 10,
33     heif_error_no_iprp = 11,
34     heif_error_invalid_box_size = 12,
35     heif_error_invalid_handler = 13,
36     heif_error_item_not_found = 14,
37     heif_error_item_data_not_found = 15,
38     heif_error_primary_item_not_found = 16,
39     heif_error_property_not_found = 17,
40     heif_error_invalid_property_index = 18,
41     heif_error_invalid_color_profile = 19,
42     heif_invalid_exif_data = 20,
43     heif_invalid_mirror_direction = 21,
44     heif_error_grid_too_large = 22,
45     heif_error_too_many_item = 23,
46     heif_error_too_many_recursion = 24,
47     heif_error_no_data = 25,
48 };
49 } // namespace ImagePlugin
50 } // namespace OHOS
51 
52 #endif // PLUGINS_COMMON_LIBS_IMAGE_LIBEXTPLUGIN_INCLUDE_HEIF_PARSER_HEIF_ERROR_H
53