vertical flip

13 views
Skip to first unread message

HASM

unread,
Aug 1, 2012, 8:03:25 PM8/1/12
to pixf...@googlegroups.com
I used to do yuv422 to rgb32 conversion with huffyuv (used to live here http://www.math.berkeley.edu/~benrg/huffyuv.html, didn't google for a new location).That code was basically 32 bit assembly code, which obviously doesn't work well on x86_64 architectures.
I've now replaced that code with equivalent code from PixFC-SSE, but interestingly when I replace a call to mmx_UYVYtoRGB32 with a PixFC-SSE conversion from PixFcUYVY to PixFcBGRA, my output image is flipped vertically and thus could require extra code to get it "right".  In my case it actually doesn't, as a different stride of the buffer I will eventually copy it to forces me to copy it row by row, so it doesn't really matter, but I'm curious which routine is doing the "right" thing.

Pix FC

unread,
Aug 1, 2012, 8:29:25 PM8/1/12
to pixf...@googlegroups.com
I dont think either is doing something wrong. I ve seen some 32-bit RGB frames vertically flipped, and some not. I will add a vertical_flip flag to PixFC, but in the meantime, you could hack the conversion routine to do just that. Let me know if you want to go down that path and need help.
Frank
Reply all
Reply to author
Forward
0 new messages