alfbrajn
Joined: 14 Mar 2006
Posts: 1
|
Posted:
Tue Mar 14, 2006 12:55 pm Post subject:
Problem with formats in DSP plugin |
|
|
I have written WMP DSP plugin which is augmenting video stream. I'm using the libraries which can operate only on RGB24 or RGB32 formats so these
ones I would like to receive (and output) in my DSP plugin. Encoder is also under my control.
When I was used WM8 version formats there were no problems. GetCaps method were unimplemented. I was endcoding RGB video and I was given such an format in my DSP plugin.
When I switched to WMMEDIASUBTYPE_WMV3 wihtout GetCaps implemented plugin is just ignored for this media subtype. When GetCaps is implemented and I'm returning 0 (suggesting I can convert formats) for WM8 it still passes RGB to me (it is OK). For WMMEDIASUBTYPE_WMV3 on encoder site it proposes me MEDIASUBTYPE_YV12 and nothing else . Things go even worse with WMPPlugin_Caps_CannotConvertFormats returned from GetCaps. The only format proposed is MEDIASUBTYPE_YV12 both for WM8 or WMMEDIASUBTYPE_WMV3 encoded formats. According to documentation :
"...WMPPlugin_Caps_CannotConvertFormats, forces Windows Media Player to handle any necessary format conversion"
For me it is not working. What should I do to force WMP to give me video in RGB formats? Is it possible?
--
Regards
md
|
|