pixel-bender

help converting this as3 code to pixel bender code

依然范特西╮ 提交于 2020-01-25 12:24:03
问题 I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine. The whole aim

help converting this as3 code to pixel bender code

僤鯓⒐⒋嵵緔 提交于 2020-01-25 12:22:00
问题 I'm looking for some help converting as3 code to pixelbender code in an attempt to improve the performance of my application. This as3 code goes as follows. I scan through the Number values of a bytearray in chunks. Lets say this chunk lenght was 100 numbers I read 2 numbers (left and right) and try find the maximum values. The numbers in my bytearray are PCM data so there is millions of them and this code can often take a long time to execute, especially on a low spec machine. The whole aim

Programmatically Mixdown of audio tracks (no playback)

感情迁移 提交于 2019-12-10 20:17:27
问题 I've found some excellent demos of how to mix together sound objects together for live playback. See the working example bellow... But can it be done programmatically without any playback so I can just output the mixed file? Also I'll be adding some volume change info along the way so it'll need to be added in small chunks like how the play buffer works. [Embed(source = "audio/track01.mp3")] private var Track1:Class; [Embed(source = "audio/track02.mp3")] private var Track2:Class; [Embed

using PixelBender to double the size of a bitmap

≡放荡痞女 提交于 2019-12-05 00:28:10
问题 I have a performance question about pixel bender. I want to enlarge many BitmapData (double their size into new BitmapData). I was doing this with as3, but wanted to use pixel bender to get better performance. On my machine, I get better performance out of pixel bender demonstrations then as3. To my surprise (or bad coding / understanding), I am getting much worse performance out of pixel bender -- 2 seconds vs 1/2 second! I expected to get at least the same performance as as3. What am I

using PixelBender to double the size of a bitmap

点点圈 提交于 2019-12-03 15:40:32
I have a performance question about pixel bender. I want to enlarge many BitmapData (double their size into new BitmapData). I was doing this with as3, but wanted to use pixel bender to get better performance. On my machine, I get better performance out of pixel bender demonstrations then as3. To my surprise (or bad coding / understanding), I am getting much worse performance out of pixel bender -- 2 seconds vs 1/2 second! I expected to get at least the same performance as as3. What am I doing wrong? I got the straightforward pixel bender code here (and it is included below for easy reference)