问题描述
我正在使用DirectShow ICaptureGraphBuilder2,IVideoWIndow& IGraphBuilder可以将网络摄像头视频预览到指定窗口中。
我可以成功预览网络摄像头视图。现在,我想将此网络摄像头预览旋转90度。浏览过网络的人们建议使用变换过滤器,但我并没有确切地找到方法。有人可以帮忙吗?
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 ?
推荐答案
MSDN在,您会发现一些相关的讨论:
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.
这篇关于DirectShow-如何旋转网络摄像头预览视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!