harmony 鸿蒙image_source_mdk.h

  • 2023-10-30
  • 浏览 (196)

image_source_mdk.h

概述

声明将图片源解码成像素位图的方法。

\@Syscap SystemCapability.Multimedia.Image

起始版本:

10

相关模块:

Image

汇总

结构体

名称 描述
OhosImageRegion 定义图像源解码的范围选项。
OhosImageSourceOps 定义图像源选项信息。
OhosImageDecodingOps 定义图像源解码选项。
OhosImageSourceInfo 定义图像源信息。
OhosImageSource 定义图像源输入资源,每次仅接收一种类型。
OhosImageSourceDelayTimeList 定义图像源延迟时间列表。
OhosImageSourceSupportedFormat 定义图像源支持的格式字符串。
OhosImageSourceSupportedFormatList 定义图像源支持的格式字符串列表。
OhosImageSourceProperty 定义图像源属性键值字符串。
OhosImageSourceUpdateData 定义图像源更新数据选项。

类型定义

名称 描述
ImageSourceNative 为图像源方法定义native层图像源对象。

函数

名称 描述
OH_ImageSource_Create (napi_env env, struct OhosImageSource *src, struct OhosImageSourceOps *ops, napi_value *res) 通过给定的信息OhosImageSourceOhosImageSourceOps结构体,获取JavaScript native层APIImageSource对象。
OH_ImageSource_CreateIncremental (napi_env env, struct OhosImageSource *source, struct OhosImageSourceOps *ops, napi_value *res) 通过给定的infomationsOhosImageSourceOhosImageSourceOps结构, 获取增量类型的JavaScript Native API ImageSource对象,图像数据应通过OH_ImageSource_UpdateData更新。
OH_ImageSource_GetSupportedFormats (struct OhosImageSourceSupportedFormatList *res) 获取所有支持的解码格式元标记。
*OH_ImageSource_InitNative (napi_env env, napi_value source) 从输入JavaScript native层API ImageSource 对象中,转换成ImageSourceNative值。
OH_ImageSource_CreatePixelMap (const ImageSourceNative *native, struct OhosImageDecodingOps *ops, napi_value *res) 通过一个给定的选项OhosImageDecodingOps结构体,从ImageSource中解码JavaScript native层APIPixelMap对象
OH_ImageSource_CreatePixelMapList (const ImageSourceNative *native, struct OhosImageDecodingOps *ops, napi_value *res) 通过一个给定的选项OhosImageDecodingOps结构体,从ImageSource中解码所有的JavaScript native层APIPixelMap对象列表
OH_ImageSource_GetDelayTime (const ImageSourceNative *native, struct OhosImageSourceDelayTimeList *res) 从一些ImageSource(如GIF图像源)获取延迟时间列表。
OH_ImageSource_GetFrameCount (const ImageSourceNative *native, uint32_t *res) ImageSource中获取帧计数。
OH_ImageSource_GetImageInfo (const ImageSourceNative *native, int32_t index, struct OhosImageSourceInfo *info) 通过索引从ImageSource获取图像源信息。
OH_ImageSource_GetImageProperty (const ImageSourceNative *native, struct OhosImageSourceProperty *key, struct OhosImageSourceProperty *value) 通过关键字从ImageSource中获取图像源属性。
OH_ImageSource_ModifyImageProperty (const ImageSourceNative *native, struct OhosImageSourceProperty *key, struct OhosImageSourceProperty *value) 通过关键字为ImageSource修改图像源属性。
OH_ImageSource_UpdateData (const ImageSourceNative *native, struct OhosImageSourceUpdateData *data) 为了增量类型的ImageSource更新源数据。
OH_ImageSource_Release (ImageSourceNative *native) 释放native层图像源 ImageSourceNative

变量

名称 描述
*OHOS_IMAGE_PROPERTY_BITS_PER_SAMPLE = “BitsPerSample” 定义每个样本比特的图像属性关键字。
*OHOS_IMAGE_PROPERTY_ORIENTATION = “Orientation” 定义方向的图像属性关键字。
*OHOS_IMAGE_PROPERTY_IMAGE_LENGTH = “ImageLength” 定义图像长度的图像属性关键字。
*OHOS_IMAGE_PROPERTY_IMAGE_WIDTH = “ImageWidth” 定义图像宽度的图像属性关键字。
*OHOS_IMAGE_PROPERTY_GPS_LATITUDE = “GPSLatitude” 定义GPS纬度的图像属性关键字。
*OHOS_IMAGE_PROPERTY_GPS_LONGITUDE = “GPSLongitude” 定义GPS经度的图像属性关键字。
*OHOS_IMAGE_PROPERTY_GPS_LATITUDE_REF = “GPSLatitudeRef” 定义GPS纬度参考的图像属性关键字。
*OHOS_IMAGE_PROPERTY_GPS_LONGITUDE_REF = “GPSLongitudeRef” 定义GPS经度参考的图像属性关键字。
*OHOS_IMAGE_PROPERTY_DATE_TIME_ORIGINAL = “DateTimeOriginal” 定义初始日期时间的图像属性关键字。
*OHOS_IMAGE_PROPERTY_EXPOSURE_TIME = “ExposureTime” 定义曝光时间的图像属性关键字。
*OHOS_IMAGE_PROPERTY_SCENE_TYPE = “SceneType” 定义场景类型的图像属性关键字。
*OHOS_IMAGE_PROPERTY_ISO_SPEED_RATINGS = “ISOSpeedRatings” 定义ISO速度等级的图像属性关键字。
*OHOS_IMAGE_PROPERTY_F_NUMBER = “FNumber” 定义FNumber的图像属性关键字。
*OHOS_IMAGE_PROPERTY_COMPRESSED_BITS_PER_PIXEL = “CompressedBitsPerPixel” 定义每个像素的压缩比特的图像属性关键字。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞