]> git.sesse.net Git - movit/blob - image_format.h
Make util.h private to the effects; instead, defs.h contains what effect.h needs...
[movit] / image_format.h
1 #ifndef _MOVIT_IMAGE_FORMAT_H
2 #define _MOVIT_IMAGE_FORMAT_H 1
3
4 enum MovitPixelFormat {
5         FORMAT_RGB,
6         FORMAT_RGBA_PREMULTIPLIED_ALPHA,
7         FORMAT_RGBA_POSTMULTIPLIED_ALPHA,
8         FORMAT_BGR,
9         FORMAT_BGRA_PREMULTIPLIED_ALPHA,
10         FORMAT_BGRA_POSTMULTIPLIED_ALPHA,
11         FORMAT_GRAYSCALE
12 };
13
14 enum Colorspace {
15         COLORSPACE_INVALID = -1,  // For internal use.
16         COLORSPACE_sRGB = 0,
17         COLORSPACE_REC_709 = 0,  // Same as sRGB.
18         COLORSPACE_REC_601_525 = 1,
19         COLORSPACE_REC_601_625 = 2,
20         COLORSPACE_XYZ = 3,  // Mostly useful for testing and debugging.
21 };
22
23 enum GammaCurve {
24         GAMMA_INVALID = -1,  // For internal use.
25         GAMMA_LINEAR = 0,
26         GAMMA_sRGB = 1,
27         GAMMA_REC_601 = 2,
28         GAMMA_REC_709 = 2,  // Same as Rec. 601.
29 };
30
31 enum YCbCrLumaCoefficients {
32         YCBCR_REC_601 = 0,
33         YCBCR_REC_709 = 1,
34 };
35
36 struct ImageFormat {
37         Colorspace color_space;
38         GammaCurve gamma_curve;
39 };
40
41 #endif  // !defined(_MOVIT_IMAGE_FORMAT_H)