mediafoundation: Investigate buffer/memory pool implementation
GStreamer's MFT implementation calls MFCreateSample
and MFCreateMemoryBuffer
per input buffer, but it's extremely inefficient.
Need to investigate whether we can implement custom IMFSample
and IMFMediaBuffer
class
so that reuse already allocated memory.
Note that media foundation provides a way to tracking IMediaSample https://docs.microsoft.com/ko-kr/windows/win32/api/mfidl/nn-mfidl-imftrackedsample but it's not exactly what we can use and usable scenario is very restricted.