Make Custom Directshow fiter to accept Parameters

喜欢而已 提交于 2019-12-13 06:37:20

问题


I Created a CTransformFilter, this is used to Resize the output video. It is working with default values which i gave in the code.

Is it possible to make this filter receive values, i mean when i create Instance of this filter in my code is it possible to pass the values say like

Resizer->width = 100

Resizer->height = 50

here Resizer is the filter.


回答1:


You want to implement a "private interface" on your filter and then the controlling application will use it to communicate with the filter.

See using methods of filter from dll file for details discussed in a similar question.



来源:https://stackoverflow.com/questions/14211953/make-custom-directshow-fiter-to-accept-parameters

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