]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: ipu-v3: image-convert: fix image downsize coefficients and tiling calculation
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 13 Aug 2019 11:42:58 +0000 (13:42 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 19 Aug 2019 14:25:30 +0000 (16:25 +0200)
commit5e54c23a185a59c8a06101c26838509062036ef0
tree5c37f7b78199a22cc0db00ab1b43603b670bf404
parentd8385adc398df3b67f968a80e117ac1be5af023e
gpu: ipu-v3: image-convert: fix image downsize coefficients and tiling calculation

This patch effectively reverts commit 5a209e6ac636 ("gpu: ipu-v3:
image-convert: Fix image downsize coefficients") and replaces it with a
different solution based on the preceding patches.

The previous fix tried to solve the problem of intermediate tile size
between IC downsizing and main processing sections not being limited to
1024 pixels by downsizing the input image to a smaller intermediate size
in the downsizing box filter. This causes unnecessary blurring,
especially for scaling factors close to 1.

Now that the seam position calculation makes sure that the 1024 pixel
intermediate tile size limit is not exceeded, calculate the number of
tiles from the maximum of intermediate size and output size and avoid
unnecessary downsizing.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-image-convert.c