DirectShow - How to rotate web cam preview video?
Asked Answered
J

1

0

I am using DirectShow ICaptureGraphBuilder2, IVideoWIndow & IGraphBuilder to preview web cam video into specified window. I am successful to preview web cam view. Now, I want to rotate this web cam preview by 90 degree. Explored web and people suggest to use transform filter but I didn't exactly find how to do it. Can somebody help ?

Jehiel answered 8/8, 2012 at 11:34 Comment(0)
P
0

MSDN describes it in Writing Transform Filters, and you will find some related discussions:

The supposed transform filter needs to rearrange pixels in the data buffer, and also indicate the rotation on the media type.

Paletot answered 8/8, 2012 at 12:1 Comment(2)
Thanks Roman. Can you point to any code ? will be more helpful.Jehiel
Why not? There is Rotate Filter on Video Processing Project at SourceForge.Paletot

© 2022 - 2024 — McMap. All rights reserved.