1 From 72f32ce98a5414dd6b2b20ea4e983d7cbc6eaf8b Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 5 Aug 2021 16:38:34 +0100
4 Subject: [PATCH] staging/vchiq-mmal: Add parameters for interlaced
7 Adds enum mmal_interlace_type and struct
8 mmal_parameter_video_interlace_type to allow for querying the
9 interlacing mode on decoders.
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 .../vchiq-mmal/mmal-parameters.h | 37 +++++++++++++++++++
14 1 file changed, 37 insertions(+)
16 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-parameters.h
17 +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-parameters.h
18 @@ -811,6 +811,43 @@ struct mmal_parameter_displayregion {
22 +enum mmal_interlace_type {
23 + /* The data is not interlaced, it is progressive scan */
24 + MMAL_INTERLACE_PROGRESSIVE,
26 + * The data is interlaced, fields sent separately in temporal order, with
29 + MMAL_INTERLACE_FIELD_SINGLE_UPPER_FIRST,
31 + * The data is interlaced, fields sent separately in temporal order, with
34 + MMAL_INTERLACE_FIELD_SINGLE_LOWER_FIRST,
36 + * The data is interlaced, two fields sent together line interleaved,
37 + * with the upper field temporally earlier
39 + MMAL_INTERLACE_FIELDS_INTERLEAVED_UPPER_FIRST,
41 + * The data is interlaced, two fields sent together line interleaved,
42 + * with the lower field temporally earlier
44 + MMAL_INTERLACE_FIELDS_INTERLEAVED_LOWER_FIRST,
46 + * The stream may contain a mixture of progressive and interlaced
49 + MMAL_INTERLACE_MIXED,
51 + MMAL_INTERLACE_DUMMY = 0x7FFFFFFF
54 +struct mmal_parameter_video_interlace_type {
55 + enum mmal_interlace_type mode; /* The interlace type of the content */
56 + u32 bRepeatFirstField; /* Whether to repeat the first field */
59 #define MMAL_MAX_IMAGEFX_PARAMETERS 5
61 struct mmal_parameter_imagefx_parameters {