Video flip/mirror left to right - is it possible ?

Oct 25, 2007 at 1:47 PM
Hi everyone!

Is there any possibility to "flip" or "mirror" video stream (in camtest application) from left to right ?
In other words, if normal videostream is "123456" the flipped one should be "654321". Floor and ceiling should be the same.
I am asking this because i want to use PPC+web cam as an rear view camera for my car. Right now the videostream is inverted from left to right if used for this purpose.

Maybe there is a program to flip PPC's screen abovementioned way? If it helps i have Acer n311, wm2005 + Logitech QC 5000.

p.s. thank you very much for your driver! It is a great thing to have and use.
Coordinator
Oct 30, 2007 at 4:30 PM
I haven't written the code, but it wouldn't be hard to write. The easiest method would be to flip the bitmap image after its converted from JPEG. That happens in the CamTest2 app in the file mjpeg2bmp in the routine DisplayBitmap. First just try swapping the rectangle coordinates to see of the Draw method would do the work for you. Otherwise, draw to a memory device context and then do the flip/swap in a blit to the display.

Doug