View Single Post
Old 16th January 2014, 18:23   #9  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,308
I have a little question.
For now, i'm doing this :
Code:
					AVSValue vy = env->Invoke("ConvertToY8",v).AsClip();
					AVSValue vu = env->Invoke("UtoY",v).AsClip();
					vu = env->Invoke("ConvertToY8",vu).AsClip();
					AVSValue vv = env->Invoke("VtoY",v).AsClip();
					vv = env->Invoke("ConvertToY8",vv).AsClip();
If i'm doing the code below, will it be faster ?
Code:
					AVSValue vu = env->Invoke("UtoY",v).AsClip();
					vu = env->Invoke("ConvertToY8",vu).AsClip();
					AVSValue vv = env->Invoke("VtoY",v).AsClip();
					vv = env->Invoke("ConvertToY8",vv).AsClip();
					v = env->Invoke("ConvertToY8",v).AsClip();
In that last case, vy doesn't exist anymore, and i'll use v instead.
Question asked differently : Is there a better way to convert/transform v directly in Y8 ?
Because transforming an YV16 data to Y8 is instantaneous. I want if possible avoid an unecessary memory transfer of planar Y. And i have the feeling (but maybe totaly wrong), that doing something like "v = v(converted)" will create a transfer. If there was something like "v.convert", i'll had no wories...

Last edited by jpsdr; 16th January 2014 at 18:29.
jpsdr is offline   Reply With Quote