Is it correct that the filters transform method gets called whener one of the input pins sends data? If yes: How do I determine in the filter transform method which input pin it is?
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
- What uses more memory in c++? An 2 ints or 2 funct
相关文章
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
- Converting glm::lookat matrix to quaternion and ba
- What is the correct way to declare and use a FILE
There is no built in way to do this. If your filter has multiple input pins, and each pin provides a distinct media type, you can figure out which pin by using the media type. Another way to do this may be to assign a unique id to each instance of your input pin and pass this on to your transform function. You may have to derive your input pin from the base class to do this.
Transform
is the method onCTransformFilter
class. From MSDN:On a single input pin filter, the method is designed to not give any identification as for data source, since there is one pin in first place where data could come from.
In general, data is coming to an input pin through
IMemInputPin::Receive
method. If you override it on pin class, you can attach information identifying source when passing data to filter class.