DirectShow - How to rotate web cam preview video?

二次信任 提交于 2019-12-12 01:42:44

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!