1 From 7517e03b97bd0f2f9272ec837e972dce920f2029 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 16 May 2022 17:33:48 +0100
4 Subject: [PATCH] vc04_services: vchiq-mmal: Add defines for
7 There is a flags field in struct mmal_es_format, but the defines
8 for what the bits meant weren't included in the headers.
9 For V4L2_PIX_FMT_NV12_COL128 support we need them, so add them in.
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 .../staging/vc04_services/vchiq-mmal/mmal-msg-format.h | 10 ++++++++++
14 1 file changed, 10 insertions(+)
16 --- a/drivers/staging/vc04_services/vchiq-mmal/mmal-msg-format.h
17 +++ b/drivers/staging/vc04_services/vchiq-mmal/mmal-msg-format.h
18 @@ -53,6 +53,16 @@ union mmal_es_specific_format {
19 struct mmal_subpicture_format subpicture;
22 +/* The elementary stream will already be framed */
23 +#define MMAL_ES_FORMAT_FLAG_FRAMED BIT(0)
25 + * For column formats we ideally want to pass in the column stride. This hasn't
26 + * been the past behaviour, so require a new flag to be set should
27 + * es->video.width be the column stride (in lines) instead of an ignored width
30 +#define MMAL_ES_FORMAT_FLAG_COL_FMTS_WIDTH_IS_COL_STRIDE BIT(1)
32 /* Definition of an elementary stream format (MMAL_ES_FORMAT_T) */
33 struct mmal_es_format_local {
34 u32 type; /* enum mmal_es_type */