|
| 1 | +///////////////////////////////////////////////////////////////////////////////////////////////// |
| 2 | +// |
| 3 | +// Tencent is pleased to support the open source community by making libpag available. |
| 4 | +// |
| 5 | +// Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved. |
| 6 | +// |
| 7 | +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file |
| 8 | +// except in compliance with the License. You may obtain a copy of the License at |
| 9 | +// |
| 10 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +// |
| 12 | +// unless required by applicable law or agreed to in writing, software distributed under the |
| 13 | +// license is distributed on an "as is" basis, without warranties or conditions of any kind, |
| 14 | +// either express or implied. see the license for the specific language governing permissions |
| 15 | +// and limitations under the license. |
| 16 | +// |
| 17 | +///////////////////////////////////////////////////////////////////////////////////////////////// |
| 18 | + |
| 19 | +#pragma once |
| 20 | + |
| 21 | +#include <pag/file.h> |
| 22 | +#include "AEGP_SuiteHandler.h" |
| 23 | + |
| 24 | +namespace pag { |
| 25 | +namespace exporter { |
| 26 | + |
| 27 | +enum class PresetTagLevel { |
| 28 | + TagLevelStable = static_cast<uint16_t>(TagCode::TextAnimatorPropertiesStrokeColor), |
| 29 | + TagLevelMin = static_cast<uint16_t>(TagCode::DropShadowStyle), |
| 30 | + TagLevelMax = static_cast<uint16_t>(TagCode::Count) - 1, |
| 31 | +}; |
| 32 | + |
| 33 | +enum class TagMode { |
| 34 | + Stable = 0, |
| 35 | + Beta = 1, |
| 36 | + Custom = 2, |
| 37 | +}; |
| 38 | + |
| 39 | +enum class Language { |
| 40 | + Auto = 0, |
| 41 | + Chinese = 1, |
| 42 | + English = 2, |
| 43 | +}; |
| 44 | + |
| 45 | +enum class ExportScenes { |
| 46 | + General = 0, |
| 47 | + UI = 1, |
| 48 | + VideoEdit = 2, |
| 49 | +}; |
| 50 | + |
| 51 | +struct ConfigParam { |
| 52 | + int bitmapKeyFrameInterval = 60; |
| 53 | + int bitmapMaxResolution = 720; |
| 54 | + float frameRate = 24.0; |
| 55 | + TagMode tagMode = TagMode::Stable; |
| 56 | + ExportScenes scenes = ExportScenes::General; |
| 57 | + uint16_t exportTagLevel = 1023; |
| 58 | + int imageQuality = 80; |
| 59 | + float imagePixelRatio = 2.0; |
| 60 | + std::string sequenceSuffix = "_bmp"; |
| 61 | + bool enableLayerName = true; |
| 62 | + bool enableFontFile = false; |
| 63 | + int sequenceQuality = 80; |
| 64 | + bool enableCompressionPanel = false; |
| 65 | + pag::CompositionType sequenceType = CompositionType::Video; |
| 66 | + bool enableFontAudio = true; |
| 67 | + Language language = Language::Auto; |
| 68 | +}; |
| 69 | +} // namespace exporter |
| 70 | +} // namespace pag |
0 commit comments