harmony 鸿蒙OH_DecodingOptions

2025-06-12 浏览 (1)

OH_DecodingOptions

概述

OH_DecodingOptions是native层封装的解码选项参数结构体,用于设置解码选项参数,在创建Pixelmap时作为入参传入,详细信息见OH_ImageSourceNative_CreatePixelmap

OH_DecodingOptions结构体不可直接操作,而是采用函数调用方式创建、释放结构体以及操作具体字段。

创建OH_DecodingOptions对象使用OH_DecodingOptions_Create函数。

释放OH_DecodingOptions对象使用OH_DecodingOptions_Release函数。

OH_DecodingOptions结构体内容和操作方式如下:

字段类型字段名称字段描述操作函数函数描述
int32_tpixelFormat像素格式OH_DecodingOptions_GetPixelFormat获取pixel格式。
int32_tpixelFormat像素格式OH_DecodingOptions_SetPixelFormat设置像素格式。
uint32_tindex解码图片序号OH_DecodingOptions_GetIndex获取解码图片序号。
uint32_tindex解码图片序号OH_DecodingOptions_SetIndex设置解码图片序号。
floatrotate旋转角度OH_DecodingOptions_GetRotate获取旋转角度。
floatrotate旋转角度OH_DecodingOptions_SetRotate设置旋转角度。
Image_SizedesiredSize期望输出大小OH_DecodingOptions_GetDesiredSize获取期望输出大小。
Image_SizedesiredSize期望输出大小OH_DecodingOptions_SetDesiredSize设置期望输出大小。
Image_RegiondesiredRegion解码区域OH_DecodingOptions_GetDesiredRegion获取解码区域。
Image_RegiondesiredRegion解码区域OH_DecodingOptions_SetDesiredRegion设置解码区域。
int32_tdesiredDynamicRange期望动态范围OH_DecodingOptions_GetDesiredDynamicRange获取解码时设置的期望动态范围。
int32_tdesiredDynamicRange期望动态范围OH_DecodingOptions_SetDesiredDynamicRange设置解码时的期望动态范围。

起始版本: 12

相关模块: Image_NativeModule

所在头文件: image_source_native.h

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit(图片处理服务)

harmony 鸿蒙Interface (AuxiliaryPicture)

harmony 鸿蒙Interface (Image)

harmony 鸿蒙Interface (ImageCreator)

harmony 鸿蒙Interface (ImagePacker)

harmony 鸿蒙Interface (ImageReceiver)

harmony 鸿蒙Interface (ImageSource)

harmony 鸿蒙Interface (Metadata)

harmony 鸿蒙Interface (Picture)

harmony 鸿蒙Interface (PixelMap)

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