Freigeben über


MediaCodecInfo.CodecCapabilities.COLORFormat16bitRGB565 Field

Definition

Caution

This constant will be removed in the future version. Use Android.Media.MediaCodecCapabilities enum directly instead of this field.

16 bits per pixel RGB color format, with 5-bit red & blue and 6-bit green component.

[Android.Runtime.Register("COLOR_Format16bitRGB565")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaCodecCapabilities enum directly instead of this field.", true)]
public const Android.Media.MediaCodecCapabilities COLORFormat16bitRGB565 = 6;
[<Android.Runtime.Register("COLOR_Format16bitRGB565")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaCodecCapabilities enum directly instead of this field.", true)>]
val mutable COLORFormat16bitRGB565 : Android.Media.MediaCodecCapabilities

Field Value

Value = 6
Attributes

Remarks

16 bits per pixel RGB color format, with 5-bit red & blue and 6-bit green component.

Using 16-bit little-endian representation, colors stored as Red 15:11, Green 10:5, Blue 4:0.

byte                   byte
<--------- i --------> | <------ i + 1 ------>
            +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
            |     BLUE     |      GREEN      |     RED      |
            +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
             0           4  5     7   0     2  3           7
            bit

This format corresponds to android.graphics.PixelFormat#RGB_565 and android.graphics.ImageFormat#RGB_565.

Java documentation for android.media.MediaCodecInfo.CodecCapabilities.COLOR_Format16bitRGB565.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to