Updated: October 28, 2024 |
Retrieve the current values of video encoder parameters
#include <camera/camera_encoder.h>
#define camera_get_videoencoder_parameter(handle, args...)
Use this function to retrieve the current values of video encoder parameters. The parameters that you can query depend on the codec you selected using camera_set_video_property().
Parameters and values are delimited using commas, and so are multiple parameter-value pairs.
camera_get_videoencoder_parameter( camera_handle, CAMERA_H264AVC_BITRATE, &bitrate, CAMERA_H264AVC_ENTROPYCODING, &entropy_coding, CAMERA_H264AVC_SLICETYPE, &slice_type, CAMERA_H264AVC_SLICESIZE, &slice_size );
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.