Lingua

ImageFormat.Raw14 Field

Definition

Caution

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

Android 14-bit raw format

[Android.Runtime.Register("RAW14", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)]
public const Android.Graphics.ImageFormatType Raw14 = 44;
[<Android.Runtime.Register("RAW14", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable Raw14 : Android.Graphics.ImageFormatType

Field Value

Value = 44
Attributes

Remarks

Android 14-bit raw format

This is a single-plane, 14-bit per pixel, densely packed (in each row), unprocessed format, usually representing raw Bayer-pattern images coming from an image sensor.

In an image buffer with this format, starting from the first pixel of each row, each four consecutive pixels are packed into 7 bytes (56 bits). The first four bytes contain the most significant 8 bits of the first 4 pixels.

This format assumes a width multiple of 4 pixels; an even height

size = row stride * height

Since this is a densely packed format, the pixel stride is always 0. The application must use the pixel data layout defined in above table to access each row data. When row stride is equal to width * (14 / 8), there will be no padding bytes at the end of each row, the entire image data is densely packed. When stride is larger than width * (14 / 8), padding bytes will be present at the end of each row.

For example, the Image object can provide data in this format from a CameraDevice (if supported) through a ImageReader object. The Image#getPlanes() will return a single plane containing the pixel data. The pixel stride is always 0 in Image.Plane.getPixelStride(), and the Image.Plane.getRowStride() describes the vertical neighboring pixel distance (in bytes) between adjacent rows.

Android reference for android.graphics.ImageFormat.RAW14.

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