]> git.sesse.net Git - movit/blob - image_format.h
Add a glow effect, and an effect that linearly mixes two sources (because glow needed...
[movit] / image_format.h
1 #ifndef _IMAGE_FORMAT_H
2 #define _IMAGE_FORMAT_H 1
3
4 enum MovitPixelFormat { FORMAT_RGB, FORMAT_RGBA, FORMAT_BGR, FORMAT_BGRA, FORMAT_GRAYSCALE };
5
6 enum ColorSpace {
7         COLORSPACE_sRGB = 0,
8         COLORSPACE_REC_709 = 0,  // Same as sRGB.
9         COLORSPACE_REC_601_525 = 1,
10         COLORSPACE_REC_601_625 = 2,
11 };
12
13 enum GammaCurve {
14         GAMMA_LINEAR = 0,
15         GAMMA_sRGB = 1,
16         GAMMA_REC_601 = 2,
17         GAMMA_REC_709 = 2,  // Same as Rec. 601.
18 };
19
20 struct ImageFormat {
21         MovitPixelFormat pixel_format;
22         ColorSpace color_space;
23         GammaCurve gamma_curve;
24 };
25
26 #endif  // !defined(_IMAGE_FORMAT_H)