chunhuxiao / mdcm

Automatically exported from code.google.com/p/mdcm
0 stars 0 forks source link

Dicoding of JPEG compress image #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. IJpegCodec^ codec = GetCodec(precision, jparams);//around line no 68 in 
DcmJpegCodec.cpp
2.
3.

What is the expected output? What do you see instead?
Uncompress Image (Or original image); but the output is exception "Unable 
to determine bit depth: JPEG syntax error!" 

What version of the product are you using? On what operating system?
Windows XP

Please provide any additional information below.
The statement IJpegCodec^ codec = GetCodec(precision, jparams) is creating 
the problem it should be                                           
IJpegCodec^ codec = GetCodec(oldPixelData->BitsStored, jparams);
After correcting the above statement the problem is fixed .

Regards
Mahesh

Original issue reported on code.google.com by mdube...@gmail.com on 6 Sep 2008 at 6:41

GoogleCodeExporter commented 8 years ago
Fixed broken JPEG header scanner in SVN r45

Original comment by colby.di...@gmail.com on 30 Oct 2008 at 2:53