X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=image_format.h;h=40067c656782a38017920a7e649c03bb4f34cd3b;hb=HEAD;hp=77838ececa33918b061744e31b5f5cc58adbb9bf;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2;p=movit diff --git a/image_format.h b/image_format.h index 77838ec..40067c6 100644 --- a/image_format.h +++ b/image_format.h @@ -20,17 +20,19 @@ enum MovitPixelFormat { FORMAT_BGR, FORMAT_BGRA_PREMULTIPLIED_ALPHA, FORMAT_BGRA_POSTMULTIPLIED_ALPHA, - FORMAT_GRAYSCALE + FORMAT_GRAYSCALE, + FORMAT_RG, + FORMAT_R }; enum Colorspace { COLORSPACE_INVALID = -1, // For internal use. - COLORSPACE_sRGB = 0, - COLORSPACE_REC_709 = 0, // Same as sRGB. + COLORSPACE_REC_709 = 0, COLORSPACE_REC_601_525 = 1, COLORSPACE_REC_601_625 = 2, COLORSPACE_XYZ = 3, // Mostly useful for testing and debugging. COLORSPACE_REC_2020 = 4, + COLORSPACE_sRGB = 5, // Used to be same as COLORSPACE_REC_709. }; enum GammaCurve {