Add an input image to an HDR session.


#include <camera/camera_hdr.h>
camera_error_t camera_hdr_add_image_to_session(camera_hdr_t hdr,                 
                                               camera_buffer_t *image,                 
                                               double offset)


BlackBerry 10.3.0



The HDR session handle obtained from a call to camera_hdr_create().


A pointer to an image buffer to add to the HDR session. See camera_api.h for a description of the camera_buffer_t structure.


The EV offset for the image supplied in image. Use camera_hdr_get_supported_exposure_values() to determine the valid range for this argument.


libcamerafeatures (For the qcc command, use the -l camerafeatures option to link against this library)


Adds an input image to the HDR session prior to rendering. This function must be called multiple times to add successive images. Use camera_hdr_get_supported_image_count() to determine the number of input images required to render an HDR image. Use the camera_hdr_render() function to render an output HDR image from these input images. Each input image must be paired with a corresponding EV offset so that the rendering algorithm understands the exposure relation between the input images. The images provided must be of the same format and resolution.

This function can only be used in Offline HDR rendering mode.


CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.

Last modified: 2014-06-24

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus