Question for jpeg.lib users
-
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.
-
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.
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.
-
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.