I thought about that.. even making it so there isn't several malloc()/free() calls per frame (using the same 2 buffers over and over). Would be pretty easy and not break the prettiness of the code. :^)
But I'm pretty sure the throughput is limited mainly by ffmpeg decoding and encoding, and the operating system throttling the pipe transfers, so I decided to leave my code pretty. If I do ffmpeg ...blahblah... | d90trans > /dev/null, it goes about 10x faster than it does when I'm also encoding the output.
I'm just hoping someone will point me to a good intermediate video format to convert into that cinelerra can handle that doesn't take up huge amounts of space.
But I'm pretty sure the throughput is limited mainly by ffmpeg decoding and encoding, and the operating system throttling the pipe transfers, so I decided to leave my code pretty. If I do ffmpeg ...blahblah... | d90trans > /dev/null, it goes about 10x faster than it does when I'm also encoding the output.
I'm just hoping someone will point me to a good intermediate video format to convert into that cinelerra can handle that doesn't take up huge amounts of space.