ImagePixelFormat
enum ImagePixelFormat : NSInteger {}
Constants indicating the data source video encoding type.
-
Unknown
Declaration
Objective-C
ImagePixelFormatUnknown = 0
-
24-bit encoding( 8-bit Red, 8-bit Green, 8-bit Blue). Bit masks: - Red 0xFF0000 - Green 0x00FF00 - Blue 0x0000FF
Declaration
Objective-C
ImagePixelFormatRGB_888 = 1
-
24-bit encoding( 8-bit Blue, 8-bit Green, 8-bit Red). Bit masks: - Blue 0xFF0000 - Green 0x00FF00 - Red 0x0000FF
Declaration
Objective-C
ImagePixelFormatBGR_888 = 2
-
32-bit encoding( 8-bit Alpha, 8-bit Blue, 8-bit Green, 8-bit Red). Bit masks: ABGR - Alpha 0xFF000000 - Blue 0x00FF0000 - Green 0x0000FF00 - Red 0x000000FF
Declaration
Objective-C
ImagePixelFormatABGR_8888 = 3
-
8-bit encoding( 8-bit Alpha ). - see: [android.graphics.Bitmap.Config.ALPHA_8].
Declaration
Objective-C
ImagePixelFormatALPHA_8 = 4
-
16-bit encoding( 5-bit Red, 6-bit Green, 5-bit Blue). Bit masks: - Red 0xF800( 5 bits of red) - Green 0x07E0( 6 bits of green) - Blue 0x001F( 5 bits of blue) - see: [android.graphics.ImageFormat.RGB_565]. - see: [android.graphics.Bitmap.Config.RGB_565].
Declaration
Objective-C
ImagePixelFormatRGB_565 = 5
-
32-bit encoding( 8-bit Alpha, 8-bit Red, 8-bit Green, 8-bit Blue). Bit masks: ARGB - Alpha 0xFF000000 - Red 0x00FF0000 - Green 0x0000FF00 - Blue 0x000000FF - see: [android.graphics.Bitmap.Config.ARGB_8888]
Declaration
Objective-C
ImagePixelFormatARGB_8888 = 6
-
YUV (YCbCr) One pixel represents as: YYYYYYYY UVUV For a n-pixel frame: Y×8×n (UV)×2×n - see: [android.graphics.ImageFormat.YUV_420_888].
Declaration
Objective-C
ImagePixelFormatYUV_420_888 = 7
-
YVU (YCrCb) One pixel represents as: YYYYYYYY VUVU For a n-pixel frame: Y×8×n (VU)×2×n. - see: [android.graphics.ImageFormat.YV12].
Declaration
Objective-C
ImagePixelFormatYV12 = 8
-
Android YUV format. This format is exposed to software decoders and applications. Is a 4:2:0 YCrCb planar format comprised of a WxH Y plane followed by (W/2) x (H/2) Cr and Cb planes. - see: [ImageFormat.NV21].
Declaration
Objective-C
ImagePixelFormatNV21 = 9