mf
24th November 2003, 16:14
I was writing some new functions while suddenly I got this:
http://mf.creations.nl/convertbug.png
While calling this function:
function PointConvertToYV12(clip input, bool "silent") {
silent = Default(silent, false) # stfu and convert anyway if input is YV12
input.PointResize(input.width*2, input.height*2)
ConvertToYV12()
big = last
input.ConvertToYV12().GreyScale()
y = last
big.UToY()
PointResize(input.width/2, input.height/2)
u = last
big.VToY()
PointResize(input.width/2, input.height/2)
v = last
YToUV(u, v, y)
converted = last
isnotyv12 = input.IsYV12() ? false : true
silent ? Assert(isnotyv12, "Input is YV12, you're doing a useless conversion. Set silent=true \
to get rid of this msg.") : nop()
return converted
}
This happens only when input is RGB. Input size was 640x480.
http://mf.creations.nl/convertbug.png
While calling this function:
function PointConvertToYV12(clip input, bool "silent") {
silent = Default(silent, false) # stfu and convert anyway if input is YV12
input.PointResize(input.width*2, input.height*2)
ConvertToYV12()
big = last
input.ConvertToYV12().GreyScale()
y = last
big.UToY()
PointResize(input.width/2, input.height/2)
u = last
big.VToY()
PointResize(input.width/2, input.height/2)
v = last
YToUV(u, v, y)
converted = last
isnotyv12 = input.IsYV12() ? false : true
silent ? Assert(isnotyv12, "Input is YV12, you're doing a useless conversion. Set silent=true \
to get rid of this msg.") : nop()
return converted
}
This happens only when input is RGB. Input size was 640x480.