« first day  last day (15 days later) » 

2:22 AM
Ok, I think I got it now. I'll come back to you when I have more questions.
 
3:17 AM
I've finally got the lengths and the codes! Woo! @user3344003
 
 
1 hour later…
4:22 AM
Ok, so now that I have the table, how do I decode individual data units? I see the function huffmanDecode, but what are the VALUES[]? And how do I get min/maxcode[i]? And what is Firstdata[]?
@user3344003
 
 
10 hours later…
1:55 PM
@Tetramputechture You have to do read bits one at a time. You have to read the DC value first and use the DC table to decode that. THen the AC values (more complicated).
 
2:09 PM
So, the DC value is the first value in the data unit, followed by 63 AC units, correct? And this is all in the scan. So, I have the code lengths and the codes, and 4 tables, accessed by a multidimensional array (alternating between DC and AC, index 0 and 1). So you're saying I have to read the scan data one byte at a time?
@user3344003
Or I have to convert each byte of the scan data to bits, and read in those bits one at a time and feed that to the function? I don't understand.
 
 
2 hours later…
4:28 PM
I've lost all motivation in this project because Apache already has a JPEG decoder and I know anything I make will be much worse than that and I know my project structure sucks. gah
 
4:51 PM
Thanks for all your help though. At least I learned a few things, especially about having to make a project structure before you code. And how JPEG files work.
 

« first day  last day (15 days later) »