camera_config_vf_histogram()

Configure reporting of viewfinder histogram metadata.

Synopsis:

#include <camera/camera_api.h>
 
camera_error_t camera_config_vf_histogram(camera_handle_t handle,                 
                                          bool enable)

Since:

BlackBerry 10.2.0

Arguments:

handle

The handle returned by a call to the camera_open() function.

enable

Enable histogram data reporting. Set to true to enable, false otherwise.

Library:

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

Description:

Use this function to enable viewfinder histogram reporting if supported on the camera. To determine whether histogram data is supported, call the camera_can_feature() function with the CAMERA_FEATURE_VFHISTOGRAM feature.

Viewfinder histogram metadata is processed using the functions in camera_meta.h.

The viewfinder must be running before using this function.

Returns:

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