Skip to content
Commit 21da3453 authored by Josuah Demangeon's avatar Josuah Demangeon Committed by Benjamin Cabé
Browse files

drivers: video: introduce video_bits_per_pixel(pixelformat) helper



This was present in the form of video_pix_fmt_bpp() inside ST and NXP
drivers, and was returning the number of bytes, which does not allow
support for 10-bits, 4-bits or non-byte aligned video formats.
The helper leverages the VIDEO_PIX_FMT_*_BITS macros.

Signed-off-by: default avatarJosuah Demangeon <me@josuah.net>
parent a6d68d21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment