如何更改输出引脚尺寸和尺寸DirectShow中的ColorSpace /压缩 [英] how to change OutPut Pin Size & ColorSpace/Compression in DirectShow

查看:80
本文介绍了如何更改输出引脚尺寸和尺寸DirectShow中的ColorSpace /压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改输出引脚尺寸和ColorSpace / DirectShow中视频源滤镜的压缩

how to change OutPut Pin Size & ColorSpace/Compression of a Video Source Filter in DirectShow

我想知道存储输出Pin PropertyPage数据的方式,以及如何通过我的代码更改这些数据

I want to Know whre the Output Pin PropertyPage Datas are stored and how can I Change those Datas By My Code

推荐答案

您可以使用 IPin :: EnumMediaTypes 在过滤器的输出引脚上,以获取受支持的媒体类型/视频格式的列表。

You can use IPin::EnumMediaTypes on your filter's output pin to get a list of supported media types / video formats.

然后,调用 IAMStreamConfig :: GetFormat 以AM_MEDIA_TYPE结构获取当前格式。根据需要修改此结构(确保设备支持您的格式),然后调用 IAMStreamConfig :: SetFormat 具有相同的结构。

Afterwards, call IAMStreamConfig::GetFormat to get the current format in an AM_MEDIA_TYPE structure. Modify this structure as you wish (make sure your format is supported by the device), and call IAMStreamConfig::SetFormat with the same structure.

这篇关于如何更改输出引脚尺寸和尺寸DirectShow中的ColorSpace /压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆