1 /* 2 * Copyright (c) 2025 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 DETAIL_ENHANCER_COMMON_H 17 #define DETAIL_ENHANCER_COMMON_H 18 19 #include <string> 20 21 namespace OHOS { 22 namespace Media { 23 namespace VideoProcessingEngine { 24 enum DetailEnhancerLevel { 25 DETAIL_ENH_LEVEL_NONE = 0, 26 DETAIL_ENH_LEVEL_LOW, 27 DETAIL_ENH_LEVEL_MEDIUM, 28 // High gear is the highest gear. If you need to add a higher gear, you should 29 // pay attention to the level configuration of the high gear in impl. 30 DETAIL_ENH_LEVEL_HIGH, 31 DETAIL_ENH_LEVEL_NUM 32 }; 33 34 enum SourceType { 35 SOURCE_TYPE_INVALID = -1, 36 IMAGE, 37 VIDEO, 38 SOURCE_TYPE_NUM 39 }; 40 41 struct DetailEnhancerParameters { 42 std::string uri{}; 43 DetailEnhancerLevel level{DETAIL_ENH_LEVEL_LOW}; 44 int contentId; 45 }; 46 } // namespace VideoProcessingEngine 47 } // namespace Media 48 } // namespace OHOS 49 50 #endif // DETAIL_ENHANCER_COMMON_H 51 52