ImageFormat.Private Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.
Android private opaque image format.
[Android.Runtime.Register("PRIVATE", ApiSince=23)]
[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 Private = 34;
[<Android.Runtime.Register("PRIVATE", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable Private : Android.Graphics.ImageFormatType
Field Value
Value = 34- Attributes
Remarks
Android private opaque image format.
The choices of the actual format and pixel data layout are entirely up to the device-specific and framework internal implementations, and may vary depending on use cases even for the same device. The buffers of this format can be produced by components like android.media.ImageWriter ImageWriter
, and interpreted correctly by consumers like android.hardware.camera2.CameraDevice CameraDevice
based on the device/framework private information. However, these buffers are not directly accessible to the application.
When an android.media.Image Image
of this format is obtained from an android.media.ImageReader ImageReader
or android.media.ImageWriter ImageWriter
, the android.media.Image#getPlanes() getPlanes()
method will return an empty android.media.Image.Plane Plane
array.
If a buffer of this format is to be used as an OpenGL ES texture, the framework will assume that sampling the texture will always return an alpha value of 1.0 (i.e. the buffer contains only opaque pixel values).
Java documentation for android.graphics.ImageFormat.PRIVATE
.
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.