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_ITEM_AUX_BOX_H
17 #define PLUGINS_COMMON_LIBS_IMAGE_LIBEXTPLUGIN_INCLUDE_HEIF_PARSER_ITEM_AUX_BOX_H
18 
19 #include "box/heif_box.h"
20 
21 namespace OHOS {
22 namespace ImagePlugin {
23 class HeifAuxcBox : public HeifFullBox {
24 public:
HeifAuxcBox()25     HeifAuxcBox() : HeifFullBox(BOX_TYPE_AUXC) {}
26 
GetAuxType()27     const std::string &GetAuxType() const { return auxType_; }
28 
SetAuxType(const std::string & type)29     void SetAuxType(const std::string &type) { auxType_ = type; }
30 
GetAuxSubtypes()31     const std::vector<uint8_t> &GetAuxSubtypes() const { return auxSubtypes_; }
32 
33 protected:
34     heif_error ParseContent(HeifStreamReader &reader) override;
35 
36     heif_error Write(HeifStreamWriter &writer) const override;
37 
38 private:
39     std::string auxType_;
40     std::vector<uint8_t> auxSubtypes_;
41 };
42 } // namespace ImagePlugin
43 } // namespace OHOS
44 
45 #endif // PLUGINS_COMMON_LIBS_IMAGE_LIBEXTPLUGIN_INCLUDE_HEIF_PARSER_ITEM_AUX_BOX_H
46