jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-graphics-ImageFormat"))]
__jni_bindgen! {
    /// public class [ImageFormat](https://developer.android.com/reference/android/graphics/ImageFormat.html)
    ///
    /// Required feature: "android-graphics-ImageFormat"
    public class ImageFormat ("android/graphics/ImageFormat") extends crate::java::lang::Object {

        /// [ImageFormat](https://developer.android.com/reference/android/graphics/ImageFormat.html#ImageFormat())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::ImageFormat>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/ImageFormat", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/ImageFormat\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getBitsPerPixel](https://developer.android.com/reference/android/graphics/ImageFormat.html#getBitsPerPixel(int))
        pub fn getBitsPerPixel<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/graphics/ImageFormat", java.flags == PUBLIC | STATIC, .name == "getBitsPerPixel", .descriptor == "(I)I"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/graphics/ImageFormat\0", "getBitsPerPixel\0", "(I)I\0");
                __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [JPEG](https://developer.android.com/reference/android/graphics/ImageFormat.html#JPEG)
        pub const JPEG : i32 = 256;

        /// public static final [NV16](https://developer.android.com/reference/android/graphics/ImageFormat.html#NV16)
        pub const NV16 : i32 = 16;

        /// public static final [NV21](https://developer.android.com/reference/android/graphics/ImageFormat.html#NV21)
        pub const NV21 : i32 = 17;

        /// public static final [RAW10](https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW10)
        pub const RAW10 : i32 = 37;

        /// public static final [RAW_SENSOR](https://developer.android.com/reference/android/graphics/ImageFormat.html#RAW_SENSOR)
        pub const RAW_SENSOR : i32 = 32;

        /// public static final [RGB_565](https://developer.android.com/reference/android/graphics/ImageFormat.html#RGB_565)
        pub const RGB_565 : i32 = 4;

        /// public static final [UNKNOWN](https://developer.android.com/reference/android/graphics/ImageFormat.html#UNKNOWN)
        pub const UNKNOWN : i32 = 0;

        /// public static final [YUV_420_888](https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888)
        pub const YUV_420_888 : i32 = 35;

        /// public static final [YUY2](https://developer.android.com/reference/android/graphics/ImageFormat.html#YUY2)
        pub const YUY2 : i32 = 20;

        /// public static final [YV12](https://developer.android.com/reference/android/graphics/ImageFormat.html#YV12)
        pub const YV12 : i32 = 842094169;
    }
}