summaryrefslogtreecommitdiff
path: root/hgimport
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:46:52 +0200
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-08-25 16:46:52 +0200
commit83741e5418caf367ba88caf33d4475755826ff4f (patch)
treedcb08f878b3edb18b5651a70ad8f25f197a6baa0 /hgimport
parent4cba5b9dc9691179938d5481bda3c97e376e0964 (diff)
downloadmediapointer-dvb-s2-83741e5418caf367ba88caf33d4475755826ff4f.tar.gz
mediapointer-dvb-s2-83741e5418caf367ba88caf33d4475755826ff4f.tar.bz2
sh-mobile-ceu-camera: implement host-side cropping
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Not all video capture devices can configure arbitrary cropping, whereas the CEU module on SuperH CPUs can crop with pixel precision. However, we want to use camera cropping if possible to save bandwidth and increase the frame-rate. This patch verifies whether the camera managed to crop exactly the requested rectangle, and if not, uses host-side cropping. To be able to crop on CEU we have to preserve camera rectangle too, for which the host_priv member in struct soc_camera_device is used. We now allocate memory dynamically, thus we have to use the .put_formats() method from struct soc_camera_host_ops to free it. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Priority: low --- drivers/media/video/sh_mobile_ceu_camera.c | 309 +++++++++++++++++++++++----- 1 files changed, 259 insertions(+), 50 deletions(-)
Diffstat (limited to 'hgimport')
0 files changed, 0 insertions, 0 deletions