Loading...
Searching...
No Matches
Enums.h
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_ENUMS_H
#define OPENSHOT_ENUMS_H
namespace openshot
{
enum GravityType
{
GRAVITY_TOP_LEFT,
GRAVITY_TOP,
GRAVITY_TOP_RIGHT,
GRAVITY_LEFT,
GRAVITY_CENTER,
GRAVITY_RIGHT,
GRAVITY_BOTTOM_LEFT,
GRAVITY_BOTTOM,
GRAVITY_BOTTOM_RIGHT
};
enum ScaleType
{
SCALE_CROP,
SCALE_FIT,
SCALE_STRETCH,
SCALE_NONE
};
enum AnchorType
{
ANCHOR_CANVAS,
ANCHOR_VIEWPORT
};
enum FrameDisplayType
{
FRAME_DISPLAY_NONE,
FRAME_DISPLAY_CLIP,
FRAME_DISPLAY_TIMELINE,
FRAME_DISPLAY_BOTH
};
enum class DurationStrategy {
LongestStream,
VideoPreferred,
AudioPreferred,
};
enum VolumeMixType
{
VOLUME_MIX_NONE,
VOLUME_MIX_AVERAGE,
VOLUME_MIX_REDUCE
};
enum CompositeType {
COMPOSITE_SOURCE_OVER,
COMPOSITE_DESTINATION_OVER,
COMPOSITE_CLEAR,
COMPOSITE_SOURCE,
COMPOSITE_DESTINATION,
COMPOSITE_SOURCE_IN,
COMPOSITE_DESTINATION_IN,
COMPOSITE_SOURCE_OUT,
COMPOSITE_DESTINATION_OUT,
COMPOSITE_SOURCE_ATOP,
COMPOSITE_DESTINATION_ATOP,
COMPOSITE_XOR,
// svg 1.2 blend modes
COMPOSITE_PLUS,
COMPOSITE_MULTIPLY,
COMPOSITE_SCREEN,
COMPOSITE_OVERLAY,
COMPOSITE_DARKEN,
COMPOSITE_LIGHTEN,
COMPOSITE_COLOR_DODGE,
COMPOSITE_COLOR_BURN,
COMPOSITE_HARD_LIGHT,
COMPOSITE_SOFT_LIGHT,
COMPOSITE_DIFFERENCE,
COMPOSITE_EXCLUSION,
COMPOSITE_LAST = COMPOSITE_EXCLUSION
};
enum DistortionType
{
HARD_CLIPPING,
SOFT_CLIPPING,
EXPONENTIAL,
FULL_WAVE_RECTIFIER,
HALF_WAVE_RECTIFIER,
};
enum FilterType
{
LOW_PASS,
HIGH_PASS,
LOW_SHELF,
HIGH_SHELF,
BAND_PASS,
BAND_STOP,
PEAKING_NOTCH,
};
enum FFTSize
{
FFT_SIZE_32,
FFT_SIZE_64,
FFT_SIZE_128,
FFT_SIZE_256,
FFT_SIZE_512,
FFT_SIZE_1024,
FFT_SIZE_2048,
FFT_SIZE_4096,
FFT_SIZE_8192,
};
enum HopSize {
HOP_SIZE_2,
HOP_SIZE_4,
HOP_SIZE_8,
};
enum WindowType {
RECTANGULAR,
BART_LETT,
HANN,
HAMMING,
};
enum ChromaKeyMethod
{
CHROMAKEY_BASIC,
CHROMAKEY_HSVL_H,
CHROMAKEY_HSV_S,
CHROMAKEY_HSL_S,
CHROMAKEY_HSV_V,
CHROMAKEY_HSL_L,
CHROMAKEY_CIE_LCH_L,
CHROMAKEY_CIE_LCH_C,
CHROMAKEY_CIE_LCH_H,
CHROMAKEY_CIE_DISTANCE,
CHROMAKEY_YCBCR,
CHROMAKEY_LAST_METHOD = CHROMAKEY_YCBCR
};
} // namespace openshot
#endif
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29
openshot::FFTSize
FFTSize
This enumeration determines the FFT size.
Definition Enums.h:130
openshot::FFT_SIZE_1024
@ FFT_SIZE_1024
Definition Enums.h:136
openshot::FFT_SIZE_512
@ FFT_SIZE_512
Definition Enums.h:135
openshot::FFT_SIZE_32
@ FFT_SIZE_32
Definition Enums.h:131
openshot::FFT_SIZE_4096
@ FFT_SIZE_4096
Definition Enums.h:138
openshot::FFT_SIZE_256
@ FFT_SIZE_256
Definition Enums.h:134
openshot::FFT_SIZE_2048
@ FFT_SIZE_2048
Definition Enums.h:137
openshot::FFT_SIZE_8192
@ FFT_SIZE_8192
Definition Enums.h:139
openshot::FFT_SIZE_64
@ FFT_SIZE_64
Definition Enums.h:132
openshot::FFT_SIZE_128
@ FFT_SIZE_128
Definition Enums.h:133
openshot::AnchorType
AnchorType
This enumeration determines what parent a clip should be aligned to.
Definition Enums.h:45
openshot::ANCHOR_CANVAS
@ ANCHOR_CANVAS
Anchor the clip to the canvas.
Definition Enums.h:46
openshot::ANCHOR_VIEWPORT
@ ANCHOR_VIEWPORT
Anchor the clip to the viewport (which can be moved / animated around the canvas).
Definition Enums.h:47
openshot::DistortionType
DistortionType
This enumeration determines the distortion type of Distortion Effect.
Definition Enums.h:108
openshot::HALF_WAVE_RECTIFIER
@ HALF_WAVE_RECTIFIER
Definition Enums.h:113
openshot::FULL_WAVE_RECTIFIER
@ FULL_WAVE_RECTIFIER
Definition Enums.h:112
openshot::EXPONENTIAL
@ EXPONENTIAL
Definition Enums.h:111
openshot::SOFT_CLIPPING
@ SOFT_CLIPPING
Definition Enums.h:110
openshot::HARD_CLIPPING
@ HARD_CLIPPING
Definition Enums.h:109
openshot::HopSize
HopSize
This enumeration determines the hop size.
Definition Enums.h:143
openshot::HOP_SIZE_2
@ HOP_SIZE_2
Definition Enums.h:144
openshot::HOP_SIZE_4
@ HOP_SIZE_4
Definition Enums.h:145
openshot::HOP_SIZE_8
@ HOP_SIZE_8
Definition Enums.h:146
openshot::ChromaKeyMethod
ChromaKeyMethod
This enumeration determines the algorithm used by the ChromaKey filter.
Definition Enums.h:159
openshot::CHROMAKEY_CIE_LCH_C
@ CHROMAKEY_CIE_LCH_C
Difference between CIE LCH(ab) chromas.
Definition Enums.h:167
openshot::CHROMAKEY_HSL_L
@ CHROMAKEY_HSL_L
Difference between HSL luminances.
Definition Enums.h:165
openshot::CHROMAKEY_HSL_S
@ CHROMAKEY_HSL_S
Difference between HSL saturations.
Definition Enums.h:163
openshot::CHROMAKEY_HSV_V
@ CHROMAKEY_HSV_V
Difference between HSV values.
Definition Enums.h:164
openshot::CHROMAKEY_YCBCR
@ CHROMAKEY_YCBCR
YCbCr vector difference of CbCr.
Definition Enums.h:170
openshot::CHROMAKEY_BASIC
@ CHROMAKEY_BASIC
Length of difference between RGB vectors.
Definition Enums.h:160
openshot::CHROMAKEY_CIE_LCH_L
@ CHROMAKEY_CIE_LCH_L
Difference between CIE LCH(ab) luminousities.
Definition Enums.h:166
openshot::CHROMAKEY_CIE_LCH_H
@ CHROMAKEY_CIE_LCH_H
Difference between CIE LCH(ab) hues.
Definition Enums.h:168
openshot::CHROMAKEY_HSVL_H
@ CHROMAKEY_HSVL_H
Difference between HSV/HSL hues.
Definition Enums.h:161
openshot::CHROMAKEY_CIE_DISTANCE
@ CHROMAKEY_CIE_DISTANCE
CIEDE2000 perceptual difference.
Definition Enums.h:169
openshot::CHROMAKEY_HSV_S
@ CHROMAKEY_HSV_S
Difference between HSV saturations.
Definition Enums.h:162
openshot::CHROMAKEY_LAST_METHOD
@ CHROMAKEY_LAST_METHOD
Definition Enums.h:171
openshot::GravityType
GravityType
This enumeration determines how clips are aligned to their parent container.
Definition Enums.h:22
openshot::GRAVITY_TOP_LEFT
@ GRAVITY_TOP_LEFT
Align clip to the top left of its parent.
Definition Enums.h:23
openshot::GRAVITY_LEFT
@ GRAVITY_LEFT
Align clip to the left of its parent (middle aligned).
Definition Enums.h:26
openshot::GRAVITY_TOP_RIGHT
@ GRAVITY_TOP_RIGHT
Align clip to the top right of its parent.
Definition Enums.h:25
openshot::GRAVITY_RIGHT
@ GRAVITY_RIGHT
Align clip to the right of its parent (middle aligned).
Definition Enums.h:28
openshot::GRAVITY_BOTTOM_LEFT
@ GRAVITY_BOTTOM_LEFT
Align clip to the bottom left of its parent.
Definition Enums.h:29
openshot::GRAVITY_BOTTOM
@ GRAVITY_BOTTOM
Align clip to the bottom center of its parent.
Definition Enums.h:30
openshot::GRAVITY_TOP
@ GRAVITY_TOP
Align clip to the top center of its parent.
Definition Enums.h:24
openshot::GRAVITY_BOTTOM_RIGHT
@ GRAVITY_BOTTOM_RIGHT
Align clip to the bottom right of its parent.
Definition Enums.h:31
openshot::GRAVITY_CENTER
@ GRAVITY_CENTER
Align clip to the center of its parent (middle aligned).
Definition Enums.h:27
openshot::ScaleType
ScaleType
This enumeration determines how clips are scaled to fit their parent container.
Definition Enums.h:36
openshot::SCALE_FIT
@ SCALE_FIT
Scale the clip until either height or width fills the canvas (with no cropping).
Definition Enums.h:38
openshot::SCALE_STRETCH
@ SCALE_STRETCH
Scale the clip until both height and width fill the canvas (distort to fit).
Definition Enums.h:39
openshot::SCALE_CROP
@ SCALE_CROP
Scale the clip until both height and width fill the canvas (cropping the overlap).
Definition Enums.h:37
openshot::SCALE_NONE
@ SCALE_NONE
Do not scale the clip.
Definition Enums.h:40
openshot::WindowType
WindowType
This enumeration determines the window type.
Definition Enums.h:150
openshot::RECTANGULAR
@ RECTANGULAR
Definition Enums.h:151
openshot::HANN
@ HANN
Definition Enums.h:153
openshot::BART_LETT
@ BART_LETT
Definition Enums.h:152
openshot::HAMMING
@ HAMMING
Definition Enums.h:154
openshot::DurationStrategy
DurationStrategy
This enumeration determines which duration source to favor.
Definition Enums.h:60
openshot::DurationStrategy::VideoPreferred
@ VideoPreferred
Prefer the video stream's duration, fallback to audio then container.
Definition Enums.h:62
openshot::DurationStrategy::LongestStream
@ LongestStream
Use the longest value from video, audio, or container.
Definition Enums.h:61
openshot::DurationStrategy::AudioPreferred
@ AudioPreferred
Prefer the audio stream's duration, fallback to video then container.
Definition Enums.h:63
openshot::FilterType
FilterType
This enumeration determines the filter type of ParametricEQ Effect.
Definition Enums.h:118
openshot::LOW_SHELF
@ LOW_SHELF
Definition Enums.h:121
openshot::HIGH_SHELF
@ HIGH_SHELF
Definition Enums.h:122
openshot::BAND_PASS
@ BAND_PASS
Definition Enums.h:123
openshot::BAND_STOP
@ BAND_STOP
Definition Enums.h:124
openshot::LOW_PASS
@ LOW_PASS
Definition Enums.h:119
openshot::HIGH_PASS
@ HIGH_PASS
Definition Enums.h:120
openshot::PEAKING_NOTCH
@ PEAKING_NOTCH
Definition Enums.h:125
openshot::VolumeMixType
VolumeMixType
This enumeration determines the strategy when mixing audio with other clips.
Definition Enums.h:68
openshot::VOLUME_MIX_AVERAGE
@ VOLUME_MIX_AVERAGE
Evenly divide the overlapping clips volume keyframes, so that the sum does not exceed 100%.
Definition Enums.h:70
openshot::VOLUME_MIX_NONE
@ VOLUME_MIX_NONE
Do not apply any volume mixing adjustments. Just add the samples together.
Definition Enums.h:69
openshot::VOLUME_MIX_REDUCE
@ VOLUME_MIX_REDUCE
Reduce volume by about %25, and then mix (louder, but could cause pops if the sum exceeds 100%).
Definition Enums.h:71
openshot::FrameDisplayType
FrameDisplayType
This enumeration determines the display format of the clip's frame number (if any)....
Definition Enums.h:52
openshot::FRAME_DISPLAY_CLIP
@ FRAME_DISPLAY_CLIP
Display the clip's internal frame number.
Definition Enums.h:54
openshot::FRAME_DISPLAY_TIMELINE
@ FRAME_DISPLAY_TIMELINE
Display the timeline's frame number.
Definition Enums.h:55
openshot::FRAME_DISPLAY_BOTH
@ FRAME_DISPLAY_BOTH
Display both the clip's and timeline's frame number.
Definition Enums.h:56
openshot::FRAME_DISPLAY_NONE
@ FRAME_DISPLAY_NONE
Do not display the frame number.
Definition Enums.h:53
openshot::CompositeType
CompositeType
This enumeration determines how clips are composited onto lower layers.
Definition Enums.h:75
openshot::COMPOSITE_LIGHTEN
@ COMPOSITE_LIGHTEN
Definition Enums.h:95
openshot::COMPOSITE_CLEAR
@ COMPOSITE_CLEAR
Definition Enums.h:78
openshot::COMPOSITE_MULTIPLY
@ COMPOSITE_MULTIPLY
Definition Enums.h:91
openshot::COMPOSITE_EXCLUSION
@ COMPOSITE_EXCLUSION
Definition Enums.h:101
openshot::COMPOSITE_PLUS
@ COMPOSITE_PLUS
Definition Enums.h:90
openshot::COMPOSITE_SOURCE_OVER
@ COMPOSITE_SOURCE_OVER
Definition Enums.h:76
openshot::COMPOSITE_DESTINATION_IN
@ COMPOSITE_DESTINATION_IN
Definition Enums.h:82
openshot::COMPOSITE_SOURCE_ATOP
@ COMPOSITE_SOURCE_ATOP
Definition Enums.h:85
openshot::COMPOSITE_LAST
@ COMPOSITE_LAST
Definition Enums.h:103
openshot::COMPOSITE_DESTINATION
@ COMPOSITE_DESTINATION
Definition Enums.h:80
openshot::COMPOSITE_DARKEN
@ COMPOSITE_DARKEN
Definition Enums.h:94
openshot::COMPOSITE_SOURCE
@ COMPOSITE_SOURCE
Definition Enums.h:79
openshot::COMPOSITE_COLOR_DODGE
@ COMPOSITE_COLOR_DODGE
Definition Enums.h:96
openshot::COMPOSITE_SOFT_LIGHT
@ COMPOSITE_SOFT_LIGHT
Definition Enums.h:99
openshot::COMPOSITE_DIFFERENCE
@ COMPOSITE_DIFFERENCE
Definition Enums.h:100
openshot::COMPOSITE_HARD_LIGHT
@ COMPOSITE_HARD_LIGHT
Definition Enums.h:98
openshot::COMPOSITE_DESTINATION_OUT
@ COMPOSITE_DESTINATION_OUT
Definition Enums.h:84
openshot::COMPOSITE_OVERLAY
@ COMPOSITE_OVERLAY
Definition Enums.h:93
openshot::COMPOSITE_DESTINATION_ATOP
@ COMPOSITE_DESTINATION_ATOP
Definition Enums.h:86
openshot::COMPOSITE_COLOR_BURN
@ COMPOSITE_COLOR_BURN
Definition Enums.h:97
openshot::COMPOSITE_SOURCE_IN
@ COMPOSITE_SOURCE_IN
Definition Enums.h:81
openshot::COMPOSITE_SCREEN
@ COMPOSITE_SCREEN
Definition Enums.h:92
openshot::COMPOSITE_SOURCE_OUT
@ COMPOSITE_SOURCE_OUT
Definition Enums.h:83
openshot::COMPOSITE_XOR
@ COMPOSITE_XOR
Definition Enums.h:87
openshot::COMPOSITE_DESTINATION_OVER
@ COMPOSITE_DESTINATION_OVER
Definition Enums.h:77