I am thinking about using hardware encoding on my Nexus Tablet, since I need to use some video algorithm, I want to make it C.
There is a native-media sample in Google NDK which support native use of OMX
to do the decode job. But it seems that it doesn't support encode yet. Now we have the MediaCodec API, which can provide the hardware encode. I check the java file, it seems that most of it function is written in C. So I am wondering if this is possible:
1)find the corresponding C files
2)compile these C file into .so file
3)write a .cpp file according to the MediaCodec.java file, this .cpp file will call the functions in the .so file and perform the similar function as MediaCodec.java.
Then I can do the encode in C.
Is that right? And is that possible? If that possible, do i need to modify the system on my tablet?
Thank you!