Tag: 炼金术

从C返回的ByteArray格式无效

以下是代码段: AS方:( img引用实例) bitmapData = Bitmap(img.content).bitmapData; var pixels:ByteArray = bitmapData.getPixels(bitmapData.rect); pixels.position = 0; var output:ByteArray = new ByteArray(); img_width = bitmapData.width; img_height = bitmapData.height; ////invoke C code by alchemy lomoEncoder.encode(pixels, output, img_width, img_height); var newImage:Image = new Image(); //can’t show the image newImage.source = output; C代码: AS3_Val dest; AS3_Val source; unsigned char* pixels = (unsigned […]

如何通过Alchemy gcc编译ffmpeg?

所以我创建了ffmpeg配置文件,使其成为纯C(独立于平台,但理论上只是) 所以我的配置很简单(0.6.1,0.6.3测试): ./configure –disable-doc –disable-ffplay –disable-ffprobe –disable-ffserver –disable-avdevice –disable-avfilter –disable-pthreads –disable-everything –enable-muxer=flv –enable-encoder=flv –enable-encoder=h263 –disable-mmx –disable-shared –prefix=bin/ –disable-protocols –disable-network –disable-optimizations –disable-debug –disable-asm –disable-stripping 在Linux上进行编译将在4个库中解析,总大小为1 mb。 但我需要使用自定义编译器编译ffmpeg(开源gcc模拟称为Adobe Alchemy ,让我们将C / c ++编译到Flash中) 它在标准化过程中给出了几乎每个文件的错误: Array @ARGV missing the @ in argument 1 of shift() at /home/rupert/Downloads/alchemy-ubuntu-v0.5a/achacks/gcc line 218. cc1: error: unrecognized command line option “-Wtype-limits” cc1: error: […]