问题
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