]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
drm: drm_fourcc: Introduce macro-pixel info to drm_format_info
authorHyun Kwon <hyun.kwon@xilinx.com>
Wed, 14 Feb 2018 23:10:20 +0000 (15:10 -0800)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 1 Mar 2018 08:20:20 +0000 (09:20 +0100)
commit292386744a361300d32542d8e4032ab9f3e8d2ec
tree0e6c789e7db5005f3c035a29a974123316723c60
parent5cf15cc029e6cb29da598f5b5f72fd6a9df5d605
drm: drm_fourcc: Introduce macro-pixel info to drm_format_info

Multiple pixels can be grouped as a single unit and form a 'macro-pixel'.
This is to model formats where multiple non-byte aligned pixels are stored
together in a byte-aligned way. For example, if 3 - 10 bit
pixels are stored in 32 bit, the 32 bit stroage can be treated as
a single macro-pixel with 3 pixels. This aligns non-byte addressable
formats with drm core where each pixel / component is expected to be
byte aligned.

Add 'pixels_per_macro' to note how many pixels are in a macro-pixel.
'bytes_per_macro' specifies the size of a macro-pixel in bytes.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/drm/drm_fourcc.h