summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/mt9v022.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-05-30 17:45:46 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2009-05-30 17:45:46 -0700
commit51c04c87bb11afe772c5cf797a12c71c602cff8c (patch)
treeec4388e1bf85d70ca3275007f8749644fe720734 /linux/drivers/media/video/mt9v022.c
parent9903c4e6973daa6579771ba67db415a7105d5e44 (diff)
downloadmediapointer-dvb-s2-51c04c87bb11afe772c5cf797a12c71c602cff8c.tar.gz
mediapointer-dvb-s2-51c04c87bb11afe772c5cf797a12c71c602cff8c.tar.bz2
v4l2: Create helper function for bounding and aligning images
From: Trent Piepho <xyzzy@speakeasy.org> Most hardware has limits on minimum and maximum image dimensions and also requirements about alignment. For example, image width must be even or a multiple of four. Some hardware has requirements that the total image size (width * height) be a multiple of some power of two. v4l_bound_align_image() will enforce min and max width and height, power of two alignment on width and height, and power of two alignment on total image size. It uses an efficient algorithm that will try to find the "closest" image size that meets the requirements. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/mt9v022.c')
0 files changed, 0 insertions, 0 deletions