DirectShow filter to queue samples and pass them downstream when needed

Madhu 1 Reputation point
2021-08-25T14:47:58.463+00:00

I am writing a custom filter that helps in buffering samples (the number of buffered samples can vary depending on the resolution of recorded video) then do some modifications on these samples, later pass these samples to downstream filters.

Is there any directshow filter that my custom filter can derive from, to achieve this?

Currently i have my custom filter derived from CTransformFilter, but i am not sure how to pass the buffered frames downstream only when an event occurs.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,446 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,559 questions
0 comments No comments
{count} votes