最終更新:2017-06-26 (月) 17:13:13 (2496d)  

android.graphics.ImageFormat
Top / android.graphics.ImageFormat

http://developer.android.com/reference/android/graphics/ImageFormat.html

定数

  • ImageFormat.DEPTH16?1144402265 (0x44363159)Android dense depth image format.23
    ImageFormat.DEPTH_POINT_CLOUD?257 (0x00000101)Android sparse depth point cloud format.23
    ImageFormat.FLEX_RGBA_888842 (0x0000002a)Multi-plane Android RGBA format23
    ImageFormat.FLEX_RGB_888?41 (0x00000029)Multi-plane Android RGB format23
    ImageFormat.JPEG256 (0x00000100)Compressed JPEG format.8
    ImageFormat.NV16?16 (0x00000010)YCbCr format, used for video.8
    ImageFormat.NV2117 (0x00000011)YCrCb? format used for images, which uses the NV21 encoding format.8
    ImageFormat.PRIVATE34 (0x00000022)Android private opaque image format.23
    ImageFormat.RAW10?37 (0x00000025)Android 10-bit raw format21
    ImageFormat.RAW12?38 (0x00000026)Android 12-bit raw format23
    ImageFormat.RAW_PRIVATE?36 (0x00000024)Private raw camera sensor image format, a single channel image with implementation depedent pixel layout.24
    ImageFormat.RAW_SENSOR?32 (0x00000020)General raw camera sensor image format, usually representing a single-channel Bayer-mosaic image.21
    ImageFormat.RGB_565?4 (0x00000004)RGB format used for pictures encoded as RGB_565.8
    ImageFormat.UNKNOWN?0 (0x00000000)8
    ImageFormat.YUV_420_88835 (0x00000023)Multi-plane Android YUV420 format19
    ImageFormat.YUV_422_888?39 (0x00000027)Multi-plane Android YUV422 format23
    ImageFormat.YUV_444_888?40 (0x00000028)Multi-plane Android YUV444? format23
    ImageFormat.YUY2?20 (0x00000014)YCbCr format used for images, which uses YUYV? (YUY2) encoding format.8
    ImageFormat.YV12842094169 (0x32315659)Android YUV format.9

メモ

  • switch (format) {
    	case ImageFormat.DEPTH16:formatName="DEPTH16";break;
    	case ImageFormat.DEPTH_POINT_CLOUD:formatName="DEPTH_POINT_CLOUD";break;
    	case ImageFormat.FLEX_RGBA_8888:formatName="FLEX_RGBA_8888";break;
    	case ImageFormat.FLEX_RGB_888:formatName="FLEX_RGB_888";break;
    	case ImageFormat.JPEG:formatName="JPEG";break;
    	case ImageFormat.NV16:formatName="NV16";break;
    	case ImageFormat.NV21:formatName="NV21";break;
    	case ImageFormat.PRIVATE:formatName="PRIVATE";break;
    	case ImageFormat.RAW10:formatName="RAW10";break;
    	case ImageFormat.RAW12:formatName="RAW12";break;
    	case ImageFormat.RAW_PRIVATE:formatName="RAW_PRIVATE";break;
    	case ImageFormat.RAW_SENSOR:formatName="RAW_SENSOR";break;
    	case ImageFormat.RGB_565:formatName="RGB_565";break;
    	case ImageFormat.UNKNOWN:formatName="UNKNOWN";break;
    	case ImageFormat.YUV_420_888:formatName="YUV_420_888";break;
    	case ImageFormat.YUV_422_888:formatName="YUV_422_888";break;
    	case ImageFormat.YUV_444_888:formatName="YUV_444_888";break;
    	case ImageFormat.YUY2:formatName="YUY2";break;
    	case ImageFormat.YV12:formatName="YV12";break;
    }