Skip to content

Commit 2611399

Browse files
6by9popcornmix
authored andcommitted
vc04_services: vchiq-mmal: Add defines for mmal_es_format flags
There is a flags field in struct mmal_es_format, but the defines for what the bits meant weren't included in the headers. For V4L2_PIX_FMT_NV12_COL128 support we need them, so add them in. Signed-off-by: Dave Stevenson <[email protected]>
1 parent 48e3593 commit 2611399

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/staging/vc04_services/vchiq-mmal/mmal-msg-format.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ union mmal_es_specific_format {
5353
struct mmal_subpicture_format subpicture;
5454
};
5555

56+
/* The elementary stream will already be framed */
57+
#define MMAL_ES_FORMAT_FLAG_FRAMED BIT(0)
58+
/*
59+
* For column formats we ideally want to pass in the column stride. This hasn't
60+
* been the past behaviour, so require a new flag to be set should
61+
* es->video.width be the column stride (in lines) instead of an ignored width
62+
* value.
63+
*/
64+
#define MMAL_ES_FORMAT_FLAG_COL_FMTS_WIDTH_IS_COL_STRIDE BIT(1)
65+
5666
/* Definition of an elementary stream format (MMAL_ES_FORMAT_T) */
5767
struct mmal_es_format_local {
5868
u32 type; /* enum mmal_es_type */

0 commit comments

Comments
 (0)