diff options
author | Paul Kocialkowski | 2024-09-03 19:14:06 +0200 |
---|---|---|
committer | Paul Kocialkowski | 2024-09-03 19:14:06 +0200 |
commit | 5acc2f557495298391ee585237dfe2fd69b5024e (patch) | |
tree | f9f56f42e166b98150b134624b1248bcf1a54992 /mm/util.c | |
parent | c193c161a59e7e890074e2f4934ee133f77af5e4 (diff) |
media: cedrus: Rework subsampling handling to allow 4:2:2 destinations
This reworks subsampling handling to allow decoding 4:2:2 (and 4:4:4)
JPEG without downsampling to 4:2:0. The configured destination pixel
format is checked to support the coded subsampling and downsampling is
only applied for 4:2:0 destination pixel formats.
The JPEG subsampling information is obtained from the structure
returned by the common helper instead of a custom switch/case.
Note that the so-called 422T subsampling (also known as 440) is dropped
from the list since the common helper does not support it and will
error out when encoutering it anyway.
Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions