1 /* 2 __ 3 / _| 4 __ _ _ _ _ __ ___ _ __ __ _ | |_ ___ ___ ___ 5 / _` | | | | '__/ _ \| '__/ _` | | _/ _ \/ __/ __| 6 | (_| | |_| | | | (_) | | | (_| | | || (_) \__ \__ \ 7 \__,_|\__,_|_| \___/|_| \__,_| |_| \___/|___/___/ 8 9 Copyright (C) 2017 The Android Open Source Project. 10 Copyright (C) 2018-2019 Aurora Free Open Source Software. 11 12 This file is part of the Aurora Free Open Source Software. This 13 organization promote free and open source software that you can 14 redistribute and/or modify under the terms of the GNU Lesser General 15 Public License Version 3 as published by the Free Software Foundation or 16 (at your option) any later version approved by the Aurora Free Open Source 17 Software Organization. The license is available in the package root path 18 as 'LICENSE' file. Please review the following information to ensure the 19 GNU Lesser General Public License version 3 requirements will be met: 20 https://www.gnu.org/licenses/lgpl.html . 21 22 Alternatively, this file may be used under the terms of the GNU General 23 Public License version 3 or later as published by the Free Software 24 Foundation. Please review the following information to ensure the GNU 25 General Public License requirements will be met: 26 https://www.gnu.org/licenses/gpl-3.0.html. 27 28 NOTE: All products, services or anything associated to trademarks and 29 service marks used or referenced on this file are the property of their 30 respective companies/owners or its subsidiaries. Other names and brands 31 may be claimed as the property of others. 32 33 For more info about intellectual property visit: aurorafoss.org or 34 directly send an email to: contact (at) aurorafoss.org . 35 36 This file has bindings for an existing code, part of The Android Open Source 37 Project implementation. Check it out at android.googlesource.com . 38 */ 39 40 module aurorafw.android.platform.hardware_buffer_jni; 41 42 /** 43 * @file aurorafw/android/platform/hardware_buffer_jni.d 44 */ 45 46 version (Android): 47 extern (C): 48 @system: 49 nothrow: 50 @nogc: 51 52 /** 53 * Return the AHardwareBuffer associated with a Java HardwareBuffer object, 54 * for interacting with it through native code. This method does not acquire any 55 * additional reference to the AHardwareBuffer that is returned. To keep the 56 * AHardwareBuffer live after the Java HardwareBuffer object got garbage 57 * collected, be sure to use AHardwareBuffer_acquire() to acquire an additional 58 * reference. 59 */ 60 AHardwareBuffer* AHardwareBuffer_fromHardwareBuffer ( 61 JNIEnv* env, 62 jobject hardwareBufferObj); 63 64 /** 65 * Return a new Java HardwareBuffer object that wraps the passed native 66 * AHardwareBuffer object. 67 */ 68 jobject AHardwareBuffer_toHardwareBuffer ( 69 JNIEnv* env, 70 AHardwareBuffer* hardwareBuffer); 71 72 // ANDROID_HARDWARE_BUFFER_JNI_H