harmony 鸿蒙OH_DecodingOptions
OH_DecodingOptions
概述
OH_DecodingOptions是native层封装的解码选项参数结构体,用于设置解码选项参数,在创建Pixelmap时作为入参传入,详细信息见OH_ImageSourceNative_CreatePixelmap。
OH_DecodingOptions结构体不可直接操作,而是采用函数调用方式创建、释放结构体以及操作具体字段。
创建OH_DecodingOptions对象使用OH_DecodingOptions_Create函数。
释放OH_DecodingOptions对象使用OH_DecodingOptions_Release函数。
OH_DecodingOptions结构体内容和操作方式如下:
字段类型 | 字段名称 | 字段描述 | 操作函数 | 函数描述 |
---|---|---|---|---|
int32_t | pixelFormat | 像素格式 | OH_DecodingOptions_GetPixelFormat | 获取pixel格式。 |
int32_t | pixelFormat | 像素格式 | OH_DecodingOptions_SetPixelFormat | 设置像素格式。 |
uint32_t | index | 解码图片序号 | OH_DecodingOptions_GetIndex | 获取解码图片序号。 |
uint32_t | index | 解码图片序号 | OH_DecodingOptions_SetIndex | 设置解码图片序号。 |
float | rotate | 旋转角度 | OH_DecodingOptions_GetRotate | 获取旋转角度。 |
float | rotate | 旋转角度 | OH_DecodingOptions_SetRotate | 设置旋转角度。 |
Image_Size | desiredSize | 期望输出大小 | OH_DecodingOptions_GetDesiredSize | 获取期望输出大小。 |
Image_Size | desiredSize | 期望输出大小 | OH_DecodingOptions_SetDesiredSize | 设置期望输出大小。 |
Image_Region | desiredRegion | 解码区域 | OH_DecodingOptions_GetDesiredRegion | 获取解码区域。 |
Image_Region | desiredRegion | 解码区域 | OH_DecodingOptions_SetDesiredRegion | 设置解码区域。 |
int32_t | desiredDynamicRange | 期望动态范围 | OH_DecodingOptions_GetDesiredDynamicRange | 获取解码时设置的期望动态范围。 |
int32_t | desiredDynamicRange | 期望动态范围 | OH_DecodingOptions_SetDesiredDynamicRange | 设置解码时的期望动态范围。 |
起始版本: 12
相关模块: Image_NativeModule
所在头文件: image_source_native.h
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Interface (AuxiliaryPicture)
harmony 鸿蒙Interface (ImageCreator)
harmony 鸿蒙Interface (ImagePacker)
harmony 鸿蒙Interface (ImageReceiver)
harmony 鸿蒙Interface (ImageSource)
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦