Commit c377804e authored by Andrey Kamaev's avatar Andrey Kamaev

Refactored YUV420 to RGB/BGR/RGBA/BGRA conversion

parent e45d5e8a
...@@ -911,11 +911,21 @@ enum ...@@ -911,11 +911,21 @@ enum
COLOR_YUV420sp2RGB = 92, COLOR_YUV420sp2RGB = 92,
COLOR_YUV420sp2BGR = 93, COLOR_YUV420sp2BGR = 93,
COLOR_YUV2RGB_NV12 = COLOR_YUV420i2RGB,
COLOR_YUV2BGR_NV12 = COLOR_YUV420i2BGR,
COLOR_YUV2RGB_NV21 = COLOR_YUV420sp2RGB,
COLOR_YUV2BGR_NV21 = COLOR_YUV420sp2BGR,
COLOR_YUV420i2RGBA = 94, COLOR_YUV420i2RGBA = 94,
COLOR_YUV420i2BGRA = 95, COLOR_YUV420i2BGRA = 95,
COLOR_YUV420sp2RGBA = 96, COLOR_YUV420sp2RGBA = 96,
COLOR_YUV420sp2BGRA = 97, COLOR_YUV420sp2BGRA = 97,
COLOR_YUV2RGBA_NV12 = COLOR_YUV420i2RGBA,
COLOR_YUV2BGRA_NV12 = COLOR_YUV420i2BGRA,
COLOR_YUV2RGBA_NV21 = COLOR_YUV420sp2RGBA,
COLOR_YUV2BGRA_NV21 = COLOR_YUV420sp2BGRA,
COLOR_COLORCVT_MAX =100 COLOR_COLORCVT_MAX =100
}; };
......
...@@ -231,11 +231,21 @@ enum ...@@ -231,11 +231,21 @@ enum
CV_YUV420sp2RGB = 92, CV_YUV420sp2RGB = 92,
CV_YUV420sp2BGR = 93, CV_YUV420sp2BGR = 93,
CV_YUV2RGB_NV12 = CV_YUV420i2RGB,
CV_YUV2BGR_NV12 = CV_YUV420i2BGR,
CV_YUV2RGB_NV21 = CV_YUV420sp2RGB,
CV_YUV2BGR_NV21 = CV_YUV420sp2BGR,
CV_YUV420i2RGBA = 94, CV_YUV420i2RGBA = 94,
CV_YUV420i2BGRA = 95, CV_YUV420i2BGRA = 95,
CV_YUV420sp2RGBA = 96, CV_YUV420sp2RGBA = 96,
CV_YUV420sp2BGRA = 97, CV_YUV420sp2BGRA = 97,
CV_YUV2RGBA_NV12 = CV_YUV420i2RGBA,
CV_YUV2BGRA_NV12 = CV_YUV420i2BGRA,
CV_YUV2RGBA_NV21 = CV_YUV420sp2RGBA,
CV_YUV2BGRA_NV21 = CV_YUV420sp2BGRA,
CV_COLORCVT_MAX =100 CV_COLORCVT_MAX =100
}; };
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment