Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9cbfcd7c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] doc-rst: add sh_mobile_ceu_camera crop documentation



Convert it to ReST and add it to media/v4l-drivers book.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ae9d2873
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,4 +34,5 @@ License".
	pxa_camera
	radiotrack
	saa7134
	sh_mobile_ceu_camera
	zr364xx
+29 −28
Original line number Diff line number Diff line
Cropping and Scaling algorithm, used in the sh_mobile_ceu_camera driver
=======================================================================

Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

Terminology
-----------

@@ -12,6 +14,8 @@ combined scales: sensor_scale * host_scale
Generic scaling / cropping scheme
---------------------------------

.. code-block:: none

	-1--
	|
	-2-- -\
@@ -134,6 +138,3 @@ Cropping is performed in the following 6 steps:
5. Calculate and apply host scale = (6' - 6) / (4' - 4)

6. Calculate and apply host crop: 6 - 7 = (5 - 2) * (6' - 6) / (5' - 5)

--
Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>