MediaFormat.MimetypeImageAndroidHeic Field

Definition

MIME type for HEIF still image data encoded in HEVC.

[Android.Runtime.Register("MIMETYPE_IMAGE_ANDROID_HEIC", ApiSince=28)]
public const string MimetypeImageAndroidHeic;
[<Android.Runtime.Register("MIMETYPE_IMAGE_ANDROID_HEIC", ApiSince=28)>]
val mutable MimetypeImageAndroidHeic : string

Field Value

Attributes

Remarks

MIME type for HEIF still image data encoded in HEVC.

To decode such an image, MediaCodec decoder for #MIMETYPE_VIDEO_HEVC shall be used. The client needs to form the correct #MediaFormat based on additional information in the track format (shown in the next paragraph), and send it to MediaCodec#configure.

The track's MediaFormat will come with #KEY_WIDTH and #KEY_HEIGHT keys, which describes the width and height of the image. If the image doesn't contain grid (i.e. none of #KEY_TILE_WIDTH, #KEY_TILE_HEIGHT, #KEY_GRID_ROWS, #KEY_GRID_COLUMNS are present), the track will contain a single sample of coded data for the entire image, and the image width and height should be used to set up the decoder.

If the image does come with grid, each sample from the track will contain one tile in the grid, of which the size is described by #KEY_TILE_WIDTH and #KEY_TILE_HEIGHT. This size (instead of #KEY_WIDTH and #KEY_HEIGHT) should be used to set up the decoder. The track contains #KEY_GRID_ROWS by #KEY_GRID_COLUMNS samples in row-major, top-row first, left-to-right order. The output image should be reconstructed by first tiling the decoding results of the tiles in the correct order, then trimming (before rotation is applied) on the bottom and right side, if the tiled area is larger than the image width and height.

Java documentation for android.media.MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC.

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