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_CONSTANT_H
17 #define PLUGINS_COMMON_LIBS_IMAGE_LIBEXTPLUGIN_INCLUDE_HEIF_PARSER_HEIF_CONSTANT_H
18 
19 namespace OHOS {
20 namespace ImagePlugin {
21 const uint8_t BIT_SHIFT = 1;
22 const uint8_t ONE_BYTE_SHIFT = 8;
23 const uint8_t TWO_BYTES_SHIFT = 16;
24 const uint8_t THREE_BYTES_SHIFT = 24;
25 const uint8_t FOUR_BYTES_SHIFT = 32;
26 const uint8_t FIVE_BYTES_SHIFT = 40;
27 const uint8_t SIX_BYTES_SHIFT = 48;
28 const uint8_t SEVEN_BYTES_SHIFT = 56;
29 
30 const uint8_t UINT8_BYTES_NUM = 1;
31 const uint8_t UINT16_BYTES_NUM = 2;
32 const uint8_t UINT32_BYTES_NUM = 4;
33 const uint8_t UINT64_BYTES_NUM = 8;
34 
35 const uint8_t BUFFER_INDEX_ZERO = 0;
36 const uint8_t BUFFER_INDEX_ONE = 1;
37 const uint8_t BUFFER_INDEX_TWO = 2;
38 const uint8_t BUFFER_INDEX_THREE = 3;
39 } // namespace ImagePlugin
40 } // namespace OHOS
41 
42 #endif // PLUGINS_COMMON_LIBS_IMAGE_LIBEXTPLUGIN_INCLUDE_HEIF_PARSER_HEIF_CONSTANT_H
43