Discussion:
IWMReader with custom allocated buffers
(too old to reply)
Richard Koch
2010-04-08 16:49:02 UTC
Permalink
I am rendering a movie using the IWMReader interface. It works fine, but I
have performance problems. After optimizing all I could, I now want to create
my own buffers for the samples which should be used by the reader. I think I
made all according to the description which is given in the SDK.
I implemented the IWMReaderCallbackAdvanced interface and defined its
methods. I set SetAllocateForOutput() to TRUE which should cause the reader
to call the AllocateForOutput callback, but the reader doesn't. Why? What
have I missed? Is there a source code available?

Thanks for help,
Richard
Richard Koch
2010-04-08 17:13:01 UTC
Permalink
I have found out that GetAllocateForOutput() called after
SetAllocateForOutput(TRUE) return FALSE, so the reader has not accepted my
wish. Why?

Thanks, Richard
Post by Richard Koch
I am rendering a movie using the IWMReader interface. It works fine, but I
have performance problems. After optimizing all I could, I now want to create
my own buffers for the samples which should be used by the reader. I think I
made all according to the description which is given in the SDK.
I implemented the IWMReaderCallbackAdvanced interface and defined its
methods. I set SetAllocateForOutput() to TRUE which should cause the reader
to call the AllocateForOutput callback, but the reader doesn't. Why? What
have I missed? Is there a source code available?
Thanks for help,
Richard
Alessandro Angeli
2010-04-08 17:18:27 UTC
Permalink
From: "Richard Koch"
Post by Richard Koch
I have found out that GetAllocateForOutput() called after
SetAllocateForOutput(TRUE) return FALSE, so the reader has not
accepted my wish. Why?
Did you check the result code of the call?
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Richard Koch
2010-04-08 20:24:03 UTC
Permalink
Yes sure. It was S_OK.
Post by Alessandro Angeli
From: "Richard Koch"
Post by Richard Koch
I have found out that GetAllocateForOutput() called after
SetAllocateForOutput(TRUE) return FALSE, so the reader has not
accepted my wish. Why?
Did you check the result code of the call?
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
.
Alessandro Angeli
2010-04-08 20:29:16 UTC
Permalink
Replied in m.p.win32.p.dx.video.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Loading...