ImpulseAdventure / JPEGsnoop

JPEGsnoop: JPEG decoder and detailed analysis
http://www.impulseadventure.com/photo/jpeg-snoop.html
GNU General Public License v2.0
519 stars 86 forks source link

Detailed MCU decode missing last row #48

Open ImpulseAdventure opened 4 years ago

ImpulseAdventure commented 4 years ago

Bug report submitted by Rory Hill via ImpulseAdventure website (#71150):


I may be mistaken, but it appears that the last row of a MCU RGB output in the detailed scan mode is omitted for either the end of row or due to a reset marker being encountered (not sure which). Here is an example:

MCU [149, 2]:
[ x635A51 x8D8A75 x6F705E x6F6D62 x9A9686 x908B79 x737367 x656A62 ]
[ x807C6C x8F8A76 x958B7D x8A7E72 x9D947F xA09C85 x918F82 x77796C ]
[ xBAAD99 xB2A893 xBBB1A3 xB0A698 x89826E x8E8677 xA19B8D x99957E ]
[ xA29286 x988A7B xAAA291 xB8B5A2 x9F9F8B x6F6A60 x736C65 xA49D87 ]
[ x999389 x72695E x665B53 x8F8A7A xAFAF99 xA3A598 x868682 x6B6B61 ]
[ xB7AA94 xC0BBAB x949490 x62625E x969283 xB3AD9F xBEBFB6 x959F93 ]
[ x968269 xB6AE95 xC3C5B8 x929290 x89847C x9F9789 xB6B4A7 xB9BEAC ]
MISSING ROW 8

I have reproduced the above issue with a standard image without the use of restart markers. It appears that only the last row of a RGB dump is missing when it refers to the last MCU column of an image.