I'm porting a few larger video codecs to Renderscript. I have just manage to port libx264 and have it encode to a raw H.264 stream. I did that by merging the library using CIL and making globals static, as well as porting Androids own libc string and some stdio functions (merging) and a heap allocation function that use a preallocated buffer.
Now I want to port libvpx. This library uses variable arguments to more central functions than libx264 did (basically the only part I needed to comment out in libx264 was the logging the rest is just configured correct and a few macro definitions to replace things).
So my question is has anyone any tip of how to use variable argument lists for static functions in Renderscript? Google state that Renderscript is C99 compliant so it must be possible in some manner. If anyone have a suggestion for a hack for this let me know if it is not currently supported.
/Harald