#include <fsDShowFilterDetector.h>
Public Member Functions | |
| const AM_MEDIA_TYPE * | Get_MediaType () |
| const AM_MEDIA_TYPE * | DetectMediaType (HANDLE hFile, UINT64 uFileOkLen=_UI64_MAX) |
| fsDShowFilterDetector () | |
| virtual | ~fsDShowFilterDetector () |
Protected Member Functions | |
| BOOL | IsFilterMeets (HANDLE hFile, LPCSTR pszOffset, LPCSTR pszCb, LPCSTR pszMask, LPCSTR pszVal) |
| BOOL | IsFilterMeets (HANDLE hFile, LPCSTR pszCheckBytes) |
| BOOL | IsFilterMeets (HANDLE hFile, HKEY hkFilter) |
| const AM_MEDIA_TYPE * | DetectMediaType (HANDLE hFile, HKEY hkFiltrs) |
Protected Attributes | |
| UINT64 | m_uFileOkLen |
| AM_MEDIA_TYPE | m_mt |
Definition at line 16 of file fsDShowFilterDetector.h.
| fsDShowFilterDetector::fsDShowFilterDetector | ( | ) |
| fsDShowFilterDetector::~fsDShowFilterDetector | ( | ) | [virtual] |
Definition at line 23 of file fsDShowFilterDetector.cpp.
| const AM_MEDIA_TYPE * fsDShowFilterDetector::Get_MediaType | ( | ) |
Definition at line 50 of file fsDShowFilterDetector.cpp.
References m_mt.
Referenced by fsFileStream::Attach(), and fsFileStream::Get_MediaType().
| const AM_MEDIA_TYPE * fsDShowFilterDetector::DetectMediaType | ( | HANDLE | hFile, | |
| UINT64 | uFileOkLen = _UI64_MAX | |||
| ) |
Definition at line 28 of file fsDShowFilterDetector.cpp.
References GetFileSize(), m_uFileOkLen, and NULL.
Referenced by fsFileStream::Attach().
| BOOL fsDShowFilterDetector::IsFilterMeets | ( | HANDLE | hFile, | |
| LPCSTR | pszOffset, | |||
| LPCSTR | pszCb, | |||
| LPCSTR | pszMask, | |||
| LPCSTR | pszVal | |||
| ) | [protected] |
Definition at line 189 of file fsDShowFilterDetector.cpp.
References cb, FALSE, fsSetFilePointer(), GetFileSize(), m_uFileOkLen, NULL, and TRUE.
Referenced by DetectMediaType(), and IsFilterMeets().
| BOOL fsDShowFilterDetector::IsFilterMeets | ( | HANDLE | hFile, | |
| LPCSTR | pszCheckBytes | |||
| ) | [protected] |
Definition at line 125 of file fsDShowFilterDetector.cpp.
References FALSE, IsFilterMeets(), pos(), and TRUE.
| BOOL fsDShowFilterDetector::IsFilterMeets | ( | HANDLE | hFile, | |
| HKEY | hkFilter | |||
| ) | [protected] |
Definition at line 99 of file fsDShowFilterDetector.cpp.
References FALSE, IsFilterMeets(), NULL, and TRUE.
| const AM_MEDIA_TYPE * fsDShowFilterDetector::DetectMediaType | ( | HANDLE | hFile, | |
| HKEY | hkFiltrs | |||
| ) | [protected] |
Definition at line 55 of file fsDShowFilterDetector.cpp.
References CP_ACP, FAILED, IsFilterMeets(), m_mt, and NULL.
UINT64 fsDShowFilterDetector::m_uFileOkLen [protected] |
Definition at line 29 of file fsDShowFilterDetector.h.
Referenced by DetectMediaType(), fsDShowFilterDetector(), and IsFilterMeets().
AM_MEDIA_TYPE fsDShowFilterDetector::m_mt [protected] |
Definition at line 36 of file fsDShowFilterDetector.h.
Referenced by DetectMediaType(), fsDShowFilterDetector(), and Get_MediaType().
1.5.6