Log in

View Full Version : Independently resizing chroma - is there a better way?


Paul Curtis
13th June 2009, 23:14
Okay, so I want to go from 720x576 YV12 (progressive) to 720x480 YUY2, and I want to do it without double-scaling the chroma--i.e., I want to go directly from 288->480 lines, with no intervening interpolation. And since AviSynth 2.6 (with its Y8 support) is still in the future, this is what I'm using at the moment:

ytouv(converttoyuy2(bilinearresize(utoy(),360,480)),converttoyuy2(bilinearresize(vtoy(),360,480)),converttoyuy2(bilinearresize(720,480)))

My question: Can anyone think of a more efficient means of accomplishing this task? I'm sure all those extra resize operations must be slowing things down somewhat.

Thanks very much!

Sagekilla
14th June 2009, 21:02
Resizing is a very fast operation. You're probably not going to notice a speed loss at all.

Paul Curtis
14th June 2009, 22:06
Well, that's a relief. Thank you!