Debian Codegraph @

tools/jni/org/jpeg/jpegli/wrapper/encoder_jni.h

raw
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file.
5
6 #ifndef TOOLS_JNI_ORG_JPEG_JPEGLI_WRAPPER_ENCODER_JNI
7 #define TOOLS_JNI_ORG_JPEG_JPEGLI_WRAPPER_ENCODER_JNI
8
9 #include <jni.h>
10
11 namespace org_jpeg_jpegli_wrapper {
12 jint JniRegister(JavaVM* vm);
13 } // namespace org_jpeg_jpegli_wrapper
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /*
20 * Cache references to java world; should be invoked once, on library
21 * initialization.
22 */
23 JNIEXPORT jint JNICALL
24 Java_org_jpeg_jpegli_wrapper_Encoder_nativeInit(JNIEnv* env, jobject /*jobj*/);
25
26 /**
27 * Encode image with jpegli.
28 */
29 JNIEXPORT jint JNICALL Java_org_jpeg_jpegli_wrapper_Encoder_nativeEncode(
30 JNIEnv* env, jobject /*jobj*/, jint width, jint height, jintArray config,
31 jintArray input, jobject output);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif // TOOLS_JNI_ORG_JPEG_JPEGLI_WRAPPER_ENCODER_JNI