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

Commit 79d9ed1e authored by John Reck's avatar John Reck
Browse files

Add API to do partial gainmap copies

Fixes: 296445755
Test: GainmapTest#testCopyInfo
Change-Id: If9fe02059e8ff4f39b7f91006d73faed1dcb2f4e
parent fc5bf263
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15651,6 +15651,7 @@ package android.graphics {
  public final class Gainmap implements android.os.Parcelable {
    ctor public Gainmap(@NonNull android.graphics.Bitmap);
    ctor public Gainmap(@NonNull android.graphics.Gainmap, @NonNull android.graphics.Bitmap);
    method public int describeContents();
    method @NonNull public float getDisplayRatioForFullHdr();
    method @NonNull public float[] getEpsilonHdr();
+0 −2
Original line number Diff line number Diff line
@@ -124,8 +124,6 @@ public final class Gainmap implements Parcelable {
    /**
     * Creates a new gainmap using the provided gainmap as the metadata source and the provided
     * bitmap as the replacement for the gainmapContents
     * TODO: Make public, it's useful
     * @hide
     */
    public Gainmap(@NonNull Gainmap gainmap, @NonNull Bitmap gainmapContents) {
        this(gainmapContents, nCreateCopy(gainmap.mNativePtr));