GNOME Bugzilla – Bug 346452
'approximate quality' returns wrong values
Last modified: 2006-10-30 15:15:47 UTC
As a pre-requisite to solve bug #318376, a C# implementation of jpegdump was added to CVS. For some pictures edited with Gimp, F-Spot returns: approximate quality = 0 but jpegdump returns the correct value (97) For (a lot) of other pictures, the value returned by f-spot lightly differ for the value returned by jpegdump, but only by 1 or 2 units (f-spot: 96, jpegdump: 98). but it's not a big deal, this code is about 'guessing' the quality...
yeah the C# version needs some debugging, which is why it isn't currently being used. I'm not sure I have the standalone jpegdump code to compare with anymore.
for the original jpegdump code, check your mailbox. check also the the patch I made in C for the same issue...
here's the fix... switch (tableindex & 0x0f) { - case 1: + case 0: table = StandardLuminanceQuantization; break; - case 2: - table = StandardChromninaceQuantization; + case 1: + table = StandardChrominanceQuantization; break; default: table = null; Fixed in CVS