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 ?
DirectShow - How to rotate web cam preview video?
Asked Answered
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.
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.