[media] omap3isp: resizer: Use 4-tap mode equations when the ratio is <= 512
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 18 Feb 2011 12:41:50 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Apr 2011 10:38:10 +0000 (07:38 -0300)
commitf792e4f6ac12d45b0eca12f505295c48182a8fd2
tree43dec3a3762db6b0963e55ca8ca8e13c9d714c83
parent8eca7a004ef9fec2fdca8a2b4b65410ff1515b80
[media] omap3isp: resizer: Use 4-tap mode equations when the ratio is <= 512

As the number of phases/taps, used to select the correct equations to
compute the ratio, depends on the ratio, start with the 7-tap mode
equations to compute an approximation of the ratio, and switch to the
4-tap mode equations if the approximation is lower than or equal to 512.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/ispresizer.c