Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Question for jpeg.lib users

Question for jpeg.lib users

Scheduled Pinned Locked Moved C / C++ / MFC
c++comgraphicshelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ryuki
    wrote on last edited by
    #1

    I have some trouble using the code and library from the Independent JPEG Group. It only occurs with damaged jpg files. I tried and cximage can load that damaged files better than my functions. Besides, every professional pictureviewer/editor can do so. I posted the whole matter under the cimage article you can find on codeproject: http://www.codeproject.com/bitmap/cximage.asp[^] Since the project is discontinued I can't rely that I get a answer there. So I hope some people using VC++ too can help me with that matter. I know the chances are very low since there are only few people using jpg decompression directly in theyr apps.

    J R 2 Replies Last reply
    0
    • R ryuki

      I have some trouble using the code and library from the Independent JPEG Group. It only occurs with damaged jpg files. I tried and cximage can load that damaged files better than my functions. Besides, every professional pictureviewer/editor can do so. I posted the whole matter under the cimage article you can find on codeproject: http://www.codeproject.com/bitmap/cximage.asp[^] Since the project is discontinued I can't rely that I get a answer there. So I hope some people using VC++ too can help me with that matter. I know the chances are very low since there are only few people using jpg decompression directly in theyr apps.

      J Offline
      J Offline
      JWood
      wrote on last edited by
      #2

      Jpeg's as most image systems use scan line by scan line decompression, that is, one line at a time. If you can track down the point at which it cycles through the lines you might be able to handle errors more gracefully than the default code does. JPeg uses DCT compression which is a very complicated algorithm as you can probly tell from the size of the code, but you can most likely work backwards from the decompression in the "main" code that uses all the other code, and catch it before it gets into the complicated bits. IIRC it is jpeg.c, but you should check that out.

      1 Reply Last reply
      0
      • R ryuki

        I have some trouble using the code and library from the Independent JPEG Group. It only occurs with damaged jpg files. I tried and cximage can load that damaged files better than my functions. Besides, every professional pictureviewer/editor can do so. I posted the whole matter under the cimage article you can find on codeproject: http://www.codeproject.com/bitmap/cximage.asp[^] Since the project is discontinued I can't rely that I get a answer there. So I hope some people using VC++ too can help me with that matter. I know the chances are very low since there are only few people using jpg decompression directly in theyr apps.

        R Offline
        R Offline
        ryuki
        wrote on last edited by
        #3

        I found a solution on my own. I posted it at the comments of the cximage article.:)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups