Results 1 to 7 of 7

Thread: Can't use libturbojpeg to load image files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Can't use libturbojpeg to load image files

    The data buffer points to is freed when your decodeJpeg function returns. Hence the data can not be used outside the function.

    Why not using QImage directly? It can decode JPEG with the image format plugin for JPEG.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Can't use libturbojpeg to load image files

    JpegEncoderDecoder() also seems to be using _jpegSize unitialised.

Similar Threads

  1. Replies: 2
    Last Post: 20th May 2014, 13:53
  2. Replies: 5
    Last Post: 30th October 2012, 08:52
  3. how to load image from one ui to another
    By trupti in forum Newbie
    Replies: 4
    Last Post: 3rd January 2011, 12:03
  4. how do load image
    By yuvaraj.yadav in forum Qt Programming
    Replies: 5
    Last Post: 21st April 2009, 05:31
  5. best way to load image from db
    By C167 in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2008, 18:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.