Sebastian Dröge
7341ed62fa
Add some more default channel layouts, these should be good for AAC at least
2012-10-15 16:28:42 +02:00
Sebastian Dröge
41862dff59
Ignore the *law and Vorbis decoders
...
They are broken unfortunately.
2012-10-15 16:28:42 +02:00
Sebastian Dröge
742816df69
Remove some obsolete FIXMEs
2012-10-15 16:28:41 +02:00
Sebastian Dröge
77fbaae250
Add support for audio decoders, completely untested so far
2012-10-15 16:28:40 +02:00
Sebastian Dröge
290d6f61c5
Ignore codecs with unknown color formats for stability purposes
...
They can be registered nonetheless if an environment variable
or compile-time #define is set.
2012-10-15 16:28:40 +02:00
Sebastian Dröge
024ac3560d
Fix typo in previous commit
2012-10-15 16:28:39 +02:00
Sebastian Dröge
f2c5afd031
Don't allow using non-Google codecs if we started the Java VM ourselves
...
Hardware codecs, e.g. the TI ones, only work in processes that had their
Java VM started via the non-public AndroidRuntime class.
2012-10-15 16:28:39 +02:00
Sebastian Dröge
6feb6433d5
Rename to amc from androidmediacodec everywhere
2012-10-15 16:28:39 +02:00
Sebastian Dröge
0df00d68b5
Print the MediaFormats we get in the debug logs
2012-10-15 16:28:39 +02:00
Sebastian Dröge
d06af02637
Improve level/profile handling
2012-10-15 16:28:39 +02:00
Sebastian Dröge
2eff8bf82d
Allow registering as static plugin with the GStreamer SDK API
2012-10-15 16:28:39 +02:00
Sebastian Dröge
525ecbb76a
Fix plugin cache creation
2012-10-15 16:28:38 +02:00
Sebastian Dröge
e7b21d5796
Cache the codec informations inside the registry
...
Otherwise we would always load all codecs during plugin initialization
which can take quite some time (because of hardware) and also loads
lots of shared libraries (which number is limited by 64 in Android).
2012-10-15 16:28:38 +02:00
Sebastian Dröge
a98a627370
Properly attach and detach the current threads to the Java VM
...
Attaching a thread after it was detached will cause segfaults,
as such we use a pthread_key_t to keep track of the JNIEnv* of
the attached threads and in the destructor (i.e. when the
thread exits) we detach the thread.
2012-10-15 16:28:38 +02:00
Sebastian Dröge
30b25fea35
Fix JNI method call signatures
2012-10-15 16:28:38 +02:00
Sebastian Dröge
686b9cf2fa
Initialize the VM will full debugging for now
2012-10-15 16:28:37 +02:00
Sebastian Dröge
d7148efb8e
Use NewStringUTF() instead of our own method for that
2012-10-15 16:28:37 +02:00
Sebastian Dröge
5bbaa1f359
Add the TI format to the mapping table too
2012-10-15 16:28:37 +02:00
Sebastian Dröge
e9790ae693
Add another TI specific OpenMAX color format
2012-10-15 16:28:37 +02:00
Sebastian Dröge
4966f68512
Fixes to element/elementfactory creation
2012-10-15 16:28:37 +02:00
Sebastian Dröge
32d4d29706
Some bugfixes to the codec scanning code
...
Also it's not possible to attach a thread after it was
detached once. As such we simply never detach any thread
at all now.
2012-10-15 16:28:37 +02:00
Sebastian Dröge
a48d2feae0
Fix some compilation errors
2012-10-15 16:28:37 +02:00
Sebastian Dröge
1e73da2941
Add video decoder element
2012-10-15 16:28:37 +02:00
Sebastian Dröge
c846605082
Add some more JNI wrapping
2012-10-15 16:28:37 +02:00
Sebastian Dröge
d0ebf261ff
Implement basic wrapper around MediaCodec API
...
Ideally nothing else will be needed from the elements later.
2012-10-15 16:28:37 +02:00
Sebastian Dröge
f99214a657
Some more WIP
...
Scanning all codecs now and have data structures for holding codec
information and codec contexts. Also function declarations for
working with them.
2012-10-15 16:28:36 +02:00
Sebastian Dröge
8f232ea90b
Initial commit
2012-10-15 16:28:36 +02:00