Log in

View Full Version : What's the fastest way to turn YV12 into RGB32?


MasamuneXGP
4th September 2006, 19:13
Greetings all. I'm writing a video-based program that gets video through directshow. For processing, I need the video to be in RGB32, but most filters like to output some YUV format, usually YV12. I'm somewhat inexperienced with color spaces, but after looking at the definitions, I coded a conversion function that converts YV12 to RBG32. However, I get the feeling there's a faster way. Is there some conversion code, maybe in assembly or something, that people use to do this?

buzzqw
4th September 2006, 19:22
even if i am not a developer... avisynth source code should have all your need

BHH

sh0dan
5th September 2006, 21:22
Short answer: Xvid should have the code you need.

Long answer: ... but you may not get the quality you need. If speed is what you need, XviD is probably the best.

The avisynth converters are rather complex to handle chroma interpolation better. AviSynth 2.5.x does YV12 -> YUY2 -> RGB, 2.6 does YV12 -> YV24 -> RGB, so there isn't any direct conversion in either case.