UNPKG

tav-media

Version:

Cross platform media editing framework

117 lines (116 loc) 3.87 kB
export { Matrix } from './matrix'; /** * Defines how to calculate the value between two keyframes. * @category Animation */ export var KeyframeInterpolationType; (function (KeyframeInterpolationType) { /** * Linear interpolation. */ KeyframeInterpolationType[KeyframeInterpolationType["Linear"] = 1] = "Linear"; /** * Bezier curve interpolation. */ KeyframeInterpolationType[KeyframeInterpolationType["Bezier"] = 2] = "Bezier"; /** * Use the value of the previous keyframe. */ KeyframeInterpolationType[KeyframeInterpolationType["Hold"] = 3] = "Hold"; })(KeyframeInterpolationType || (KeyframeInterpolationType = {})); /** * Defines the type of the Property. * @category Animation */ export var PropertyType; (function (PropertyType) { PropertyType[PropertyType["Property"] = 0] = "Property"; PropertyType[PropertyType["Animatable"] = 1] = "Animatable"; })(PropertyType || (PropertyType = {})); /** * Defines the type of the VolumeEffect. * @category Effects */ export var VolumeEffectType; (function (VolumeEffectType) { VolumeEffectType[VolumeEffectType["FIFOEffect"] = 0] = "FIFOEffect"; VolumeEffectType[VolumeEffectType["VolumeEffect"] = 1] = "VolumeEffect"; })(VolumeEffectType || (VolumeEffectType = {})); /** * Describes how to scale the content to fit the specified area. * @category Engine */ export var ScaleMode; (function (ScaleMode) { /** * The content is not scaled. */ ScaleMode[ScaleMode["None"] = 0] = "None"; /** * The content is stretched to fit. */ ScaleMode[ScaleMode["Stretch"] = 1] = "Stretch"; /** * The content is scaled with respect to the original unscaled image's aspect ratio. * This is the default value. */ ScaleMode[ScaleMode["LetterBox"] = 2] = "LetterBox"; /** * The content is scaled to fit with respect to the original unscaled image's aspect ratio. * This results in cropping on one axis. */ ScaleMode[ScaleMode["Zoom"] = 3] = "Zoom"; })(ScaleMode || (ScaleMode = {})); /** * Describes how to interpret the alpha component of a pixel. * @category Engine */ export var AlphaType; (function (AlphaType) { /** * uninitialized. */ AlphaType[AlphaType["Unknown"] = 0] = "Unknown"; /** * pixel is opaque. */ AlphaType[AlphaType["Opaque"] = 1] = "Opaque"; /** * pixel components are premultiplied by alpha. */ AlphaType[AlphaType["Premultiplied"] = 2] = "Premultiplied"; /** * pixel components are independent of alpha. */ AlphaType[AlphaType["Unpremultiplied"] = 3] = "Unpremultiplied"; })(AlphaType || (AlphaType = {})); ; /** * Describes how pixel bits encode color. These values match up with the enum in Bitmap.Config on * Android platform. * @category Engine */ export var ColorType; (function (ColorType) { /** * uninitialized. */ ColorType[ColorType["Unknown"] = 0] = "Unknown"; /** * Each pixel is stored as a single translucency (alpha) channel. This is very useful to * efficiently store masks for instance. No color information is stored. With this configuration, * each pixel requires 1 byte of memory. */ ColorType[ColorType["ALPHA_8"] = 1] = "ALPHA_8"; /** * Each pixel is stored on 4 bytes. Each channel (RGB and alpha for translucency) is stored with 8 * bits of precision (256 possible values). The channel order is: red, green, blue, alpha. */ ColorType[ColorType["RGBA_8888"] = 2] = "RGBA_8888"; /** * Each pixel is stored on 4 bytes. Each channel (RGB and alpha for translucency) is stored with 8 * bits of precision (256 possible values). The channel order is: blue, green, red, alpha. */ ColorType[ColorType["BGRA_8888"] = 3] = "BGRA_8888"; })(ColorType || (ColorType = {})); ;