OhosImageDecodingOps

struct OhosImageDecodingOps {...}

Overview

The struct describes the options for decoding an image source. It is used in OH_ImageSource_CreatePixelMap and OH_ImageSource_CreatePixelMapList.

Since: 10

Related module: Image

Header file: image_source_mdk.h

Summary

Member Variables

Name Description
int8_t editable Whether the output PixelMap is editable.
int32_t pixelFormat Pixel format of the output PixelMap.
int32_t fitDensity Pixel density of the output PixelMap.
uint32_t index Index for decoding the image source.
uint32_t sampleSize Size of the sample.
uint32_t rotate Decoding rotation options.
struct OhosImageSize size Pixel width and height of the output PixelMap.
struct OhosImageRegion region Pixel range of the decoded image source.