Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e007d7a authored by Wei-Ta Chen's avatar Wei-Ta Chen
Browse files

Unhide inPreferQualityOverSpeed in BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925

Related changes: https://android-git.corp.google.com/g/#change,83291 and
                 https://android-git.corp.google.com/g/#change,83294

Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4
parent debfb7fc
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -75700,6 +75700,16 @@
 visibility="public"
>
</field>
<field name="inPreferQualityOverSpeed"
 type="boolean"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="inPreferredConfig"
 type="android.graphics.Bitmap.Config"
 transient="false"
+0 −1
Original line number Diff line number Diff line
@@ -210,7 +210,6 @@ public class BitmapFactory {
         * expense of the decoding speed. Currently the field only affects JPEG
         * decode, in the case of which a more accurate, but slightly slower,
         * IDCT method will be used instead.
         * @hide
         */
        public boolean inPreferQualityOverSpeed;