目录

OH_DecodingOptionsForPicture

struct OH_DecodingOptionsForPicture

Overview

Picture decoding options struct.

Create an OH_DecodingOptionsForPicture object using the OH_DecodingOptionsForPicture_Create function.

Release an OH_DecodingOptionsForPicture object using the OH_DecodingOptionsForPicture_Release function.

Resource management: Releasing an OH_ImageSourceNative object or a decoded OH_PictureNative object does not automatically release the OH_DecodingOptionsForPicture object. After an OH_DecodingOptionsForPicture object is released, it should not be passed to Picture decoding APIs or used to call its field getter and setter APIs.

The content and operations of the OH_DecodingOptionsForPicture struct are as follows.

Field Type Field Name Field Description Default Value Field Getter Function Field Setter Function
Image_AuxiliaryPictureType array desiredAuxiliaryPictures Types of auxiliary pictures expected to be included in the Picture decoding result. It can be used to decode only the auxiliary pictures required by the caller, such as gain maps and depth maps. Empty set, meaning no auxiliary picture type is specified. When decoding a Picture, all supported auxiliary picture types are processed. OH_DecodingOptionsForPicture_GetDesiredAuxiliaryPictures OH_DecodingOptionsForPicture_SetDesiredAuxiliaryPictures

Since: 13

Related module: Image_NativeModule

Header file: image_source_native.h

Related development guide: Decoding Multi-Image Objects Using Image_NativeModule