summaryrefslogtreecommitdiffstats
path: root/media/mca/filterfw/jni/jni_gl_frame.h
blob: 8a25aea29f1f5127db00afb60435ed1f2c50cf80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/*
 * Copyright (C) 2011 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ANDROID_FILTERFW_JNI_GL_FRAME_H
#define ANDROID_FILTERFW_JNI_GL_FRAME_H

#include <jni.h>

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeAllocate(JNIEnv* env,
                                                  jobject thiz,
                                                  jobject gl_env,
                                                  jint width,
                                                  jint height);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture(JNIEnv* env,
                                                             jobject thiz,
                                                             jobject gl_env,
                                                             jint tex_id,
                                                             jint width,
                                                             jint height);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo(JNIEnv* env,
                                                         jobject thiz,
                                                         jobject gl_env,
                                                         jint fbo_id,
                                                         jint width,
                                                         jint height);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeAllocateExternal(JNIEnv* env,
                                                          jobject thiz,
                                                          jobject gl_env);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeDeallocate(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints);

JNIEXPORT jintArray JNICALL
Java_android_filterfw_core_GLFrame_getNativeInts(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray ints);

JNIEXPORT jfloatArray JNICALL
Java_android_filterfw_core_GLFrame_getNativeFloats(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_setNativeData(JNIEnv* env,
                                                 jobject thiz,
                                                 jbyteArray data,
                                                 jint offset,
                                                 jint length);

JNIEXPORT jbyteArray JNICALL
Java_android_filterfw_core_GLFrame_getNativeData(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_setNativeBitmap(JNIEnv* env,
                                                   jobject thiz,
                                                   jobject bitmap,
                                                   jint size);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_setNativeViewport(JNIEnv* env,
                                                     jobject thiz,
                                                     jint x,
                                                     jint y,
                                                     jint width,
                                                     jint height);

JNIEXPORT jint JNICALL
Java_android_filterfw_core_GLFrame_getNativeTextureId(JNIEnv* env, jobject thiz);

JNIEXPORT jint JNICALL
Java_android_filterfw_core_GLFrame_getNativeFboId(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_generateNativeMipMap(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_setNativeTextureParam(JNIEnv* env,
                                                         jobject thiz,
                                                         jint param,
                                                         jint value);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeResetParams(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeCopyFromNative(JNIEnv* env,
                                                        jobject thiz,
                                                        jobject frame);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeCopyFromGL(JNIEnv* env,
                                                    jobject thiz,
                                                    jobject frame);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeFocus(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeReattachTexToFbo(JNIEnv* env, jobject thiz);

JNIEXPORT jboolean JNICALL
Java_android_filterfw_core_GLFrame_nativeDetachTexFromFbo(JNIEnv* env, jobject thiz);

#ifdef __cplusplus
}
#endif

#endif /* ANDROID_FILTERFW_JNI_GL_FRAME_H */