Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe
  • Repository

Switch branch/tag
  • ipipe
  • drivers
  • media
  • video
  • v4l2-common.c
Find file BlameHistoryPermalink
  • Trent Piepho's avatar
    V4L/DVB (11901): v4l2: Create helper function for bounding and aligning images · b0d3159b
    Trent Piepho authored May 30, 2009
    
    
    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.
    Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    b0d3159b

Replace v4l2-common.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy