다음을 통해 공유


MediaCodecInfo.CodecCapabilities.COLORFormatYUVP010 Field

Definition

Caution

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

P010 is 10-bit-per component 4:2:0 YCbCr semiplanar format.

[Android.Runtime.Register("COLOR_FormatYUVP010", ApiSince=33)]
[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 COLORFormatYUVP010 = 54;
[<Android.Runtime.Register("COLOR_FormatYUVP010", ApiSince=33)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaCodecCapabilities enum directly instead of this field.", true)>]
val mutable COLORFormatYUVP010 : Android.Media.MediaCodecCapabilities

Field Value

Value = 54
Attributes

Remarks

P010 is 10-bit-per component 4:2:0 YCbCr semiplanar format.

This format uses 24 allocated bits per pixel with 15 bits of data per pixel. Chroma planes are subsampled by 2 both horizontally and vertically. Each chroma and luma component has 16 allocated bits in little-endian configuration with 10 MSB of actual data.

byte                   byte
<--------- i --------> | <------ i + 1 ------>
            +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
            |     UNUSED      |      Y/Cb/Cr                |
            +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
             0               5 6   7 0                    7
            bit

Use this format with Image. This format corresponds to android.graphics.ImageFormat#YCBCR_P010.

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

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