commit | 819f3ea51d476dec23e11586a70f47972d61c00a | [log] [tgz] |
---|---|---|
author | Mirela Rabulea <mirela.rabulea@nxp.com> | Thu Mar 11 01:28:51 2021 +0100 |
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | Mon Mar 22 10:40:13 2021 +0100 |
tree | c1ae4caff41041e3c6b133b16939e9f90568ff5f | |
parent | ccbea178db47bf4a111ee97c0d77678818563a93 [diff] |
media: Avoid parsing quantization and huffman tables These are optional in struct v4l2_jpeg_header, so skip DHT/DQT segment parsing if huffman_tables/quantization_tables were not requested by user, to save time. However, do count them (num_dht/num_dqt). Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>