Example #1
0
STDAPI DllRegisterServer()
{
	CAtlList<CString> chkbytes;
	chkbytes.AddTail(_T("0,2,FFE0,FFE0"));
	chkbytes.AddTail(_T("0,10,FFFFFF00000080808080,49443300000000000000"));
	RegisterSourceFilter(CLSID_AsyncReader, MEDIASUBTYPE_MPEG1Audio, chkbytes, NULL);

	return AMovieDllRegisterServer2(TRUE);
}
Example #2
0
STDAPI DllRegisterServer()
{
    RegisterSourceFilter(
        CLSID_AsyncReader,
        MEDIASUBTYPE_Ogg,
        _T("0,4,,4F676753"), // OggS
        _T(".ogg"), _T(".ogm"), NULL);

    return AMovieDllRegisterServer2(TRUE);
}
Example #3
0
STDAPI DllRegisterServer()
{
    CString str;
    str.Format(_T("0,%d,,%%0%dI64x"), DSMSW_SIZE, DSMSW_SIZE * 2);
    str.Format(CString(str), DSMSW);

    RegisterSourceFilter(
        CLSID_AsyncReader,
        MEDIASUBTYPE_DirectShowMedia,
        str, nullptr);

    return AMovieDllRegisterServer2(TRUE);
}
Example #4
0
// self-registration entrypoint
STDAPI DllRegisterServer()
{
  std::list<LPCWSTR> chkbytes;

  // BluRay
  chkbytes.clear();
  chkbytes.push_back(L"0,4,,494E4458"); // INDX (index.bdmv)
  chkbytes.push_back(L"0,4,,4D4F424A"); // MOBJ (MovieObject.bdmv)
  chkbytes.push_back(L"0,4,,4D504C53"); // MPLS
  RegisterSourceFilter(__uuidof(CLAVSplitterSource),
    MEDIASUBTYPE_LAVBluRay, chkbytes, nullptr);

  // base classes will handle registration using the factory template table
  return AMovieDllRegisterServer2(true);
}
Example #5
0
STDAPI DllRegisterServer()
{
	RegisterSourceFilter(CLSID_AsyncReader, MEDIASUBTYPE_Nut, _T("0,8,,F9526A624E55544D"), _T(".nut"), NULL);

	return AMovieDllRegisterServer2(TRUE);
}