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 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 OHOS_HDI_CODEC_IMAGE_V2_0_COMMAND_PARSER 17#define OHOS_HDI_CODEC_IMAGE_V2_0_COMMAND_PARSER 18 19#include <string> 20#include <vector> 21 22namespace OHOS::VDI::HEIF { 23enum ImageMirror { 24 HORIZONTAL, 25 VERTICAL, 26 NONE 27}; 28 29enum class ImageRotation { 30 ANTI_CLOCKWISE_90, 31 ANTI_CLOCKWISE_180, 32 ANTI_CLOCKWISE_270, 33 NONE 34}; 35 36struct CommandOpt { 37 std::string primaryImgPath = ""; 38 std::string auxiliaryImgPath = ""; 39 std::string thumbnailImgPath = ""; 40 std::string gainMapPath = ""; 41 std::string exifDataPath = ""; 42 std::string userDataPath = ""; 43 std::string iccProfilePath = ""; 44 std::string it35Path = ""; 45 std::string outputPath = "/storage/media/100/local/files/heif_edit_dump"; 46 ImageMirror mirrorInfo = ImageMirror::NONE; 47 ImageRotation rotateInfo = ImageRotation::NONE; 48 49 void Print() const; 50}; 51 52CommandOpt Parse(int argc, char *argv[]); 53void ShowUsage(); 54} // OHOS::VDI::HEIF 55#endif // OHOS_HDI_CODEC_IMAGE_V2_0_COMMAND_PARSER