GithubHelp home page GithubHelp logo

Comments (7)

ilyakurdyukov avatar ilyakurdyukov commented on May 27, 2024 1

There is no typo, the last field appeared in version 2.0.90, you can check it in this source archive.

from jpeg-quantsmooth.

pjanx avatar pjanx commented on May 27, 2024
diff --git a/quantsmooth.h b/quantsmooth.h
index 8411b6a..541bd0c 100644
--- a/quantsmooth.h
+++ b/quantsmooth.h
@@ -46,10 +46,16 @@ struct jpeg_decomp_master {
        void (*finish_output_pass) (j_decompress_ptr);
        boolean is_dummy_pass;
 #ifdef LIBJPEG_TURBO_VERSION
+#if LIBJPEG_TURBO_VERSION_NUMBER >= 2001090
+       boolean lossless;
+#endif
        JDIMENSION first_iMCU_col, last_iMCU_col;
        JDIMENSION first_MCU_col[MAX_COMPONENTS];
        JDIMENSION last_MCU_col[MAX_COMPONENTS];
        boolean jinit_upsampler_no_alloc;
+#if LIBJPEG_TURBO_VERSION_NUMBER >= 2000090
+       JDIMENSION last_good_iMCU_row;
+#endif
 #endif
 };
 #endif

The trailing field is there since 42825b68d570fb07fe820ac62ad91017e61e9a25, the boolean is part of the lossless libjpeg megamerge.

from jpeg-quantsmooth.

ilyakurdyukov avatar ilyakurdyukov commented on May 27, 2024

JPEGQS_UPSAMPLE_UV decides to change 4:2:0 to 4:4:4, apparently the libjpeg-turbo API has changed.

from jpeg-quantsmooth.

ilyakurdyukov avatar ilyakurdyukov commented on May 27, 2024

The trailing field is there since 42825b68d570fb07fe820ac62ad91017e61e9a25 (2.0.4).

How is this hash related to the version?

I checked the source archives, the last_good_iMCU_row field appeared in libjpeg-turbo-2.0.90, but it is not yet in libjpeg-turbo-2.0.6.

from jpeg-quantsmooth.

pjanx avatar pjanx commented on May 27, 2024

It seems I got lost in the merge octopus, the 2.0.4 tag just appeared before the hash in linear git log. You're right in that it doesn't appear in the 2.0 series at all.

from jpeg-quantsmooth.

ilyakurdyukov avatar ilyakurdyukov commented on May 27, 2024

I committed the fix.

from jpeg-quantsmooth.

pjanx avatar pjanx commented on May 27, 2024

You have a minor typo there, 2000090 (2.0.90) instead of 2001090 (2.1.90).

from jpeg-quantsmooth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.