openharmony 鸿蒙 capi-photo-native-h

2026-08-25 浏览 (1)

photo_native.h

Overview

The file declares the camera photo concepts.

File to include: <ohcamera/photo_native.h>

Library: libohcamera.so

System capability: SystemCapability.Multimedia.Camera.Core

Since: 12

Related module: OH_Camera

Summary

Structs

Nametypedef KeywordDescription
OH_PhotoNativeOH_PhotoNativeDescribes the photo object, which is a full-quality image object.

Functions

NameDescription
Camera_ErrorCode OH_PhotoNative_GetMainImage(OH_PhotoNative* photo, OH_ImageNative** mainImage)Obtains a full-quality image.
Camera_ErrorCode OH_PhotoNative_GetUncompressedImage(OH_PhotoNative* photo, OH_PictureNative** picture)Obtains an uncompressed image.
Camera_ErrorCode OH_PhotoNative_Release(OH_PhotoNative* photo)Releases a full-quality image.

Function Description

OH_PhotoNative_GetMainImage()

Camera_ErrorCode OH_PhotoNative_GetMainImage(OH_PhotoNative* photo, OH_ImageNative** mainImage)

Description

Obtains a full-quality image.

Since: 12

Parameters

NameDescription
OH_PhotoNative* photoPointer to an OH_PhotoNative instance.
OH_ImageNative** mainImageDouble pointer to the full-quality image, which is an OH_ImageNative instance.

Returns

TypeDescription
Camera_ErrorCodeCAMERA_OK: The operation is successful.
CAMERA_INVALID_ARGUMENT: A parameter is missing or the parameter type is incorrect.

OH_PhotoNative_GetUncompressedImage()

Camera_ErrorCode OH_PhotoNative_GetUncompressedImage(OH_PhotoNative* photo, OH_PictureNative** picture)

Description

Obtains an uncompressed image.

Since: 23

Parameters

NameDescription
OH_PhotoNative* photoPointer to an OH_PhotoNative instance.
OH_PictureNative** pictureDouble pointer to the uncompressed image, which is an OH_PictureNative instance.

Returns

TypeDescription
Camera_ErrorCodeCAMERA_OK: The operation is successful.
CAMERA_INVALID_ARGUMENT: A parameter is missing or the parameter type is incorrect.

OH_PhotoNative_Release()

Camera_ErrorCode OH_PhotoNative_Release(OH_PhotoNative* photo)

Description

Releases a full-quality image.

Since: 12

Parameters

NameDescription
OH_PhotoNative* photoPointer to the OH_PhotoNative instance to release.

Returns

TypeDescription
Camera_ErrorCodeCAMERA_OK: The operation is successful.
CAMERA_INVALID_ARGUMENT: A parameter is missing or the parameter type is incorrect.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-oh-camera-capturesession-callbacks

openharmony 鸿蒙 arkts-apis-camera-OIS

openharmony 鸿蒙 capi-oh-camera-camera-devicequeryinfo

openharmony 鸿蒙 capi-oh-camera-camera-frameraterange

openharmony 鸿蒙 capi-oh-camera-camera-outputcapability

openharmony 鸿蒙 arkts-apis-camera-Photo

openharmony 鸿蒙 capi-oh-camera-camera-profile

openharmony 鸿蒙 capi-oh-camera-camera-manager

openharmony 鸿蒙 capi-oh-camera-previewoutput-callbacks

openharmony 鸿蒙 arkts-apis-camera-ManualExposureQuery

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