linux/drivers/media/video/s5p-fimc
Hyunwoong Kim 1b09f292eb [media] s5p-fimc: update checking scaling ratio range
Horizontal and vertical scaling range are according to the following equations.
If (SRC_Width >= 64 x DST_Width) { Exit(-1);  /* Out of Horizontal scale range}
If (SRC_Height >= 64 x DST_Height) { Exit(-1);  /* Out of Vertical scale range}

fimc_check_scaler_ratio() is used to check if horizontal and vertical
scale range are valid or not. To use fimc_check_scaler_ratio,
source and destination format should be set by VIDIOC_S_FMT.
And in case of scaling up, it doesn't have to check the scale range.

Reviewed-by: Jonghun Han <jonghun.han@samsung.com>
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-03-21 20:31:40 -03:00
..
fimc-capture.c [media] s5p-fimc: update checking scaling ratio range 2011-03-21 20:31:40 -03:00
fimc-core.c [media] s5p-fimc: update checking scaling ratio range 2011-03-21 20:31:40 -03:00
fimc-core.h [media] s5p-fimc: update checking scaling ratio range 2011-03-21 20:31:40 -03:00
fimc-reg.c [media] s5p-fimc: Move scaler details handling to the register API file 2011-03-21 20:31:39 -03:00
Makefile [media] s5p-fimc: Add camera capture support 2010-10-21 07:55:47 -02:00
regs-fimc.h [media] s5p-fimc: Configure scaler registers depending on FIMC version 2011-03-21 20:31:39 -03:00