View Single Post
Old 13th January 2012, 22:07   #284  |  Link
Nickliverpool
Registered User
 
Join Date: Oct 2010
Location: Russia
Posts: 1
Hello, is this a bug? I think it's a bug

Code:
in = FFmpegSource2("F:\BigBuckBunny_320x180.mp4")
in_r = in.ConvertToYV24(chromaresample="point").ConvertToYV12(chromaresample="point")
Subtract(in, in_r)


and...
Code:
i = ImageSource("p.bmp").ConvertToYV24(chromaresample="point")
i_u = i.UToY()
i_v = i.VToY()
i_y = i.Grayscale()

i2 = i.ConvertToYUY2(chromaresample="point").ConvertToYV24(chromaresample="point")
i2_u = i2.UToY()
i2_v = i2.VToY()
i2_y = i2.Grayscale()

i12 = i.ConvertToYV12(chromaresample="point").ConvertToYV24(chromaresample="point")
i12_u = i12.UToY()
i12_v = i12.VToY()
i12_y = i12.Grayscale()

w = 128
h = 64
StackHorizontal(i.PointResize(w,h),i2.PointResize(w,h), i12.PointResize(w,h))
StackHorizontal(i_u.PointResize(w,h),i2_u.PointResize(w,h), i12_u.PointResize(w,h))
StackHorizontal(i_v.PointResize(w,h),i2_v.PointResize(w,h), i12_v.PointResize(w,h))
The source image:
The result:




Nickliverpool is offline   Reply With Quote