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

Commit 584a4263 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Specify when AndroidBitmapInfo.flags were introduced"

parents adea1a81 9cb2ffdb
Loading
Loading
Loading
Loading
+11 −5
Original line number Original line Diff line number Diff line
@@ -97,15 +97,21 @@ typedef struct {
    uint32_t    stride;
    uint32_t    stride;
    /** The bitmap pixel format. See {@link AndroidBitmapFormat} */
    /** The bitmap pixel format. See {@link AndroidBitmapFormat} */
    int32_t     format;
    int32_t     format;
    /** Two bits are used to encode alpha. Use ANDROID_BITMAP_FLAGS_ALPHA_MASK
    /** Bitfield containing information about the bitmap.
      * and ANDROID_BITMAP_FLAGS_ALPHA_SHIFT to retrieve them. One bit is used
     *
      * to encode whether the Bitmap uses the HARDWARE Config. Use
     * <p>Two bits are used to encode alpha. Use {@link ANDROID_BITMAP_FLAGS_ALPHA_MASK}
      * ANDROID_BITMAP_FLAGS_IS_HARDWARE to know.*/
     * and {@link ANDROID_BITMAP_FLAGS_ALPHA_SHIFT} to retrieve them.</p>
     *
     * <p>One bit is used to encode whether the Bitmap uses the HARDWARE Config. Use
     * {@link ANDROID_BITMAP_FLAGS_IS_HARDWARE} to know.</p>
     *
     * <p>These flags were introduced in API level 30.</p>
     */
    uint32_t    flags;
    uint32_t    flags;
} AndroidBitmapInfo;
} AndroidBitmapInfo;


/**
/**
 * Given a java bitmap object, fill out the AndroidBitmapInfo struct for it.
 * Given a java bitmap object, fill out the {@link AndroidBitmapInfo} struct for it.
 * If the call fails, the info parameter will be ignored.
 * If the call fails, the info parameter will be ignored.
 */
 */
int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,