image_common.h

Overview

The file declares the common enums and structs used by the image interface.

File to include: <multimedia/image_framework/image/image_common.h>

Library: libimage_common.so

System capability: SystemCapability.Multimedia.Image.Core

Since: 12

Related module: Image_NativeModule

Summary

Structs

Name typedef Keyword Description
Image_Size Image_Size Describes the image size.
Image_Region Image_Region Describes the region of an image to decode.
Image_PositionArea Image_PositionArea Describes the area of image pixels to be read from or written to.
Image_Scale Image_Scale Describes the image scaling factor.
Image_String Image_String/Image_MimeType Describes an image string.
OH_PictureMetadata OH_PictureMetadata Describes the picture metadata.

Enums

Name typedef Keyword Description
Image_ErrorCode Image_ErrorCode Enumerates the error codes.
Image_MetadataType Image_MetadataType Enumerates the metadata types.
IMAGE_ALLOCATOR_MODE IMAGE_ALLOCATOR_MODE Enumerates the types of memory allocation for a PixelMap.

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. value.data obtained through this API lacks the string terminator \0. Please use it with caution.
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_GetPropertyWithNull(OH_PictureMetadata *metadata, Image_String *key, Image_String *value) Obtains the metadata value of an OH_PictureMetadata instance. The output value.data ends with the string terminator \0.
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.

Variables

Name Description
static const char * MIME_TYPE_BMP = "image/bmp" BMP image format.
Since: 12
static const char * MIME_TYPE_JPEG = "image/jpeg" JPEG image format.
Since: 12
static const char * MIME_TYPE_HEIC = "image/heic" HEIC image format.
Since: 12
static const char * MIME_TYPE_PNG = "image/png" PNG image format.
Since: 12
static const char * MIME_TYPE_WEBP = "image/webp" WebP image format.
Since: 12
static const char * MIME_TYPE_GIF = "image/gif" GIF image format.
Since: 12
static const char * MIME_TYPE_ICON = "image/x-icon" ICO image format.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_BITS_PER_SAMPLE = "BitsPerSample" Number of bits per sample.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_ORIENTATION = "Orientation" Image orientation.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_IMAGE_LENGTH = "ImageLength" Image length.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_IMAGE_WIDTH = "ImageWidth" Image width.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_LATITUDE = "GPSLatitude" Image latitude.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_LONGITUDE = "GPSLongitude" Image longitude.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_LATITUDE_REF = "GPSLatitudeRef" Whether the latitude is north or south latitude.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_LONGITUDE_REF = "GPSLongitudeRef" Whether the longitude is east or west longitude.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_DATE_TIME_ORIGINAL = "DateTimeOriginal" Shooting time, for example, 2022:09:06 15:48:00.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_EXPOSURE_TIME = "ExposureTime" Exposure time, for example, 1/33 seconds.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SCENE_TYPE = "SceneType" Type of the scene, for example, portrait, scenery, motion, and night.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_ISO_SPEED_RATINGS = "ISOSpeedRatings" ISO sensitivity or ISO speed, for example, 400.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_F_NUMBER = "FNumber" F number, for example, f/1.8.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_COMPRESSED_BITS_PER_PIXEL = "CompressedBitsPerPixel" Number of bits per pixel. It is specific to compressed data.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_COMPRESSION = "Compression" Compression scheme used on the image data.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_PHOTOMETRIC_INTERPRETATION = "PhotometricInterpretation" Color space of the image data, for example, RGB or YCbCr.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_STRIP_OFFSETS = "StripOffsets" Byte offset of each strip.
Since: 12
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.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_ROWS_PER_STRIP = "RowsPerStrip" Number of rows per strip.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_STRIP_BYTE_COUNTS = "StripByteCounts" Number of bytes in each strip after compression.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_X_RESOLUTION = "XResolution" Number of pixels per ResolutionUnit in the image width (X) direction.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_Y_RESOLUTION = "YResolution" Number of pixels per ResolutionUnit in the image height (Y) direction.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_PLANAR_CONFIGURATION = "PlanarConfiguration" Storage format of components of each pixel, which can be chunky or planar.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_RESOLUTION_UNIT = "ResolutionUnit" Unit of measurement for XResolution and YResolution.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_TRANSFER_FUNCTION = "TransferFunction" Transfer function for the image, which is usually used for color correction.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SOFTWARE = "Software" Name and version number of the software used to create the image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_ARTIST = "Artist" Person who created the image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_WHITE_POINT = "WhitePoint" Chromaticity of the white point of the image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_PRIMARY_CHROMATICITIES = "PrimaryChromaticities" Chromaticities of the primaries of the image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_YCBCR_COEFFICIENTS = "YCbCrCoefficients" Transformation from RGB to YCbCr image data.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_YCBCR_SUB_SAMPLING = "YCbCrSubSampling" Subsampling factors used for the chrominance components of a YCbCr image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_YCBCR_POSITIONING = "YCbCrPositioning" Positioning of subsampled chrominance components relative to luminance samples.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_REFERENCE_BLACK_WHITE = "ReferenceBlackWhite" A pair of headroom and footroom image data values (codes) for each pixel component.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_COPYRIGHT = "Copyright" Copyright notice of the image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT = "JPEGInterchangeFormat" Offset of the SOI marker of a JPEG interchange format bitstream.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_JPEG_INTERCHANGE_FORMAT_LENGTH = "JPEGInterchangeFormatLength" Number of bytes of the JPEG stream.
Since: 12
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.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SPECTRAL_SENSITIVITY = "SpectralSensitivity" Spectral sensitivity of each channel of the camera.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_OECF = "OECF" Opto-Electric Conversion Function (OECF) specified in ISO 14524.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_EXIF_VERSION = "ExifVersion" Version of the supported Exif standard.
Since: 12
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.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_COMPONENTS_CONFIGURATION = "ComponentsConfiguration" Specific information about compressed data.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SHUTTER_SPEED_VALUE = "ShutterSpeedValue" Shutter speed, expressed in Additive System of Photographic Exposure (APEX) values.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_BRIGHTNESS_VALUE = "BrightnessValue" Value of brightness, expressed in APEX values.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_MAX_APERTURE_VALUE = "MaxApertureValue" Smallest F number of the lens.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE = "SubjectDistance" Distance to the subject, in meters.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBJECT_AREA = "SubjectArea" Location and area of the main subject in the entire scene.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_MAKER_NOTE = "MakerNote" Marker used by Exif/DCF manufacturers to record any required information.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBSEC_TIME = "SubsecTime" Tag used to record fractions of seconds for the DateTime tag.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBSEC_TIME_ORIGINAL = "SubsecTimeOriginal" Tag used to record fractions of seconds for the DateTimeOriginal tag.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBSEC_TIME_DIGITIZED = "SubsecTimeDigitized" Tag used to record fractions of seconds for the DateTimeDigitized tag.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FLASHPIX_VERSION = "FlashpixVersion" FlashPix format version supported by an FPXR file. It is used to enhance device compatibility.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_COLOR_SPACE = "ColorSpace" Color space information, which is usually recorded as a color space specifier.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_RELATED_SOUND_FILE = "RelatedSoundFile" Name of an audio file related to the image data.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FLASH_ENERGY = "FlashEnergy" Strobe energy at the time the image was captured, in Beam Candle Power Seconds (BCPS).
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SPATIAL_FREQUENCY_RESPONSE = "SpatialFrequencyResponse" Spatial frequency table of the camera or input device.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FOCAL_PLANE_X_RESOLUTION = "FocalPlaneXResolution" Number of pixels in the image width (X) direction per FocalPlaneResolutionUnit.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FOCAL_PLANE_Y_RESOLUTION = "FocalPlaneYResolution" Number of pixels in the image height (Y) direction per FocalPlaneResolutionUnit.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FOCAL_PLANE_RESOLUTION_UNIT = "FocalPlaneResolutionUnit" Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBJECT_LOCATION = "SubjectLocation" Location of the main subject relative to the left edge.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_EXPOSURE_INDEX = "ExposureIndex" Exposure index selected at the time the image is captured.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SENSING_METHOD = "SensingMethod" Type of the image sensor on the camera.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FILE_SOURCE = "FileSource" Image source.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_CFA_PATTERN = "CFAPattern" Color Filter Array (CFA) geometric pattern of the image sensor.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_CUSTOM_RENDERED = "CustomRendered" Special processing on image data.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_EXPOSURE_MODE = "ExposureMode" Exposure mode set when the image was captured.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_DIGITAL_ZOOM_RATIO = "DigitalZoomRatio" Digital zoom ratio when the image was captured.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SCENE_CAPTURE_TYPE = "SceneCaptureType" Type of the scene that was captured.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GAIN_CONTROL = "GainControl" Degree of overall image gain adjustment.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_CONTRAST = "Contrast" Direction of contrast processing used by the camera.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SATURATION = "Saturation" Direction of saturation processing used by the camera.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SHARPNESS = "Sharpness" Direction of sharpness processing used by the camera.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_DEVICE_SETTING_DESCRIPTION = "DeviceSettingDescription" Information about the photographing conditions of a specific camera model.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBJECT_DISTANCE_RANGE = "SubjectDistanceRange" Distance to the subject.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_IMAGE_UNIQUE_ID = "ImageUniqueID" Unique identifier assigned to each image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_VERSION_ID = "GPSVersionID" Version of GPSInfoIFD.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_ALTITUDE_REF = "GPSAltitudeRef" Whether the latitude is north or south latitude.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_ALTITUDE = "GPSAltitude" Altitude based on the reference in GPSAltitudeRef.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_SATELLITES = "GPSSatellites" GPS satellites used for measurement.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_STATUS = "GPSStatus" Status of the GPS receiver when the image was recorded.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_MEASURE_MODE = "GPSMeasureMode" GPS measurement pmode.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DOP = "GPSDOP" GPS DOP (data degree of precision)
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_SPEED_REF = "GPSSpeedRef" Unit used to express the movement speed of the GPS receiver.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_SPEED = "GPSSpeed" Movement speed of the GPS receiver.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_TRACK_REF = "GPSTrackRef" Reference of the movement direction of the GPS receiver.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_TRACK = "GPSTrack" Movement direction of the GPS receiver.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION_REF = "GPSImgDirectionRef" Reference of the direction of the image when it was captured.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_IMG_DIRECTION = "GPSImgDirection" Direction of the image when it was captured.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_MAP_DATUM = "GPSMapDatum" Geodetic survey data used by the GPS receiver.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE_REF = "GPSDestLatitudeRef" Whether the latitude of the destination point is north or south latitude.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_LATITUDE = "GPSDestLatitude" Latitude of the destination point.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE_REF = "GPSDestLongitudeRef" Whether the longitude of the destination point is east or west longitude.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_PROCESSING_METHOD = "GPSProcessingMethod" String that records the name of the method used for positioning.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_AREA_INFORMATION = "GPSAreaInformation" String that records the name of the GPS area.
Since: 12
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.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_BODY_SERIAL_NUMBER = "BodySerialNumber" Serial number of the camera body.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_CAMERA_OWNER_NAME = "CameraOwnerName" Name of the camera owner.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_COMPOSITE_IMAGE = "CompositeImage" Whether the image is a composite image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_DNG_VERSION = "DNGVersion" DNG version. It encodes the DNG 4-tier version number.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_LONGITUDE = "GPSDestLongitude" Longitude of the destination point.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING_REF = "GPSDestBearingRef" Reference of the bearing to the destination point.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_BEARING = "GPSDestBearing" Bearing to the destination point.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE_REF = "GPSDestDistanceRef" Unit used to express the distance to the destination point.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_DEST_DISTANCE = "GPSDestDistance" Distance to the destination point.
Since: 12
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.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GAMMA = "Gamma" Gamma value.
Since: 12
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.
Since: 12
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.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_LENS_MAKE = "LensMake" Manufacturer of the lens.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_LENS_MODEL = "LensModel" Model of the lens.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_LENS_SERIAL_NUMBER = "LensSerialNumber" Serial number of the lens.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_LENS_SPECIFICATION = "LensSpecification" Specifications of the lens.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_NEW_SUBFILE_TYPE = "NewSubfileType" In the Exif, the NewSubfileType field is used to identify the data type of a subfile, for example, full-resolution image, thumbnail, or 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.
Since: 12
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.
Since: 12
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.
Since: 12
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.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE = "SourceExposureTimesOfCompositeImage" Exposure time of source images of the composite image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE = "SourceImageNumberOfCompositeImage" Number of source images of the composite image.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SUBFILE_TYPE = "SubfileType" Type of data contained in this subfile. This tag has been deprecated. Use NewSubfileType instead.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GPS_H_POSITIONING_ERROR = "GPSHPositioningError" Horizontal positioning error, in meters.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_PHOTOGRAPHIC_SENSITIVITY = "PhotographicSensitivity" Sensitivity of the camera or input device when the image was captured.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_BURST_NUMBER = "HwMnoteBurstNumber" Number of burst shooting times.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_CONF = "HwMnoteFaceConf" Face confidence.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_LEYE_CENTER = "HwMnoteFaceLeyeCenter" Left eye centered.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_MOUTH_CENTER = "HwMnoteFaceMouthCenter" Mouth centered.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_POINTER = "HwMnoteFacePointer" Face pointer.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_RECT = "HwMnoteFaceRect" Face rectangle.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_REYE_CENTER = "HwMnoteFaceReyeCenter" Right eye centered.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_SMILE_SCORE = "HwMnoteFaceSmileScore" Smile score of for faces.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FACE_VERSION = "HwMnoteFaceVersion" Facial recognition algorithm version.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_FRONT_CAMERA = "HwMnoteFrontCamera" Whether the front camera is used to take a selfie.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SCENE_POINTER = "HwMnoteScenePointer" Pointer to the scene.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_SCENE_VERSION = "HwMnoteSceneVersion" Scene algorithm version.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_IS_XMAGE_SUPPORTED = "HwMnoteIsXmageSupported" Whether XMAGE is supported.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_XMAGE_MODE = "HwMnoteXmageMode" XMAGE watermark mode.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_XMAGE_LEFT = "HwMnoteXmageLeft" X1 coordinate of the watermark region.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_XMAGE_TOP = "HwMnoteXmageTop" Y1 coordinate of the watermark region.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_XMAGE_RIGHT = "HwMnoteXmageRight" X2 coordinate of the watermark region.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_XMAGE_BOTTOM = "HwMnoteXmageBottom" Y2 coordinate of the watermark region.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_CLOUD_ENHANCEMENT_MODE = "HwMnoteCloudEnhancementMode" Cloud enhancement mode.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_WIND_SNAPSHOT_MODE = "HwMnoteWindSnapshotMode" Motion snapshot mode.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_GIF_LOOP_COUNT = "GIFLoopCount" Number of GIF loops.
Since: 12
static const char * OHOS_IMAGE_PROPERTY_X_IN_ORIGINAL = "XInOriginal" X coordinate of the top-left corner of the fragment map in the original image.
Since: 13
static const char * OHOS_IMAGE_PROPERTY_Y_IN_ORIGINAL = "YInOriginal" Y coordinate of the top-left corner of the fragment map in the original image.
Since: 13
static const char * OHOS_IMAGE_PROPERTY_FRAGMENT_WIDTH = "FragmentImageWidth" Width of the fragment map.
Since: 13
static const char * OHOS_IMAGE_PROPERTY_FRAGMENT_HEIGHT = "FragmentImageHeight" Height of the fragment map.
Since: 13
static const char * IMAGE_PROPERTY_GIF_DELAY_TIME = "GifDelayTime" Duration for playing each frame of a GIF image, in milliseconds.
Since: 20
static const char * IMAGE_PROPERTY_GIF_DISPOSAL_TYPE = "GifDisposalType" Disposal type of each frame in a GIF image.
Since: 20
static const char * OHOS_DNG_PROPERTY_DNG_VERSION = "DNGVersion" DNG version number. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_DNG_BACKWARD_VERSION = "DNGBackwardVersion" DNG backward-compatible version number. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_UNIQUE_CAMERA_MODEL = "UniqueCameraModel" Unique camera model ID. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_LOCALIZED_CAMERA_MODEL = "LocalizedCameraModel" Localized camera model. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CFA_PLANE_COLOR = "CFAPlaneColor" CFA plan color. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CFA_LAYOUT = "CFALayout" CFA layout. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort and OH_ImageSourceNative_GetImagePropertyLong together.
Since: 24
static const char * OHOS_DNG_PROPERTY_LINEARIZATION_TABLE = "LinearizationTable" Linearization table. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_BLACK_LEVEL_REPEAT_DIM = "BlackLevelRepeatDim" Black level repetition dimension. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_BLACK_LEVEL = "BlackLevel" Black level at zero illumination. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_BLACK_LEVEL_DELTA_H = "BlackLevelDeltaH" Horizontal black level correction increment. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_BLACK_LEVEL_DELTA_V = "BlackLevelDeltaV" Vertical black level correction increment. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_WHITE_LEVEL = "WhiteLevel" White level. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_DEFAULT_SCALE = "DefaultScale" Default scaling ratio. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_DEFAULT_CROP_ORIGIN = "DefaultCropOrigin" Default crop origin. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_DEFAULT_CROP_SIZE = "DefaultCropSize" Default crop dimensions. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_COLOR_MATRIX1 = "ColorMatrix1" Transformation matrix under the first calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArray and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_COLOR_MATRIX2 = "ColorMatrix2" Transformation matrix under the second calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CAMERA_CALIBRATION1 = "CameraCalibration1" Calibration matrix under the first calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CAMERA_CALIBRATION2 = "CameraCalibration2" Calibration matrix under the second calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_REDUCTION_MATRIX1 = "ReductionMatrix1" Dimension reduction matrix under the first calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_REDUCTION_MATRIX2 = "ReductionMatrix2" Dimension reduction matrix under the second calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ANALOG_BALANCE = "AnalogBalance" Analog balance. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_AS_SHOT_NEUTRAL = "AsShotNeutral" Neutral color at capture. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_AS_SHOT_WHITEXY = "AsShotWhiteXY" CIE (1931 color space) x-y chromaticity coordinates of the white point at capture. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_BASELINE_EXPOSURE = "BaselineExposure" Baseline exposure. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_BASELINE_NOISE = "BaselineNoise" Baseline noise. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_BASELINE_SHARPNESS = "BaselineSharpness" Baseline sharpness. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_BAYER_GREEN_SPLIT = "BayerGreenSplit" Separation degree of the two green channels in a Bayer image. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort.
Since: 24
static const char * OHOS_DNG_PROPERTY_LINEAR_RESPONSE_LIMIT = "LinearResponseLimit" Linear response limit. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CAMERA_SERIAL_NUMBER = "CameraSerialNumber" Camera serial number. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_LENS_INFO = "LensInfo" Lens information. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CHROMA_BLUR_RADIUS = "ChromaBlurRadius" Chrominance blur radius, in pixels. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_ANTI_ALIAS_STRENGTH = "AntiAliasStrength" Anti-aliasing strength. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_SHADOW_SCALE = "ShadowScale" Shadow scaling. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_DNG_PRIVATE_DATA = "DNGPrivateData" Private data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyBlob together.
Since: 24
static const char * OHOS_DNG_PROPERTY_MAKER_NOTE_SAFETY = "MakerNoteSafety" Whether the EXIF MakerNote tag is secure. The value 1 indicates yes, and the value 0 indicates no. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort and OH_ImageSourceNative_GetImagePropertyLong together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CALIBRATION_ILLUMINANT1 = "CalibrationIlluminant1" First calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort and OH_ImageSourceNative_GetImagePropertyLong together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CALIBRATION_ILLUMINANT2 = "CalibrationIlluminant2" Second calibration illuminant. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort and OH_ImageSourceNative_GetImagePropertyLong together.
Since: 24
static const char * OHOS_DNG_PROPERTY_BEST_QUALITY_SCALE = "BestQualityScale" Scaling for the optimal quality. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_RAW_DATA_UNIQUE_ID = "RawDataUniqueID" Unique ID of the raw image data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ORIGINAL_RAW_FILE_NAME = "OriginalRawFileName" Original raw file name. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ORIGINAL_RAW_FILE_DATA = "OriginalRawFileData" Original raw file data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyBlob together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ACTIVE_AREA = "ActiveArea" Active area. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_MASKED_AREAS = "MaskedAreas" Masked area. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_AS_SHOT_ICC_PROFILE = "AsShotICCProfile" ICC profile. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyBlob together.
Since: 24
static const char * OHOS_DNG_PROPERTY_AS_SHOT_PRE_PROFILE_MATRIX = "AsShotPreProfileMatrix" Pre-profile matrix at capture. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CURRENT_ICC_PROFILE = "CurrentICCProfile" Current ICC profile. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyBlob together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CURRENT_PRE_PROFILE_MATRIX = "CurrentPreProfileMatrix" Current pre-profile matrix. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_COLORIMETRIC_REFERENCE = "ColorimetricReference" Chromaticity reference. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort and OH_ImageSourceNative_GetImagePropertyLong together.
Since: 24
static const char * OHOS_DNG_PROPERTY_CAMERA_CALIBRATION_SIGNATURE = "CameraCalibrationSignature" Camera calibration signature. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_CALIBRATION_SIGNATURE = "ProfileCalibrationSignature" Profile calibration signature. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_EXTRA_CAMERA_PROFILES = "ExtraCameraProfiles" Additional camera profile. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_AS_SHOT_PROFILE_NAME = "AsShotProfileName" Name of the profile used at capture. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_NOISE_REDUCTION_APPLIED = "NoiseReductionApplied" Amount of noise reduction applied. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_NAME = "ProfileName" Profile name. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_HUE_SAT_MAP_DIMS = "ProfileHueSatMapDims" Hue/Saturation mapping dimensions in the profile. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_HUE_SAT_MAP_DATA1 = "ProfileHueSatMapData1" First set of hue/saturation mapping table data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_HUE_SAT_MAP_DATA2 = "ProfileHueSatMapData2" Second set of hue/saturation mapping table data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_TONE_CURVE = "ProfileToneCurve" Tone curve of the profile. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_EMBED_POLICY = "ProfileEmbedPolicy" Profile embedding policy. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_COPYRIGHT = "ProfileCopyright" Profile copyright. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_FORWARD_MATRIX1 = "ForwardMatrix1" First forward matrix. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_FORWARD_MATRIX2 = "ForwardMatrix2" Second forward matrix. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PREVIEW_APPLICATION_NAME = "PreviewApplicationName" Name of the preview application. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PREVIEW_APPLICATION_VERSION = "PreviewApplicationVersion" Version of the preview application. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PREVIEW_SETTINGS_NAME = "PreviewSettingsName" Name of the preview configuration. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PREVIEW_SETTINGS_DIGEST = "PreviewSettingsDigest" Digest of the preview configuration. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PREVIEW_COLOR_SPACE = "PreviewColorSpace" Color space of the preview. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort.
Since: 24
static const char * OHOS_DNG_PROPERTY_PREVIEW_DATE_TIME = "PreviewDateTime" Data and time of the preview. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_RAW_IMAGE_DIGEST = "RawImageDigest" MD5 digest of the raw image data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ORIGINAL_RAW_FILE_DIGEST = "OriginalRawFileDigest" MD5 digest of the data stored in OriginalRawFileData. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_SUB_TILE_BLOCK_SIZE = "SubTileBlockSize" Sub-tile size. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ROW_INTERLEAVE_FACTOR = "RowInterleaveFactor" Row interleaving factor. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort and OH_ImageSourceNative_GetImagePropertyLong together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_LOOK_TABLE_DIMS = "ProfileLookTableDims" Profile lookup table dimensions. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_LOOK_TABLE_DATA = "ProfileLookTableData" Profile lookup table data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_OPCODE_LIST1 = "OpcodeList1" First operation code list. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyBlob together.
Since: 24
static const char * OHOS_DNG_PROPERTY_OPCODE_LIST2 = "OpcodeList2" Second operation code list. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyBlob together.
Since: 24
static const char * OHOS_DNG_PROPERTY_OPCODE_LIST3 = "OpcodeList3" Third operation code list. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyBlob together.
Since: 24
static const char * OHOS_DNG_PROPERTY_NOISE_PROFILE = "NoiseProfile" Noise profile. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ORIGINAL_DEFAULT_FINAL_SIZE = "OriginalDefaultFinalSize" Original default final dimensions. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ORIGINAL_BEST_QUALITY_FINAL_SIZE = "OriginalBestQualityFinalSize" Original final dimensions for optimal quality. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_ORIGINAL_DEFAULT_CROP_SIZE = "OriginalDefaultCropSize" Original default crop dimensions. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyDoubleArray together.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_HUE_SAT_MAP_ENCODING = "ProfileHueSatMapEncoding" Hue/Saturation mapping encoding in the profile. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort.
Since: 24
static const char * OHOS_DNG_PROPERTY_PROFILE_LOOK_TABLE_ENCODING = "ProfileLookTableEncoding" Profile lookup table encoding. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort.
Since: 24
static const char * OHOS_DNG_PROPERTY_BASELINE_EXPOSURE_OFFSET = "BaselineExposureOffset" Baseline exposure offset. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_DEFAULT_BLACK_RENDER = "DefaultBlackRender" Default black rendering. The value can be obtained via OH_ImageSourceNative_GetImagePropertyShort.
Since: 24
static const char * OHOS_DNG_PROPERTY_NEW_RAW_IMAGE_DIGEST = "NewRawImageDigest" MD5 digest of the update raw image data. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyString together.
Since: 24
static const char * OHOS_DNG_PROPERTY_RAW_TO_PREVIEW_GAIN = "RawToPreviewGain" Gain between the main raw Image File Directory (IFD) and the preview IFD. The value can be obtained via OH_ImageSourceNative_GetImagePropertyDouble.
Since: 24
static const char * OHOS_DNG_PROPERTY_DEFAULT_USER_CROP = "DefaultUserCrop" Default user crop. The value can be obtained via OH_ImageSourceNative_GetImagePropertyArraySize and OH_ImageSourceNative_GetImagePropertyIntArray together.
Since: 24

Enum Description

Image_ErrorCode

enum Image_ErrorCode

Description

Enumerates the error codes.

Since: 12

Enum Item Description
IMAGE_SUCCESS = 0 Operation successful.
IMAGE_BAD_PARAMETER = 401 Invalid parameter.
IMAGE_UNSUPPORTED_MIME_TYPE = 7600101 Unsupported MIME type.
IMAGE_UNKNOWN_MIME_TYPE = 7600102 Unknown MIME type.
IMAGE_TOO_LARGE = 7600103 The data or image is too large.
IMAGE_GET_IMAGE_DATA_FAILED = 7600104 Failed to obtain image data.
Since: 23
IMAGE_DMA_NOT_EXIST = 7600173 The memory is not the DMA memory.
IMAGE_DMA_OPERATION_FAILED = 7600174 The operation on the DMA memory fails.
IMAGE_UNSUPPORTED_OPERATION = 7600201 Unsupported operation.
IMAGE_UNSUPPORTED_METADATA = 7600202 Unsupported metadata.
IMAGE_UNSUPPORTED_CONVERSION = 7600203 Unsupported conversion.
IMAGE_INVALID_REGION = 7600204 Invalid region.
IMAGE_UNSUPPORTED_MEMORY_FORMAT = 7600205 The memory format is not supported.
Since: 13
IMAGE_INVALID_PARAMETER = 7600206 Invalid parameter.
Since: 19
IMAGE_UNSUPPORTED_DATA_FORMAT = 7600207 Unsupported data format.
Since: 22
IMAGE_ALLOC_FAILED = 7600301 Failed to allocate the memory.
IMAGE_COPY_FAILED = 7600302 Failed to copy the memory.
IMAGE_LOCK_UNLOCK_FAILED = 7600303 Failed to lock or unlock the memory.
Since: 15
IMAGE_INIT_FAILED = 7600304 Initialization failed.
Since: 22
IMAGE_CREATE_PIXELMAP_FAILED = 7600305 Failed to create the PixelMap.
Since: 22
IMAGE_ALLOCATOR_MODE_UNSUPPORTED = 7600501 The memory allocator type is not supported, for example, creating HDR images using shared memory.
DMA memory supports HDR metadata.
Since: 20
IMAGE_UNKNOWN_ERROR = 7600901 Unknown error.
IMAGE_BAD_SOURCE = 7700101 Abnormal data source.
IMAGE_SOURCE_UNSUPPORTED_MIME_TYPE = 7700102 Unsupported MIME type during image decoding.
Since: 15
IMAGE_SOURCE_TOO_LARGE = 7700103 The image is too large.
Since: 15
IMAGE_SOURCE_UNSUPPORTED_ALLOCATOR_TYPE = 7700201 The allocator type is not supported. For example, decoding HDR images using shared memory is unsupported because only DMA supports HDR metadata.
Since: 15
IMAGE_SOURCE_UNSUPPORTED_METADATA = 7700202 Unsupported metadata type. For example, the property name is not supported or the property value is invalid.
Since: 23
IMAGE_SOURCE_UNSUPPORTED_OPTIONS = 7700203 Unsupported options. For example, an image cannot be converted into the required pixel format.
Since: 15
IMAGE_SOURCE_INVALID_PARAMETER = 7700204 Invalid ImageSource parameter.
Since: 19
IMAGE_DECODE_FAILED = 7700301 Decoding failed.
IMAGE_SOURCE_ALLOC_FAILED = 7700302 Memory allocation failed.
Since: 15
IMAGE_PACKER_INVALID_PARAMETER = 7800202 Invalid ImagePacker parameter.
Since: 19
IMAGE_ENCODE_FAILED = 7800301 Encoding failed.
IMAGE_RECEIVER_INVALID_PARAMETER = 7900201 Invalid ImageReceiver parameter.
Since: 20

Image_MetadataType

enum Image_MetadataType

Description

Enumerates the metadata types.

Since: 13

Enum Item Description
EXIF_METADATA = 1 Exif metadata.
FRAGMENT_METADATA = 2 Fragment map metadata.
GIF_METADATA = 5 GIF image metadata.
Since: 20

IMAGE_ALLOCATOR_MODE

enum IMAGE_ALLOCATOR_MODE

Description

Enumerates the types of memory allocation for a PixelMap.

Since: 20

Enum Item Description
IMAGE_ALLOCATOR_MODE_AUTO = 0 The system determines the type of memory to allocate when creating a PixelMap.
IMAGE_ALLOCATOR_MODE_DMA = 1 Allocates a DMA-type memory buffer.
IMAGE_ALLOCATOR_MODE_SHARED_MEMORY = 2 Uses shared memory to create a PixelMap.

Function Description

OH_PictureMetadata_Create()

Image_ErrorCode OH_PictureMetadata_Create(Image_MetadataType metadataType, OH_PictureMetadata **metadata)

Description

Creates the pointer to an OH_PictureMetadata struct.

Since: 13

Parameters

Name Description
Image_MetadataType metadataType Metadata type.
OH_PictureMetadata **metadata Double pointer to the OH_PictureMetadata struct created.

Returns

Type Description
Image_ErrorCode IMAGE_SUCCESS: The operation is successful.
IMAGE_BAD_PARAMETER: A parameter is incorrect.

OH_PictureMetadata_GetProperty()

Image_ErrorCode OH_PictureMetadata_GetProperty(OH_PictureMetadata *metadata, Image_String *key, Image_String *value)

Description

Obtains a property of metadata based on the key. value.data obtained through this API lacks the string terminator \0. Please use it with caution.

Since: 13

Parameters

Name Description
OH_PictureMetadata *metadata Pointer to an OH_PictureMetadata struct.
Image_String *key Pointer to the key of the property.
Image_String *value Pointer to the value of the property.

Returns

Type Description
Image_ErrorCode IMAGE_SUCCESS: The operation is successful.
IMAGE_BAD_PARAMETER: A parameter is incorrect.
IMAGE_UNSUPPORTED_METADATA: The metadata type is not supported, or the metadata type and the auxiliary picture type do not match.

OH_PictureMetadata_SetProperty()

Image_ErrorCode OH_PictureMetadata_SetProperty(OH_PictureMetadata *metadata, Image_String *key, Image_String *value)

Description

Sets a property of metadata based on the key.

Since: 13

Parameters

Name Description
OH_PictureMetadata *metadata Pointer to an OH_PictureMetadata struct.
Image_String *key Pointer to the key of the property.
Image_String *value Pointer to the value of the property.

Returns

Type Description
Image_ErrorCode IMAGE_SUCCESS: The operation is successful.
IMAGE_BAD_PARAMETER: A parameter is incorrect.
IMAGE_UNSUPPORTED_METADATA: The metadata type is not supported, or the metadata type and the auxiliary picture type do not match.

OH_PictureMetadata_GetPropertyWithNull()

Image_ErrorCode OH_PictureMetadata_GetPropertyWithNull(OH_PictureMetadata *metadata, Image_String *key, Image_String *value)

Description

Obtains the metadata value of an OH_PictureMetadata instance. The output value.data ends with the string terminator \0.

Since: 19

Parameters

Name Description
OH_PictureMetadata *metadata Pointer to an OH_PictureMetadata struct.
Image_String *key Pointer to the key of the property.
Image_String *value Pointer to the value of the property.

Returns

Type Description
Image_ErrorCode IMAGE_SUCCESS: The operation is successful.
IMAGE_INVALID_PARAMETER: The metadata, key, or value parameter is a null pointer.
IMAGE_UNSUPPORTED_METADATA: The metadata type is not supported, or the metadata type and the auxiliary picture type do not match.

OH_PictureMetadata_Release()

Image_ErrorCode OH_PictureMetadata_Release(OH_PictureMetadata *metadata)

Description

Releases the pointer to an OH_PictureMetadata struct.

Since: 13

Parameters

Name Description
OH_PictureMetadata *metadata Pointer to an OH_PictureMetadata struct.

Returns

Type Description
Image_ErrorCode IMAGE_SUCCESS: The operation is successful.
IMAGE_BAD_PARAMETER: A parameter is incorrect.

OH_PictureMetadata_Clone()

Image_ErrorCode OH_PictureMetadata_Clone(OH_PictureMetadata *oldMetadata, OH_PictureMetadata **newMetadata)

Description

Clones metadata.

Since: 13

Parameters

Name Description
OH_PictureMetadata *oldMetadata Pointer to an OH_PictureMetadata struct.
OH_PictureMetadata **newMetadata Double pointer to the OH_PictureMetadata struct obtained.

Returns

Type Description
Image_ErrorCode IMAGE_SUCCESS: The operation is successful.
IMAGE_BAD_PARAMETER: A parameter is incorrect.
IMAGE_ALLOC_FAILED: The memory allocation fails.
IMAGE_COPY_FAILED: The memory copy fails.