diff options
author | Hyunwoong Kim <khw0178.kim@samsung.com> | 2010-12-28 22:12:43 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 20:31:40 -0300 |
commit | 1b09f292eb99fd6a3601e8421c463905dbb0a866 (patch) | |
tree | b4b2f033ed5846e98c1cd4d3392a522cc504aff9 /security | |
parent | 70f66ea2aafbd9022a5dcdfd823538e540873585 (diff) | |
download | kernel_samsung_aries-1b09f292eb99fd6a3601e8421c463905dbb0a866.zip kernel_samsung_aries-1b09f292eb99fd6a3601e8421c463905dbb0a866.tar.gz kernel_samsung_aries-1b09f292eb99fd6a3601e8421c463905dbb0a866.tar.bz2 |
[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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions