问题
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 ?
回答1:
MSDN describes it in Writing Transform Filters, and you will find some related discussions:
- I want to Rotate a video with some angle
- Need help on video in portrait mode
The supposed transform filter needs to rearrange pixels in the data buffer, and also indicate the rotation on the media type.
来源:https://stackoverflow.com/questions/11863628/directshow-how-to-rotate-web-cam-preview-video