Move files from gst-plugins-bad into the "subprojects/gst-plugins-bad/" subdir
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-bad / sys / androidmedia / jni / gstamc-internal-jni.h
1 /*
2  * Copyright (C) 2012,2018 Collabora Ltd.
3  *   Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation
8  * version 2.1 of the License.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
18  *
19  */
20
21 #ifndef __GST_AMC_INTERNAL_JNI_H__
22 #define __GST_AMC_INTERNAL_JNI_H__
23
24 #include "../gstamc-codec.h"
25 #include "../gstamc-format.h"
26
27 G_BEGIN_DECLS
28
29 struct _GstAmcFormat
30 {
31   /* < private > */
32   jobject object;               /* global reference */
33 };
34
35 typedef struct
36 {
37   guint8 *data;
38   gsize size;
39
40   jobject object;               /* global reference */
41 } RealBuffer;
42
43 gboolean
44 gst_amc_buffer_get_position_and_limit (RealBuffer * buffer_, GError ** err,
45     gint * position, gint * limit);
46
47 G_END_DECLS
48
49 #endif /* __GST_AMC_INTERNAL_JNI_H__ */