Retrieve the list of supported HDR output image formats.
#include <camera/camera_hdr.h>
camera_error_t camera_hdr_get_supported_image_formats(camera_hdr_t hdr,
uint32_t numasked,
uint32_t *numsupported,
camera_frametype_t *formats)
BlackBerry 10.3.0
The HDR session handle obtained from a call to camera_hdr_create().
The requested number of HDR output image formats to return in the formats array. You can specify a value of 0 to determine the number of HDR output image formats supported.
A pointer to an integer that is updated with the number of HDR output image formats that are supported.
A pointer to a #camera_frametype_t array. The array is updated with the list of HDR output image formats that are supported. Ensure that you allocate an array with the same number of elements as the numasked argument.
This function returns the list of supported HDR output image formats that can be set using camera_hdr_set_image_format().
Ensure that the formats argument points to an array which has at least numasked elements allocated. To determine an appropriate size for this array, you can invoke this function in presizing mode by setting the numasked argument to 0 or the formats argument to NULL. When the function is invoked in this presizing mode, the maximum array size required is returned in numsupported argument. You can then allocate an array of the appropriate size and invoke the function again with numasked argument set to the value returned previously in the numsupported argument.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.