Ocean
media/openimagelibraries/jni/JNI.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_MEDIA_OPENIMAGELIBRARIES_JNI_JNI_H
9 #define META_OCEAN_MEDIA_OPENIMAGELIBRARIES_JNI_JNI_H
10 
12 
13 #include <jni.h>
14 
15 namespace Ocean
16 {
17 
18 namespace Media
19 {
20 
21 namespace OpenImageLibraries
22 {
23 
24 namespace JNI
25 {
26 
27 /**
28  * @ingroup mediaoil
29  * @defgroup mediaoiljni Ocean Media OpenImageLibraries JNI Library
30  * @{
31  * The Ocean Media OpenImageLibraries JNI Library provides a Java Native Interface for Android.
32  * The library is available on Android platforms only.
33  * @}
34  */
35 
36 /**
37  * @namespace Ocean::Media::OpenImageLibraries::JNI Namespace of the Media OpenImageLibraries JNI library.<p>
38  * The Namespace Ocean::Media::OpenImageLibraries::JNI is used in the entire Ocean Media OpenImageLibraries JNI Library.
39  */
40 
41 #ifndef _ANDROID
42  #error This library is available on android platforms only!
43 #endif // _ANDROID
44 
45 // Defines OCEAN_MEDIA_OPENIMAGELIBRARIES_JNI_EXPORT for dll export and import.
46 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
47  #ifdef USE_OCEAN_ANDROID_WIN_EXPORT
48  #define OCEAN_MEDIA_OPENIMAGELIBRARIES_JNI_EXPORT __declspec(dllexport)
49  #else
50  #define OCEAN_MEDIA_OPENIMAGELIBRARIES_JNI_EXPORT __declspec(dllimport)
51  #endif
52 #else
53  #define OCEAN_MEDIA_OPENIMAGELIBRARIES_JNI_EXPORT
54 #endif
55 
56 }
57 
58 }
59 
60 }
61 
62 }
63 
64 #endif // META_OCEAN_MEDIA_OPENIMAGELIBRARIES_JNI_JNI_H
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15