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
  • w9968cf.c
Find file BlameHistoryPermalink
  • Trent Piepho's avatar
    V4L/DVB (11908): w8968cf: Use v4l bounding/alignment function · 1c657a99
    Trent Piepho authored May 30, 2009
    
    
    The v4l function has a better algorithm for aligning image size.
    
    The existing code was casting pointers to u32 and to unsigned int into
    pointers to u16.  This could mess up if someone passed in an image size
    greater than 65,535 and on big-endian platforms it won't work at all.
    
    The existing bounding code would shrink an image if it was too big, but
    returned ERANGE if it was too small.  The code will not shrink or expand as
    necessary.
    Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    1c657a99

Replace w9968cf.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