camera_get_videoencoder_parameter()

Retrieve the current value of a video encoder parameter

Synopsis:

#include <camera/camera_encoder.h>
camera_error_t camera_get_videoencoder_parameter(camera_handle_t handle,
                                                
                                                 args...)

Arguments:

handle
The handle returned by a call to the camera_open() function.
args...
A series of comma-delimited parameter-value pairs where each value must be a pointer a variable of the expected type.

Library:

libcamapi

Description:

Use this function to retrieve the currently set video encoder parameters. The parameters that you can retrieve depend on the codec you selected using camera_set_video_property().

For the args argument, you can provide one or more parameter-value pairs using the parameter enumerations defined by the following enumerated types:

Multiple parameter-value pairs are delimited using a comma. The parameter name that you choose depends on the video codec that is configured. For example, for H.264/AVC, use a parameter enumeration from the camera_h264avc_parameters_t enumerated type and the expected type for each value, such as an int or double.

Returns:

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