jni_native_buffer.h revision e9912de34684f1b8deaf36bcf77686152d33765d
130ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni/*
230ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * Copyright (C) 2011 The Android Open Source Project
330ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni *
430ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * Licensed under the Apache License, Version 2.0 (the "License");
530ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * you may not use this file except in compliance with the License.
630ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * You may obtain a copy of the License at
730ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni *
830ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni *      http://www.apache.org/licenses/LICENSE-2.0
930ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni *
1030ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * Unless required by applicable law or agreed to in writing, software
1130ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * distributed under the License is distributed on an "AS IS" BASIS,
1230ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1330ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * See the License for the specific language governing permissions and
1430ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni * limitations under the License.
1530ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni */
1630ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
17e9912de34684f1b8deaf36bcf77686152d33765dEino-Ville Talvala#ifndef ANDROID_FILTEFW_JNI_NATIVE_BUFFER_H
18e9912de34684f1b8deaf36bcf77686152d33765dEino-Ville Talvala#define ANDROID_FILTEFW_JNI_NATIVE_BUFFER_H
1930ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
2030ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni#include <jni.h>
2130ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
2230ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni#ifdef __cplusplus
2330ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroniextern "C" {
2430ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni#endif
2530ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
2630ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo CarceroniJNIEXPORT jboolean JNICALL
2730ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo CarceroniJava_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size);
2830ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
2930ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo CarceroniJNIEXPORT jboolean JNICALL
3030ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo CarceroniJava_android_filterfw_core_NativeBuffer_deallocate(JNIEnv* env, jobject thiz, jboolean owns_data);
3130ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
3230ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo CarceroniJNIEXPORT jboolean JNICALL
3330ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo CarceroniJava_android_filterfw_core_NativeBuffer_nativeCopyTo(JNIEnv* env, jobject thiz, jobject new_buffer);
3430ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
3530ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni#ifdef __cplusplus
3630ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni}
3730ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni#endif
3830ab3fc173709a491c9e2e103f53fb7c0d1b96b7Rodrigo Carceroni
39e9912de34684f1b8deaf36bcf77686152d33765dEino-Ville Talvala#endif // ANDROID_FILTEFW_JNI_NATIVE_BUFFER_H
40