openharmony 鸿蒙 capi-image-nativemodule-oh-imagepackernative

2026-08-25 浏览 (1)

OH_ImagePackerNative

typedef struct OH_ImagePackerNative OH_ImagePackerNative

Overview

The struct describes the image packer, which is used to perform operations related to an image packer.

The struct cannot be directly operated. Instead, its fields must be operated by calling functions. The table below describes the content and operation mode of the OH_ImageNative struct.

Field TypeField NameField DescriptionOperation FunctionFunction Description
OH_ImageSourceNativeimageSourceImage source.OH_ImagePackerNative_PackToDataFromImageSourceEncodes an image source into data in a given format.
OH_PixelmapNativepixelmapPixelMap at the native layer.OH_ImagePackerNative_PackToDataFromPixelmapEncodes a PixelMap into data in a given format.
int32_timagesourceFdFile descriptor of an image source.OH_ImagePackerNative_PackToFileFromImageSourceEncodes an image source into a file.
int32_tpixelmapFdFile descriptor of a PixelMap.OH_ImagePackerNative_PackToFileFromPixelmapEncodes a PixelMap into a file.

To create an OH_ImagePackerNative object, call OH_ImagePackerNative_Create.

To release an OH_ImagePackerNative object, call OH_ImagePackerNative_Release.

Since: 12

Related module: Image_NativeModule

Header file: image_packer_native.h

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/pD6ABWIB