Windows Mobile / Directdraw:旋转视频流
跟进: Directdraw:旋转视频流
我设法预览相机的视频流,但图像旋转 90° 为横向模式。我现在正在寻找一种将相机图像旋转回正常状态的方法,但问题是我什至不知道从哪里开始:这是在 DDSURFACEDESC 结构中的 VideoCaptureFilter、VideoInfoHeader 中完成的吗?只能通过使用附加过滤器来完成旋转吗?是过滤设置吗?
Follow up from: Directdraw: Rotate video stream
I managed to preview the camera's video stream, but the image is rotated by 90° to landscape mode. I'm now searching for a way to rotate the camera image back to normal, but the problem is I don't even know where to start: Is this done in the VideoCaptureFilter, the VideoInfoHeader, in a DDSURFACEDESC structure? Can the rotation only be done by using an additional filter? Is it a filter setting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现这通常是通过 BI_SRCPREROTATE 标志来完成的:
来自 http://www .tech-archive.net/Archive/PocketPC/microsoft.public.pocketpc.developer/2005-12/msg00850.html
示例代码可能如下所示:
来自 http://innovator.samsungmobile.com/bbs/discussion/view。 do?parentCategoryId=4&messageId=45549&boardId=224&platformId=2
但是,此方法不适用于我正在使用的 HTC HD2,但它可能适用于其他设备,因此我决定将其添加到我的问题。
I found out that this is usually done with the BI_SRCPREROTATE flag:
From http://www.tech-archive.net/Archive/PocketPC/microsoft.public.pocketpc.developer/2005-12/msg00850.html
Sample code might look like this:
From http://innovator.samsungmobile.com/bbs/discussion/view.do?parentCategoryId=4&messageId=45549&boardId=224&platformId=2
This method however is not working with the HTC HD2 I am using, but it might work with other devices, so I decided to add this to my question.