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 OH_VEF_GRAPHICS_RENDER_INFO_H 17 #define OH_VEF_GRAPHICS_RENDER_INFO_H 18 19 #include <vector> 20 #include <memory> 21 #include "data_center/effect/effect.h" 22 #ifdef IMAGE_EFFECT_SUPPORT 23 #include "image_effect.h" 24 #endif 25 26 namespace OHOS { 27 namespace Media { 28 29 struct EffectRenderInfo { 30 uint64_t id = 0; 31 EffectType type = EffectType::UNKNOWN; 32 #ifdef IMAGE_EFFECT_SUPPORT 33 std::shared_ptr<OH_ImageEffect> imageEffect; 34 #endif 35 }; 36 37 class GraphicsRenderInfo { 38 public: 39 GraphicsRenderInfo() = default; 40 ~GraphicsRenderInfo() = default; 41 public: 42 std::vector<std::shared_ptr<EffectRenderInfo>> effectInfoList_; 43 int32_t rotation_; 44 int32_t colorRange_; 45 }; 46 47 } // namespace Media 48 } // namespace OHOS 49 50 #endif // OH_VEF_GRAPHICS_RENDER_INFO_H 51