diff options
| author | Guennadi Liakhovetski <[email protected]> | 2012-10-08 10:02:55 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2012-12-20 14:26:40 -0200 |
| commit | cea4c9e46c4f656a81c93f09b5e3bde38bebb160 (patch) | |
| tree | 9f600f30db8e7d8562ae4da595f89f0b7301e285 /tools/perf/scripts/python | |
| parent | 454547fb8217ac82de82fdffe0c2a41d8cd47bf4 (diff) | |
[media] media: soc-camera: remove superfluous JPEG checking
Explicit checks for the JPEG pixel format in soc_mbus_bytes_per_line() and
soc_mbus_image_size() are superfluous, because also without them these
functions will perform correctly. The former will return 0 based on
packing == SOC_MBUS_PACKING_VARIABLE and the latter will simply multiply
the user-provided line length by the image height to obtain a frame buffer
size estimate. The original version of the "media: soc_camera: don't clear
pix->sizeimage in JPEG mode" patch was correct and my amendment, adding
these two checks was superfluous.
Signed-off-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions