Skip to content

Commit

Permalink
staging: media: rpivid: Reduce the alignment on height to 2
Browse files Browse the repository at this point in the history
There is no need for the column stride to be a multiple of 16,
so reduce it down to a multiple of 2 as it is YUV420.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
  • Loading branch information
6by9 committed Feb 12, 2024
1 parent f9f2ac6 commit a512ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/media/rpivid/rpivid_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ static void rpivid_prepare_dst_format(struct v4l2_pix_format_mplane *pix_fmt)
/* Width rounds up to columns */
width = ALIGN(width, 128);

/* 16 aligned height - not sure we even need that */
height = ALIGN(height, 16);
/* 2 aligned height - as it will be YUV420 */
height = ALIGN(height, 2);
/* column height
* Accept suggested shape if at least min & < 2 * min
*/
Expand Down

0 comments on commit a512ee5

Please sign in to comment.