Updated: October 28, 2024 |
The supported rate-control algorithms for H.264/AVC
#include <camera/camera_h264avc.h>
typedef enum { CAMERA_H264AVC_RATECONTROL_NONE = 0, CAMERA_H264AVC_RATECONTROL_CBR, CAMERA_H264AVC_RATECONTROL_VBR } camera_h264avc_ratecontrol_t;
Constant quality encoding means that the bitrate varies with the scene content but the quality stays constant.
This control algorithm indicates that the bitrate remains constant while quality will vary. The bitrate that is maintained is specified by the CAMERA_H264AVC_BITRATE parameter.
This control algorithm indicates that the average bitrate remains constant while quality may vary. The average bitrate that is maintained is specified by the CAMERA_H264AVC_BITRATE parameter.
These are the valid values for configuring the CAMERA_H264AVC_RATECONTROL parameter. Use camera_get_supported_videoencoder_parameter_values() to determine the supported values at runtime.