harmony 鸿蒙image_common.h
image_common.h
Overview
The image_common.h file declares the common enums and structs used by the image interface.
Library: libimage_common.so
File to include: <multimedia/image_framework/image/image_common.h>
System capability: SystemCapability.Multimedia.Image.Core
Since: 12
Related module: Image_NativeModule
Summary
Structs
Name | Description |
---|---|
struct Image_Size | Describes the image size. |
struct Image_Region | Describes the region of an image to decode. |
struct Image_String | Describes an image string. |
Types
Name | Description |
---|---|
typedef struct Image_Size Image_Size | Defines a struct for the image size. |
typedef struct Image_Region Image_Region | Defines a struct for the region of an image to decode. |
typedef struct OH_PictureMetadata OH_PictureMetadata | Defines a struct for the picture metadata. |
typedef struct Image_String Image_String | Defines a struct for an image string. |
typedef struct Image_String Image_MimeType | Defines a struct for an image format type. |
Enums
Name | Description |
---|---|
Image_ErrorCode { IMAGE_SUCCESS = 0, IMAGE_BAD_PARAMETER = 401, IMAGE_UNSUPPORTED_MIME_TYPE = 7600101, IMAGE_UNKNOWN_MIME_TYPE = 7600102, IMAGE_TOO_LARGE = 7600103, IMAGE_DMA_NOT_EXIST = 7600173, IMAGE_DMA_OPERATION_FAILED = 7600174, IMAGE_UNSUPPORTED_OPERATION = 7600201, IMAGE_UNSUPPORTED_METADATA = 7600202, IMAGE_UNSUPPORTED_CONVERSION = 7600203, IMAGE_INVALID_REGION = 7600204, IMAGE_UNSUPPORTED_MEMORY_FORMAT = 7600205, IMAGE_ALLOC_FAILED = 7600301, IMAGE_COPY_FAILED = 7600302, IMAGE_LOCK_UNLOCK_FAILED = 7600303, IMAGE_UNKNOWN_ERROR = 7600901, IMAGE_BAD_SOURCE = 7700101, IMAGE_SOURCE_UNSUPPORTED_MIME_TYPE = 7700102, IMAGE_SOURCE_TOO_LARGE = 7700103, IMAGE_SOURCE_UNSUPPORTED_ALLOCATOR_TYPE = 7700201, IMAGE_SOURCE_UNSUPPORTED_OPTIONS = 7700203, IMAGE_DECODE_FAILED = 7700301, IMAGE_SOURCE_ALLOC_FAILED = 7700302, IMAGE_ENCODE_FAILED = 7800301 } |
Enumerates the error codes. |
Image_MetadataType { EXIF_METADATA = 1, FRAGMENT_METADATA = 2 } |
Enumerates the metadata types. |
Variables
Name | Description |
---|---|
static const char *MIME_TYPE_BMP = “image/bmp” | BMP image format. |
static const char *MIME_TYPE_JPEG = “image/jpeg” | JPEG image format. |
static const char *MIME_TYPE_HEIC = “image/heic” | HEIC image format. |
static const char *MIME_TYPE_PNG = “image/png” | PNG image format. |
static const char *MIME_TYPE_WEBP = “image/webp” | WebP image format. |
static const char *MIME_TYPE_GIF = “image/gif” | GIF image format. |
static const char *MIME_TYPE_ICON = “image/x-icon” | ICO image format. |
static const char *OHOS_IMAGE_PROPERTY_BITS_PER_SAMPLE = “BitsPerSample” | Number of bits per sample. |
static const char *OHOS_IMAGE_PROPERTY_ORIENTATION = “Orientation” | Image orientation. |
static const char *OHOS_IMAGE_PROPERTY_IMAGE_LENGTH = “ImageLength” | Image length. |
static const char *OHOS_IMAGE_PROPERTY_IMAGE_WIDTH = “ImageWidth” | Image width. |
static const char *OHOS_IMAGE_PROPERTY_GPS_LATITUDE = “GPSLatitude” | Image latitude. |
static const char *OHOS_IMAGE_PROPERTY_GPS_LONGITUDE = “GPSLongitude” | Image longitude. |
static const char *OHOS_IMAGE_PROPERTY_GPS_LATITUDE_REF = “GPSLatitudeRef” | Whether the latitude is north or south latitude. |
static const char *OHOS_IMAGE_PROPERTY_GPS_LONGITUDE_REF = “GPSLongitudeRef” | Whether the longitude is east or west longitude. |
static const char *OHOS_IMAGE_PROPERTY_DATE_TIME_ORIGINAL = “DateTimeOriginal” | Shooting time, for example, 2022:09:06 15:48:00. |
static const char *OHOS_IMAGE_PROPERTY_EXPOSURE_TIME = “ExposureTime” | Exposure time, for example, 1⁄33 seconds. |
static const char *OHOS_IMAGE_PROPERTY_SCENE_TYPE = “SceneType” | Type of the scene, for example, portrait, scenery, motion, and night. |
static const char *OHOS_IMAGE_PROPERTY_ISO_SPEED_RATINGS = “ISOSpeedRatings” | ISO sensitivity or ISO speed, for example, 400. |
static const char *OHOS_IMAGE_PROPERTY_F_NUMBER = “FNumber” | F number, for example, f/1.8. |
static const char *OHOS_IMAGE_PROPERTY_COMPRESSED_BITS_PER_PIXEL = “CompressedBitsPerPixel” | Number of bits per pixel. It is specific to compressed data. |
static const char *OHOS_IMAGE_PROPERTY_COMPRESSION = “Compression” | Compression scheme used on the image data. |
static const char *OHOS_IMAGE_PROPERTY_PHOTOMETRIC_INTERPRETATION = “PhotometricInterpretation” | Color space of the image data, for example, RGB or YCbCr. |
static const char *OHOS_IMAGE_PROPERTY_STRIP_OFFSETS = “StripOffsets” | Byte offset of each strip. |
static const char *OHOS_IMAGE_PROPERTY_SAMPLES_PER_PIXEL = “SamplesPerPixel” | Number of components per pixel. The value is 3 for RGB and YCbCr images. The JPEG key is used in JPEG compressed data. |
static const char *OHOS_IMAGE_PROPERTY_ROWS_PER_STRIP = “RowsPerStrip” | Number of rows per strip. |
static const char *OHOS_IMAGE_PROPERTY_STRIP_BYTE_COUNTS = “StripByteCounts” | Number of bytes in each strip after compression. |
static const char *OHOS_IMAGE_PROPERTY_X_RESOLUTION = “XResolution” | Number of pixels per ResolutionUnit in the image width (X) direction. |
static const char *OHOS_IMAGE_PROPERTY_Y_RESOLUTION = “YResolution” | Number of pixels per ResolutionUnit in the image height (Y) direction. |
static const char *OHOS_IMAGE_PROPERTY_PLANAR_CONFIGURATION = “PlanarConfiguration” | Storage format of components of each pixel, which can be chunky or planar. |
static const char *OHOS_IMAGE_PROPERTY_RESOLUTION_UNIT = “ResolutionUnit” | Unit of measurement for XResolution and YResolution. |
static const char *OHOS_IMAGE_PROPERTY_TRANSFER_FUNCTION = “TransferFunction” | Transfer function for the image, which is usually used for color correction. |
static const char *OHOS_IMAGE_PROPERTY_SOFTWARE = “Software” | Name and version number of the software used to create the image. |
static const char *OHOS_IMAGE_PROPERTY_ARTIST = “Artist” | Person who created the image. |
static const char *OHOS_IMAGE_PROPERTY_WHITE_POINT = “WhitePoint” | Chromaticity of the white point of the image. |
static const char *OHOS_IMAGE_PROPERTY_PRIMARY_CHROMATICITIES = “PrimaryChromaticities” | Chromaticities of the primaries of the image. |
static const char *OHOS_IMAGE_PROPERTY_YCBCR_COEFFICIENTS = “YCbCrCoefficients” | Transformation from RGB to YCbCr image data. |
static const char *OHOS_IMAGE_PROPERTY_YCBCR_SUB_SAMPLING = “YCbCrSubSampling” | Subsampling factors used for the chrominance components of a YCbCr image. |
static const char *OHOS_IMAGE_PROPERTY_YCBCR_POSITIONING = “YCbCrPositioning” | Positioning of subsampled chrominance components relative to luminance samples. |
static const char *OHOS_IMAGE_PROPERTY_REFERENCE_BLACK_WHITE = “ReferenceBlackWhite” | A pair of headroom and footroom image data values (codes) for each pixel component. |
static const char *OHOS_IMAGE_PROPERTY_COPYRIGHT = “Copyright” | Copyright notice of the image. |
static const char *OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT = “JPEGInterchangeFormat” | Offset of the SOI marker of a JPEG interchange format bitstream. |
static const char *OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT_LENGTH = “JPEGInterchangeFormatLength” | Number of bytes of the JPEG stream. |
static const char *OHOS_IMAGE_PROPERTY_EXPOSURE_PROGRAM = “ExposureProgram” | Class of the program used by the camera to set exposure when the image was captured. |
static const char *OHOS_IMAGE_PROPERTY_SPECTRAL_SENSITIVITY = “SpectralSensitivity” | Spectral sensitivity of each channel of the camera. |
static const char *OHOS_IMAGE_PROPERTY_OECF = “OECF” | Opto-Electric Conversion Function (OECF) specified in ISO 14524. |
static const char *OHOS_IMAGE_PROPERTY_EXIF_VERSION = “ExifVersion” | Version of the supported EXIF standard. |
static const char *OHOS_IMAGE_PROPERTY_DATE_TIME_DIGITIZED = “DateTimeDigitized” | Date and time when the image was stored as digital data, in the format of YYYY:MM:DD HH:MM:SS. |
static const char *OHOS_IMAGE_PROPERTY_COMPONENTS_CONFIGURATION = “ComponentsConfiguration” | Specific information about compressed data. |
static const char *OHOS_IMAGE_PROPERTY_SHUTTER_SPEED_VALUE = “ShutterSpeedValue” | Shutter speed, expressed in Additive System of Photographic Exposure (APEX) values. |
static const char *OHOS_IMAGE_PROPERTY_BRIGHTNESS_VALUE = “BrightnessValue” | Value of brightness, expressed in APEX values. |
static const char *OHOS_IMAGE_PROPERTY_MAX_APERTURE_VALUE = “MaxApertureValue” | Smallest F number of the lens. |
static const char *OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE = “SubjectDistance” | Distance to the subject, in meters. |
static const char *OHOS_IMAGE_PROPERTY_SUBJECT_AREA = “SubjectArea” | Location and area of the main subject in the entire scene. |
static const char *OHOS_IMAGE_PROPERTY_MAKER_NOTE = “MakerNote” | Marker used by EXIF/DCF manufacturers to record any required information. |
static const char *OHOS_IMAGE_PROPERTY_SUBSEC_TIME = “SubsecTime” | Tag used to record fractions of seconds for the DateTime tag. |
static const char *OHOS_IMAGE_PROPERTY_SUBSEC_TIME_ORIGINAL = “SubsecTimeOriginal” | Tag used to record fractions of seconds for the DateTimeOriginal tag. |
static const char *OHOS_IMAGE_PROPERTY_SUBSEC_TIME_DIGITIZED = “SubsecTimeDigitized” | Tag used to record fractions of seconds for the DateTimeDigitized tag. |
static const char *OHOS_IMAGE_PROPERTY_FLASHPIX_VERSION = “FlashpixVersion” | FlashPix format version supported by an FPXR file. It is used to enhance device compatibility. |
static const char *OHOS_IMAGE_PROPERTY_COLOR_SPACE = “ColorSpace” | Color space information, which is usually recorded as a color space specifier. |
static const char *OHOS_IMAGE_PROPERTY_RELATED_SOUND_FILE = “RelatedSoundFile” | Name of an audio file related to the image data. |
static const char *OHOS_IMAGE_PROPERTY_FLASH_ENERGY = “FlashEnergy” | Strobe energy at the time the image was captured, in Beam Candle Power Seconds (BCPS). |
static const char *OHOS_IMAGE_PROPERTY_SPATIAL_FREQUENCY_RESPONSE = “SpatialFrequencyResponse” | Spatial frequency table of the camera or input device. |
static const char *OHOS_IMAGE_PROPERTY_FOCAL_PLANE_X_RESOLUTION = “FocalPlaneXResolution” | Number of pixels in the image width (X) direction per FocalPlaneResolutionUnit. |
static const char *OHOS_IMAGE_PROPERTY_FOCAL_PLANE_Y_RESOLUTION = “FocalPlaneYResolution” | Number of pixels in the image height (Y) direction per FocalPlaneResolutionUnit. |
static const char *OHOS_IMAGE_PROPERTY_FOCAL_PLANE_RESOLUTION_UNIT = “FocalPlaneResolutionUnit” | Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution. |
static const char *OHOS_IMAGE_PROPERTY_SUBJECT_LOCATION = “SubjectLocation” | Location of the main subject relative to the left edge. |
static const char *OHOS_IMAGE_PROPERTY_EXPOSURE_INDEX = “ExposureIndex” | Exposure index selected at the time the image is captured. |
static const char *OHOS_IMAGE_PROPERTY_SENSING_METHOD = “SensingMethod” | Type of the image sensor on the camera. |
static const char *OHOS_IMAGE_PROPERTY_FILE_SOURCE = “FileSource” | Image source. |
static const char *OHOS_IMAGE_PROPERTY_CFA_PATTERN = “CFAPattern” | Color Filter Array (CFA) geometric pattern of the image sensor. |
static const char *OHOS_IMAGE_PROPERTY_CUSTOM_RENDERED = “CustomRendered” | Special processing on image data. |
static const char *OHOS_IMAGE_PROPERTY_EXPOSURE_MODE = “ExposureMode” | Exposure mode set when the image was captured. |
static const char *OHOS_IMAGE_PROPERTY_DIGITAL_ZOOM_RATIO = “DigitalZoomRatio” | Digital zoom ratio when the image was captured. |
static const char *OHOS_IMAGE_PROPERTY_SCENE_CAPTURE_TYPE = “SceneCaptureType” | Type of the scene that was captured. |
static const char *OHOS_IMAGE_PROPERTY_GAIN_CONTROL = “GainControl” | Degree of overall image gain adjustment. |
static const char *OHOS_IMAGE_PROPERTY_CONTRAST = “Contrast” | Direction of contrast processing used by the camera. |
static const char *OHOS_IMAGE_PROPERTY_SATURATION = “Saturation” | Direction of saturation processing used by the camera. |
static const char *OHOS_IMAGE_PROPERTY_SHARPNESS = “Sharpness” | Direction of sharpness processing used by the camera. |
static const char *OHOS_IMAGE_PROPERTY_DEVICE_SETTING_DESCRIPTION = “DeviceSettingDescription” | Information about the photographing conditions of a specific camera model. |
static const char *OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE_RANGE = “SubjectDistanceRange” | Distance to the subject. |
static const char *OHOS_IMAGE_PROPERTY_IMAGE_UNIQUE_ID = “ImageUniqueID” | Unique identifier assigned to each image. |
static const char *OHOS_IMAGE_PROPERTY_GPS_VERSION_ID = “GPSVersionID” | Version of GPSInfoIFD. |
static const char *OHOS_IMAGE_PROPERTY_GPS_ALTITUDE_REF = “GPSAltitudeRef” | Whether the latitude is north or south latitude. |
static const char *OHOS_IMAGE_PROPERTY_GPS_ALTITUDE = “GPSAltitude” | Altitude based on the reference in GPSAltitudeRef. |
static const char *OHOS_IMAGE_PROPERTY_GPS_SATELLITES = “GPSSatellites” | GPS satellites used for measurement. |
static const char *OHOS_IMAGE_PROPERTY_GPS_STATUS = “GPSStatus” | Status of the GPS receiver when the image was recorded. |
static const char *OHOS_IMAGE_PROPERTY_GPS_MEASURE_MODE = “GPSMeasureMode” | GPS measurement pmode. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DOP = “GPSDOP” | GPS DOP (data degree of precision) |
static const char *OHOS_IMAGE_PROPERTY_GPS_SPEED_REF = “GPSSpeedRef” | Unit used to express the movement speed of the GPS receiver. |
static const char *OHOS_IMAGE_PROPERTY_GPS_SPEED = “GPSSpeed” | Movement speed of the GPS receiver. |
static const char *OHOS_IMAGE_PROPERTY_GPS_TRACK_REF = “GPSTrackRef” | Reference of the movement direction of the GPS receiver. |
static const char *OHOS_IMAGE_PROPERTY_GPS_TRACK = “GPSTrack” | Movement direction of the GPS receiver. |
static const char *OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION_REF = “GPSImgDirectionRef” | Reference of the direction of the image when it was captured. |
static const char *OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION = “GPSImgDirection” | Direction of the image when it was captured. |
static const char *OHOS_IMAGE_PROPERTY_GPS_MAP_DATUM = “GPSMapDatum” | Geodetic survey data used by the GPS receiver. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE_REF = “GPSDestLatitudeRef” | Whether the latitude of the destination point is north or south latitude. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE = “GPSDestLatitude” | Latitude of the destination point. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE_REF = “GPSDestLongitudeRef” | Whether the longitude of the destination point is east or west longitude. |
static const char *OHOS_IMAGE_PROPERTY_GPS_PROCESSING_METHOD = “GPSProcessingMethod” | String that records the name of the method used for positioning. |
static const char *OHOS_IMAGE_PROPERTY_GPS_AREA_INFORMATION = “GPSAreaInformation” | String that records the name of the GPS area. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DIFFERENTIAL = “GPSDifferential” | Whether differential correction is applied to the GPS receiver. It is critical to accurate location accuracy. |
static const char *OHOS_IMAGE_PROPERTY_BODY_SERIAL_NUMBER = “BodySerialNumber” | Serial number of the camera body. |
static const char *OHOS_IMAGE_PROPERTY_CAMERA_OWNER_NAME = “CameraOwnerName” | Name of the camera owner. |
static const char *OHOS_IMAGE_PROPERTY_COMPOSITE_IMAGE = “CompositeImage” | Whether the image is a composite image. |
static const char *OHOS_IMAGE_PROPERTY_DNG_VERSION = “DNGVersion” | DNG version. It encodes the DNG 4-tier version number. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE = “GPSDestLongitude” | Longitude of the destination point. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING_REF = “GPSDestBearingRef” | Reference of the bearing to the destination point. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING = “GPSDestBearing” | Bearing to the destination point. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE_REF = “GPSDestDistanceRef” | Unit used to express the distance to the destination point. |
static const char *OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE = “GPSDestDistance” | Distance to the destination point. |
static const char *OHOS_IMAGE_PROPERTY_DEFAULT_CROP_SIZE = “DefaultCropSize” | Size of the final image area, in raw image coordinates, taking into account extra pixels around the edges of the final image. |
static const char *OHOS_IMAGE_PROPERTY_GAMMA = “Gamma” | Gamma value. |
static const char *OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEYYY = “ISOSpeedLatitudeyyy” | ISO speed latitude yyy value of the camera or input device, which is defined in ISO 12232. |
static const char *OHOS_IMAGE_PROPERTY_ISO_SPEED_LATITUDEZZZ = “ISOSpeedLatitudezzz” | ISO speed latitude zzz value of the camera or input device, which is defined in ISO 12232. |
static const char *OHOS_IMAGE_PROPERTY_LENS_MAKE = “LensMake” | Manufacturer of the lens. |
static const char *OHOS_IMAGE_PROPERTY_LENS_MODEL = “LensModel” | Model of the lens. |
static const char *OHOS_IMAGE_PROPERTY_LENS_SERIAL_NUMBER = “LensSerialNumber” | Serial number of the lens. |
static const char *OHOS_IMAGE_PROPERTY_LENS_SPECIFICATION = “LensSpecification” | Specifications of the lens. |
static const char *OHOS_IMAGE_PROPERTY_NEW_SUBFILE_TYPE = “NewSubfileType” | Data type of a subfile, such as a full-resolution image, a thumbnail, or a part of a multi-frame image. The value is a bit mask. The value 0 indicates a full-resolution image, 1 indicates a thumbnail, and 2 indicates a part of a multi-frame image. |
static const char *OHOS_IMAGE_PROPERTY_OFFSET_TIME = “OffsetTime” | Time with an offset from UTC when the image was captured, in the format of ±HH:MM. |
static const char *OHOS_IMAGE_PROPERTY_OFFSET_TIME_DIGITIZED = “OffsetTimeDigitized” | Time with an offset from UTC when the image was digitized. It helps to accurately adjust the timestamp. |
static const char *OHOS_IMAGE_PROPERTY_OFFSET_TIME_ORIGINAL = “OffsetTimeOriginal” | Time with an offset from UTC when the original image was created. It is critical for time-sensitive applications. |
static const char *OHOS_IMAGE_PROPERTY_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE = “SourceExposureTimesOfCompositeImage” | Exposure time of source images of the composite image. |
static const char *OHOS_IMAGE_PROPERTY_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE = “SourceImageNumberOfCompositeImage” | Number of source images of the composite image. |
static const char *OHOS_IMAGE_PROPERTY_SUBFILE_TYPE = “SubfileType” | Type of data contained in this subfile. This tag has been deprecated. Use NewSubfileType instead. |
static const char *OHOS_IMAGE_PROPERTY_GPS_H_POSITIONING_ERROR = “GPSHPositioningError” | Horizontal positioning error, in meters. |
static const char *OHOS_IMAGE_PROPERTY_PHOTOGRAPHIC_SENSITIVITY = “PhotographicSensitivity” | Sensitivity of the camera or input device when the image was captured. |
static const char *OHOS_IMAGE_PROPERTY_BURST_NUMBER = “HwMnoteBurstNumber” | Number of burst shooting times. |
static const char *OHOS_IMAGE_PROPERTY_FACE_CONF = “HwMnoteFaceConf” | Face confidence. |
static const char *OHOS_IMAGE_PROPERTY_FACE_LEYE_CENTER = “HwMnoteFaceLeyeCenter” | Left eye centered. It is used in OH_ImageSource_GetImageProperty and OH_ImageSource_ModifyImageProperty. |
static const char *OHOS_IMAGE_PROPERTY_FACE_MOUTH_CENTER = “HwMnoteFaceMouthCenter” | Mouth centered. |
static const char *OHOS_IMAGE_PROPERTY_FACE_POINTER = “HwMnoteFacePointer” | Face pointer. |
static const char *OHOS_IMAGE_PROPERTY_FACE_RECT = “HwMnoteFaceRect” | Face rectangle. |
static const char *OHOS_IMAGE_PROPERTY_FACE_REYE_CENTER = “HwMnoteFaceReyeCenter” | Right eye centered. |
static const char *OHOS_IMAGE_PROPERTY_FACE_SMILE_SCORE = “HwMnoteFaceSmileScore” | Smile score of for faces. |
static const char *OHOS_IMAGE_PROPERTY_FACE_VERSION = “HwMnoteFaceVersion” | Facial recognition algorithm version. |
static const char *OHOS_IMAGE_PROPERTY_FRONT_CAMERA = “HwMnoteFrontCamera” | Whether the front camera is used to take a selfie. |
static const char *OHOS_IMAGE_PROPERTY_SCENE_POINTER = “HwMnoteScenePointer” | Pointer to the scene. |
static const char *OHOS_IMAGE_PROPERTY_SCENE_VERSION = “HwMnoteSceneVersion” | Scene algorithm version. |
static const char *OHOS_IMAGE_PROPERTY_GIF_LOOP_COUNT = “GIFLoopCount” | Number of GIF loops. |
static const char *OHOS_IMAGE_PROPERTY_X_IN_ORIGINAL = “XInOriginal” | X coordinate of the upper left corner of the fragment map in the original image. |
static const char *OHOS_IMAGE_PROPERTY_Y_IN_ORIGINAL = “YInOriginal” | Y coordinate of the upper left corner of the fragment map in the original image. |
static const char *OHOS_IMAGE_PROPERTY_FRAGMENT_WIDTH = “FragmentImageWidth” | Width of the fragment map. |
static const char *OHOS_IMAGE_PROPERTY_FRAGMENT_HEIGHT = “FragmentImageHeight” | Height of the fragment map. |
Functions
Name | Description |
---|---|
Image_ErrorCode OH_PictureMetadata_Create (Image_MetadataType metadataType, OH_PictureMetadata **metadata) | Creates the pointer to an OH_PictureMetadata struct. |
Image_ErrorCode OH_PictureMetadata_GetProperty (OH_PictureMetadata *metadata, Image_String *key, Image_String *value) | Obtains a property of metadata based on the key. |
Image_ErrorCode OH_PictureMetadata_SetProperty (OH_PictureMetadata *metadata, Image_String *key, Image_String *value) | Sets a property of metadata based on the key. |
Image_ErrorCode OH_PictureMetadata_Release (OH_PictureMetadata *metadata) | Releases the pointer to an OH_PictureMetadata struct. |
Image_ErrorCode OH_PictureMetadata_Clone (OH_PictureMetadata *oldMetadata, OH_PictureMetadata **newMetadata) | Clones metadata. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙_image___native_module
harmony 鸿蒙ImageEffect_FilterDelegate
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦