X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=image_format.h;h=1bd19f953e6ddc27102baf601229a44eb8b33cbd;hp=7ca334c36016e4324f0cc75fac9ab8fe87af5cb3;hb=a5f32397f9c23fa8644fe195865d6c36685cf866;hpb=93377952636717f15fd50961f6d3500861596cdc diff --git a/image_format.h b/image_format.h index 7ca334c..1bd19f9 100644 --- a/image_format.h +++ b/image_format.h @@ -11,6 +11,8 @@ // where Y' is derived from R'G'B' instead of RGB, since this is the same // system as used in Rec. 601 and 709. +namespace movit { + enum MovitPixelFormat { FORMAT_RGB, FORMAT_RGBA_PREMULTIPLIED_ALPHA, @@ -18,7 +20,9 @@ enum MovitPixelFormat { FORMAT_BGR, FORMAT_BGRA_PREMULTIPLIED_ALPHA, FORMAT_BGRA_POSTMULTIPLIED_ALPHA, - FORMAT_GRAYSCALE + FORMAT_GRAYSCALE, + FORMAT_RG, + FORMAT_R }; enum Colorspace { @@ -52,4 +56,6 @@ struct ImageFormat { GammaCurve gamma_curve; }; +} // namespace movit + #endif // !defined(_MOVIT_IMAGE_FORMAT_H)