summaryrefslogtreecommitdiff
path: root/sys/androidmedia/gstjniutils.c
Commit message (Collapse)AuthorAgeFilesLines
* androidmedia: Support float i-frame-intervalJan Schmidt2020-02-091-0/+22
| | | | | | Android 25 added support for i-frame-interval to be a floating point value. Store the property as a float and use the newer version when it's available.
* documentation: fixed a heap o' typosAaron Boxer2019-11-051-3/+3
|
* amc: Move MediaCodec JNI wrapper into its own moduleXavier Claessens2019-08-201-235/+0
| | | | | This will facilitate adding another implementation based on NdkMediaCodec instead of JNI.
* amc: actually use the provided application class loaderMatthew Waters2017-09-051-1/+8
| | | | | | | For the camera and sensor Fixes a couple of ClassNotFound java exceptions when initializing GStreamer off the main thread.
* androidmedia: Actively request the Java VM from the applicationSebastian Dröge2017-01-031-0/+29
| | | | | This is more consistent with how we already request the application class loader and other application resources elsewhere.
* amcvideodec: getOutputBuffers() returns a NULL array when a surface was ↵Sebastian Dröge2016-03-111-1/+6
| | | | | | | | configured So don't error out if it does. https://bugzilla.gnome.org/show_bug.cgi?id=763401
* androidmedia: Add support for GL output in amcvideodecMatthieu Bouron2015-10-211-0/+77
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=731204
* androidmedia: Allow object to be NULL in gst_amc_jni_*unref functionsMatthieu Bouron2015-10-211-0/+4
|
* androidmedia: Call initialize_classes() also when we got the Java VM from ↵Sebastian Dröge2015-06-291-1/+1
| | | | | | the app https://bugzilla.gnome.org/show_bug.cgi?id=751664
* androidmedia: Allow the application to provide the Java VMSebastian Dröge2015-06-181-0/+13
| | | | | | | | | | | In JNI_OnLoad() we will already get the Java VM passed and could just directly use that. gstreamer_android-1.0.c will now provide this to us. Reason for this is that apparently not all Android system are providing the JNI functions to get the currently running Java VMs, so we would fail to get. With this we will always be able to get the Java VM on such systems.
* androidmedia: Failing to detach a thread is not that much of a problemSebastian Dröge2015-06-181-1/+1
| | | | | Someone else might have detached it before us, so make this just normal debug output instead of a GST_ERROR()
* androidmedia: Don't fail if JNI_CreateJavaVM can't be foundSebastian Dröge2015-06-181-3/+9
| | | | | | | | | We only need that if no Java VM is running yet, and all usual cases, i.e. when calling GStreamer from an actual Android app, there will already be a Java VM we can just use. It seems like some phones come without that symbol, let's hope they come with the other symbol but for now don't make a missing JNI_CreateJavaVM fatal.
* androidmedia: Conditionally use get_{input,output}_buffer() Android 21 APIsSebastian Dröge2015-05-311-1/+178
| | | | | Also properly set limit/position on byte buffer, some codecs prefer to have correct values there.
* amc: Allow creating global and local references of objectsSebastian Dröge2015-04-111-11/+20
|
* amc: Make GError argument order more consistentSebastian Dröge2015-04-111-56/+60
|
* amc: Add helper function for getting a direct buffer arraySebastian Dröge2015-04-111-0/+62
|
* amc: Java longs are gint64sSebastian Dröge2015-04-111-4/+4
|
* amc: Improve JNI utilities and add some missing onesSebastian Dröge2015-04-111-97/+154
| | | | | | We now fill GErrors for everything that could throw an exception, and method calls now always return a gboolean and their value in an out-parameter to distinguish failures from other values.
* androidmedia: Add helpers for calling static methodsSebastian Dröge2015-03-151-0/+46
|
* androidmedia: Fix indentionSebastian Dröge2015-03-151-11/+11
|
* androidmedia: Add more JNI helper functionsMatthieu Bouron2015-03-151-0/+242
|
* androidmedia: Split jni code to gstjniutils.cMatthieu Bouron2015-03-151-0/+484