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...