1 From df55c9751bddc12633eecb01d233ca775b111dc4 Mon Sep 17 00:00:00 2001
2 From: soyer <soyer@irl.hu>
3 Date: Sat, 23 Oct 2021 12:23:50 +0200
4 Subject: [PATCH] staging/bcm2835-camera: Add support for H264_MIN_QP,
7 Signed-off-by: Gergo Koteles <soyer@irl.hu>
9 .../bcm2835-camera/bcm2835-camera.h | 2 +-
10 .../vc04_services/bcm2835-camera/controls.c | 22 +++++++++++++++++++
11 2 files changed, 23 insertions(+), 1 deletion(-)
13 --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h
14 +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h
19 -#define V4L2_CTRL_COUNT 29 /* number of v4l controls */
20 +#define V4L2_CTRL_COUNT 31 /* number of v4l controls */
24 --- a/drivers/staging/vc04_services/bcm2835-camera/controls.c
25 +++ b/drivers/staging/vc04_services/bcm2835-camera/controls.c
26 @@ -1270,6 +1270,28 @@ static const struct bm2835_mmal_v4l2_ctr
27 .mmal_id = MMAL_PARAMETER_INTRAPERIOD,
28 .setter = ctrl_set_video_encode_param_output,
31 + .id = V4L2_CID_MPEG_VIDEO_H264_MIN_QP,
32 + .type = MMAL_CONTROL_TYPE_STD,
38 + .mmal_id = MMAL_PARAMETER_VIDEO_ENCODE_MIN_QUANT,
39 + .setter = ctrl_set_video_encode_param_output,
42 + .id = V4L2_CID_MPEG_VIDEO_H264_MAX_QP,
43 + .type = MMAL_CONTROL_TYPE_STD,
49 + .mmal_id = MMAL_PARAMETER_VIDEO_ENCODE_MAX_QUANT,
50 + .setter = ctrl_set_video_encode_param_output,
54 int bm2835_mmal_set_all_camera_controls(struct bm2835_mmal_dev *dev)