Home
last modified time | relevance | path

Searched refs:photo (Results 1 – 25 of 219) sorted by relevance

123456789

/ohos5.0/docs/en/application-dev/media/camera/
H A Dcamera-shooting.md19 2. Create a photo output stream.
55 if (errCode || photo === undefined) {
59 let imageObj: image.Image = photo.main;
156 5. Trigger photo capture.
158 …ss to capture a photo. In this API, the first parameter specifies the settings (for example, photo
167 location: captureLocation, // Set the geolocation information of the photo.
172 console.error(`Failed to capture the photo. error: ${JSON.stringify(err)}`);
182 …tatus of the photo output stream, including the start of the photo stream, the start and end of th…
205 console.info(`photo capture end, captureId : ${captureEndInfo.captureId}`);
211photo capture. This event can be registered when a **PhotoOutput** instance is created and is trig…
[all …]
H A Dcamera-deferred-capture.md3 …s an important feature of the camera, deferred photo delivery enables the system, after receiving …
9 To develop deferred photo delivery, perform the following steps:
16 > - Deferred photo delivery varies according to the device and type. Therefore, if the device or ty…
17photo delivery. Instead, the camera framework checks whether the device and type support deferred
32 2. Determine the photo output stream.
121 4. The session configuration and photo capture triggering mode are the same as those in the common
125 … status of the photo output stream, including the start of the photo stream, the start and end of …
135 console.info(`photo capture started, captureId : ${captureStartInfo.captureId}`);
148 console.info(`photo capture end, captureId : ${captureEndInfo.captureId}`);
154photo capture. This event can be registered when a PhotoOutput instance is created and is triggere…
[all …]
H A Dcamera-deferred-photo.md5 To develop high-performance photo capture, perform the following steps:
7 - Check whether the device supports deferred photo delivery of a certain type.
8 - Enable deferred photo delivery (if supported).
13 …d photo delivery varies according to the device and type. Therefore, if the device or type is chan…
14 …- Deferred photo delivery must be enabled during the stream configuration. After the stream config…
31 2. Determine the photo output stream.
33photo output streams supported by the device and use [createPhotoOutput](../../reference/apis-came…
53 3. Check whether the device supports deferred photo delivery of a certain type.
66 4. Enable deferred photo delivery.
74 5. Check whether deferred photo delivery is enabled.
[all …]
H A Dcamera-moving-photo.md3 … this capability, users can take a moving photo in one-click mode, in a way similar to taking an o…
5 To develop the moving photo feature, perform the following steps:
9 - Listen for the photo callback function and save the photo to the media library. For details, see …
17 > - Before enabling the capability of taking moving photos, you must enable [deferred photo deliver…
18 …ent Preparations](camera-preparation.md). Otherwise, there is no sound when a photo is being taken.
28 2. Determine the photo output stream.
30photo output streams supported by the device and use [createPhotoOutput](../../reference/apis-came…
84 5. Trigger photo capture. This procedure is the same as that in the common photo capture mode. For …
H A Dnative-camera-session-management.md3 Before using the camera application for preview, photo capture, video recording, and metadata manag…
7 - Configure the camera input and output streams. This is mandatory for photo capture.
9photo capture. Configuring an output stream is to select a data output mode. For example, to imple…
13 …put streams. For example, to switch from photo capture to video recording, the application must re…
71 …ng the preview stream **previewOutput** and photo stream **photoOutput** as an example to implemen…
88 // Add the photo output stream to the session.
107 …s removing the photo stream **photoOutput** and adding the video stream **videoOutput** as an exam…
120 // Remove the photo output stream from the session.
H A Dcamera-session-management.md3 Before using the camera application for preview, photo capture, video recording, and metadata manag…
7 - Configure the camera input and output streams. This is mandatory for photo capture.
9photo capture. Configuring an output stream is to select a data output mode. For example, to imple…
13 …put streams. For example, to switch from photo capture to video recording, the application must re…
53 …ng the preview stream **previewOutput** and photo stream **photoOutput** as an example to implemen…
91 …s removing the photo stream **photoOutput** and adding the video stream **videoOutput** as an exam…
108 // Remove the photo output stream from the session.
H A Dcamera-deferred-photo-case.md13 ![deferred-photo-development-process](figures/deferred-photo-development-process.png)
129 console.error('photo mode not support');
165 // Create a photo output stream.
216 // Add the photo output stream to the session.
231 // Release the photo object after the flushing is complete.
254 // Check whether deferred photo delivery is supported.
258 // Enable deferred photo delivery.
260 // Check whether deferred photo delivery is enabled.
345 // Use the current photo capture settings to take photos.
348 console.error(`Failed to capture the photo ${err.message}`);
[all …]
H A Dcamera-shooting-case.md37 if (errCode || photo === undefined) {
41 let imageObj = photo.main;
120 console.error('photo mode not support');
157 // Create a photo output stream.
212 // Add the photo output stream to the session.
297 quality: camera.QualityLevel.QUALITY_LEVEL_HIGH, // Set the photo quality to high.
300 // Use the current photo capture settings to take photos.
303 console.error(`Failed to capture the photo ${err.message}`);
306 console.info('Callback invoked to indicate the photo capture request success.');
309 …er the photo capture is complete, call the following APIs to close the camera and release the sess…
[all …]
H A Dnative-camera-shooting.md43 4. Select the output stream capability supported by the camera device and create a photo output str…
73 // Create a photo output stream without passing a surface ID.
81 …ne-time photo capture callback, which is defined as **PhotoAvailable**. If your application requir…
109 // One-time photo capture callback.
110 void OnPhotoAvailable(Camera_PhotoOutput *photoOutput, OH_PhotoNative *photo) {
113 Camera_ErrorCode errCode = OH_PhotoNative_GetMainImage(photo, &imageNative);
392 // Call the NDK API to take a photo and trigger the PhotoAvailable callback.
419 // Set the session mode to the photo mode.
426 7. (Optional) Set photo capture parameters.
518 8. Trigger photo capture.
[all …]
H A Dcamera-deferred-capture-case.md11 After obtaining the output stream capabilities supported by the camera, create a photo stream. The …
130 console.error('photo mode not support');
167 // Create a photo output stream.
222 // Add the photo output stream to the session.
307 quality: camera.QualityLevel.QUALITY_LEVEL_HIGH, // Set the photo quality to high.
308 rotation: camera.ImageRotation.ROTATION_0 // Set the rotation angle of the photo to 0.
310 // Use the current photo capture settings to take photos.
313 console.error(`Failed to capture the photo ${err.message}`);
316 console.info('Callback invoked to indicate the photo capture request success.');
319 …er the photo capture is complete, call the following APIs to close the camera and release the sess…
[all …]
/ohos5.0/docs/en/application-dev/media/medialibrary/
H A DphotoAccessHelper-movingphoto.md3 A moving photo is a photo form that combines an image and a video, empowering a static image with d…
7 - [Saves Moving Photo Assets using SaveButton](#saves-moving-photo-assets)
8 - [Obtaining a Moving Photo Object](#obtaining-a-moving-photo-object)
10 - [Reading Moving Photo Assets](#reading-moving-photo-assets)
75 console.error('SaveButtonOnClickResult create moving photo failed');
88 - Use **Picker** to obtain a moving photo object from the media library.
108 // Use Picker to select the URI of the moving photo.
116 // Obtain the photo asset corresponding to the URI.
125 // Obtain the moving photo object corresponding to the photo asset.
131 // Customize the logic for processing the moving photo.
[all …]
H A Dmovingphotoview-guidelines.md24 …* APIs to create or obtain a moving photo object. The **MovingPhotoView** receives only the constr…
26 …For details about how to create and obtain a moving photo object, see [Accessing and Managing Movi…
32 …toviewcontroller) to control the playback status (such as playing or stopping) of the moving photo.
109 ![](figures/moving-photo-view.gif)
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/
H A Dphoto_native.cpp25 Camera_ErrorCode OH_PhotoNative_GetMainImage(OH_PhotoNative* photo, OH_ImageNative** mainImage) in OH_PhotoNative_GetMainImage() argument
27 CHECK_AND_RETURN_RET_LOG(photo != nullptr, CAMERA_INVALID_ARGUMENT, in OH_PhotoNative_GetMainImage()
31 return photo->GetMainImage(mainImage); in OH_PhotoNative_GetMainImage()
34 Camera_ErrorCode OH_PhotoNative_Release(OH_PhotoNative* photo) in OH_PhotoNative_Release() argument
36 CHECK_AND_RETURN_RET_LOG(photo != nullptr, CAMERA_INVALID_ARGUMENT, in OH_PhotoNative_Release()
38 delete photo; in OH_PhotoNative_Release()
39 photo = nullptr; in OH_PhotoNative_Release()
/ohos5.0/docs/en/application-dev/reference/apis-camera-kit/
H A D_photo_output___callbacks.md6 The PhotoOutput_Callbacks struct describes the callbacks related to photo output.
22 …tooutput_onframestart) [onFrameStart](#onframestart) | Callback to report photo output frame start…
24 …oh_photooutput_onframeend) [onFrameEnd](#onframeend) | Callback to report photo output frame end e…
25 …__camera.md#oh_photooutput_onerror) [onError](#onerror) | Callback to report photo output errors.|
39 Callback to report photo output errors.
50 Callback to report photo output frame end events.
72 Callback to report photo output frame start events.
H A Dphoto__native_8h.md6 The **camera_input.h** file declares the camera photo concepts.
26 …[OH_PhotoNative](_o_h___camera.md#oh_photonative) | Defines a struct for the camera photo object.|
33 …Native](_o_h___camera.md#oh_photonative) \*photo, OH_ImageNative \*\*mainImage) | Obtains a full q…
34 …ase) ([OH_PhotoNative](_o_h___camera.md#oh_photonative) \*photo) | Releases a full quality photo.|
H A Dphoto__output_8h.md6 The **photo_output.h** file declares the photo output concepts.
26 …utput_Callbacks](_photo_output___callbacks.md) | Describes the callbacks related to photo output.|
33 …PhotoOutput](_o_h___camera.md#camera_photooutput) | Defines a struct for the photo output object.|
34 …Output_Callbacks](_photo_output___callbacks.md) struct and used to report photo output frame start…
36 …Output_Callbacks](_photo_output___callbacks.md) struct and used to report photo output frame end e…
43 …Native](_o_h___camera.md#oh_photonative) \*photo) | Defines the callback invoked when a high-resol…
44 …Output, OH_MediaAsset \*photoAsset) | Defines the callback invoked when a photo asset is available…
45 …___camera.md#photooutput_callbacks) | Defines a struct for the callbacks related to photo output.|
52 …hoto_output___callbacks.md) \*callback) | Registers a callback to listen for photo output events.|
53 …ut___callbacks.md) \*callback) | Unregisters the callback used to listen for photo output events.|
[all …]
H A D_camera___photo_capture_setting.md6 The Camera_PhotoCaptureSetting struct describes the parameters related to photo capture.
20 …_QualityLevel](_o_h___camera.md#camera_qualitylevel) [quality](#quality) | Quality of the photo. |
22 …mera___location.md) \* [location](#location) | Pointer to the location where the photo is taken. |
36 Pointer to the location where the photo is taken.
56 Quality of the photo.
H A D_camera___output_capability.md22 …profile.md) \*\* [photoProfiles](#photoprofiles) | Double pointer to the list of photo profiles. |
23 | uint32_t [photoProfilesSize](#photoprofilessize) | Size of the photo profiles. |
50 Double pointer to the list of photo profiles.
62 Size of the photo profiles.
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dmultistages_capture_request_task_manager.cpp50 shared_ptr<LowQualityPhotoInfo> photo = photoIdInProcess_.at(photoId); in UpdatePhotoInProgress() local
51 photo->state = (photo->state == PhotoState::NORMAL) ? PhotoState::TRASHED : PhotoState::NORMAL; in UpdatePhotoInProgress()
52 photoIdInProcess_[photoId] = photo; in UpdatePhotoInProgress()
81 shared_ptr<LowQualityPhotoInfo> photo = photoIdInProcess_.at(photoId); in UpdatePhotoInProcessRequestCount() local
82 photo->requestCount += (int32_t) requestType; in UpdatePhotoInProcessRequestCount()
83 photoIdInProcess_[photoId] = photo; in UpdatePhotoInProcessRequestCount()
84 return photo->requestCount; in UpdatePhotoInProcessRequestCount()
/ohos5.0/docs/en/application-dev/reference/apis-media-library-kit/
H A Dmoving__photo__capi_8h.md8 You can use the APIs to obtain moving photo information.
28 …nager.md#oh_movingphoto) \*movingPhoto, const char \*\*uri) | Obtains the URI of a moving photo. |
29 …ri, char \*videoUri) | Requests the image data and video data of a moving photo and writes them to…
30 …edialibrary_resourcetype) resourceType, char \*uri) | Requests the moving photo content of the spe…
31 …rceType, const uint8_t \*\*buffer, uint32_t \*size) | Requests the moving photo content of the spe…
H A Dohos-file-PhotoPickerComponent.md199 Switches from the **PhotoPickerComponent** to the photo browser page or from the photo browser page…
216 Exits the photo browser page.
272 Represents information about the photo browser page.
284 Animation parameters for entering or exiting the photo browser page.
416 Enumerates the view range on the photo browser page.
437 | CHECKBOX | 0 | Check box on the photo browser page. |
438 | BACK_BUTTON | 1 | **Back** button on the photo browser page.|
556 // Callback to be invoked when the photo browser page is displayed.
562 // Callback to be invoked when the photo browser page is closed.
574 // Callback to be invoked when the photo browser is swiped left or right.
[all …]
/ohos5.0/docs/zh-cn/application-dev/media/medialibrary/
H A DphotoAccessHelper-movingphoto.md12 拍摄动态照片的能力由Camera Kit提供,开发者可参考[Camera Kit-动态照片](../camera/camera-moving-photo.md)。
70 … console.info('create moving photo successfully, uri: ' + assetChangeRequest.getAsset().uri);
72 … console.error(`create moving photo failed with error: ${err.code}, ${err.message}`);
75 console.error('SaveButtonOnClickResult create moving photo failed');
132 console.info('request moving photo successfully, uri: ' + movingPhoto.getUri());
138 console.error(`request moving photo failed with error: ${err.code}, ${err.message}`);
156 console.info('load moving photo successfully');
158 console.error(`load moving photo failed with error: ${err.code}, ${err.message}`);
178 console.error(`request content of moving photo failed with error: ${err.code}, ${err.message}`);
/ohos5.0/drivers/interface/camera/v1_3/
H A DTypes.idl42 * Professional mode, which dedicated to professional photo scene
75 * High resolution photo mode, which dedicated to capture recording high pixel
90 * quick shot photo mode, which dedicated to quick shot photo mode
104 * Panorama photo mode, which dedicated to panorama photo mode
111 * Timelapse photo mode, which dedicated to timelapse photo mode
125 * fluorescence photo mode, which dedicated to fluorescence photo mode
/ohos5.0/docs/zh-cn/application-dev/media/camera/
H A Dcamera-shooting.md52 photoOutput.on('photoAvailable', (errCode: BusinessError, photo: camera.Photo): void => {
55 if (errCode || photo === undefined) {
59 let imageObj: image.Image = photo.main;
172 console.error(`Failed to capture the photo. error: ${JSON.stringify(err)}`);
175 console.info('Callback invoked to indicate the photo capture request success.');
192 console.info(`photo capture started, captureId : ${captureStartInfo.captureId}`);
205 console.info(`photo capture end, captureId : ${captureEndInfo.captureId}`);
219 console.info(`photo capture ready`);
/ohos5.0/foundation/multimedia/camera_framework/
H A DREADME.md8 - [To Capture a Photo](#to-capture-a-photo)
23 This function is used to capture a photo.
27 …e camera is started. It is used to preview the subject before capturing a photo or start recording…
65 Steps to capture a photo:
125 7. Create the Consumer Surface and register listerner for buffer updates. The photo width and heigh…
210 …ow the step to create Surface and register listerner for buffer updates mentioned in capture photo.
290 …te Surface and register listerner for buffer updates mentioned in capture photo. The video resolut…
335 …output have to be removed first and then add a new input and output(i.e., photo output in this cas…
423photo output and add the photo output to the capture session once it is successfully created. Crea…
477 Flash mode can be configured on the Camera Input before capturing a photo or recording a video.
[all …]

123456789