fishwjy / VideoCompressor

A High-performance video compressor for Android using Hardware decoding and encoding API(MediaCodec).
Apache License 2.0
907 stars 192 forks source link

Why was there Jni code or so library for the native method "com.vincent.videocompressor.VideoController.convertVideoFrame" #2

Closed navyifanr closed 6 years ago

navyifanr commented 6 years ago

In the VideoController.java, for the native method convertVideoFrame

public native static int convertVideoFrame(ByteBuffer src, ByteBuffer dest, int destFormat, int width, int height, int padding, int swap);

I don't find any JNI code or so library, it maybe has some bug for the API 16-17. So how to fix the bug? Can you get some ideas?

fishwjy commented 6 years ago

This library don't have any C/C++ code. All the feature has been done by MediaCodec + OpenGL API.