看完Jeff Sharkey great Google I/O presentation后踢脚踢写一些renderscript加快我现有的音频处理项目。第一个问题是,在给出的示例代码中,第一行代码中的转换函数没有记录在任何地方。由于至少不是http://developer.android.com/guide/topics/renderscript/reference.html数据类型转换函数中是否有任何renderscript文档?
float4 inColor = convert_float4(*inPixel);
嘛功能convert_float4()在本例中是明显不够了解它做什么。但在我的情况下,我想知道它是否存在其他内置转换,如从char到float,我猜可能是convert_float(char *)?