From: <ad...@us...> - 2003-02-26 17:07:48
|
Update of /cvsroot/bdadev/SimpleTV In directory sc8-pr-cvs1:/tmp/cvs-serv32569 Modified Files: SIMPLETV.CPP Log Message: Added VMR9 as default renderer Index: SIMPLETV.CPP =================================================================== RCS file: /cvsroot/bdadev/SimpleTV/SIMPLETV.CPP,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** SIMPLETV.CPP 21 Feb 2003 20:57:51 -0000 1.8 --- SIMPLETV.CPP 26 Feb 2003 17:07:41 -0000 1.9 *************** *** 857,860 **** --- 857,890 ---- + // Test VMR9 to see if there is improvement in deinterlacing on + // Radeon Cards + HRESULT CreateVMR9( + IN PAPPLICATION Application) + { + HRESULT Result; + + IBaseFilter* VMR9; + // create a FilterGraph2 object + Result = CoCreateInstance + ( + CLSID_VideoMixingRenderer9, + NULL, + CLSCTX_INPROC_SERVER, + IID_IBaseFilter, + (LPVOID *) &VMR9 + ); + + if(SUCCEEDED(Result)) + { + Result = Application->FilterGraph-> + AddFilter(VMR9, + L"VMR9"); + + VMR9->Release(); + } + + + return Result; + } /****************************************************************************** ***** DirectShow filter graph building and erasing functions ***** *************** *** 892,895 **** --- 922,931 ---- if (Result == S_OK) { + // try to create the VMR9 renderer + // if it fails don't worry as some other + // renderer will be added later + // must be added to the graph first though + Result = CreateVMR9(Application); + // try to add the cached BDA Network Filters to the graph Result = CreateNetworkFilters(Application); *************** *** 2854,2857 **** --- 2890,2896 ---- // // $Log$ + // Revision 1.9 2003/02/26 17:07:41 adcockj + // Added VMR9 as default renderer + // // Revision 1.8 2003/02/21 20:57:51 adcockj // Bug fixes to Tuneing space persist code |