]> git.sesse.net Git - movit/blob - image_format.h
Let FlatInput take in float data (sort of kludgy, though). Also remove the get_*...
[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_INVALID = -1,  // For internal use.
8         COLORSPACE_sRGB = 0,
9         COLORSPACE_REC_709 = 0,  // Same as sRGB.
10         COLORSPACE_REC_601_525 = 1,
11         COLORSPACE_REC_601_625 = 2,
12 };
13
14 enum GammaCurve {
15         GAMMA_INVALID = -1,  // For internal use.
16         GAMMA_LINEAR = 0,
17         GAMMA_sRGB = 1,
18         GAMMA_REC_601 = 2,
19         GAMMA_REC_709 = 2,  // Same as Rec. 601.
20 };
21
22 enum YCbCrLumaCoefficients {
23         YCBCR_REC_601 = 0,
24         YCBCR_REC_709 = 1,
25 };
26
27 struct ImageFormat {
28         ColorSpace color_space;
29         GammaCurve gamma_curve;
30 };
31
32 #endif  // !defined(_IMAGE_FORMAT_H)