#include <NativeFLACSourceFilter.h>
Collaboration diagram for NativeFLACSourceFilter:

Public Types | |
| enum | eThreadCommands { THREAD_EXIT = 0, THREAD_PAUSE = 1, THREAD_RUN = 2 } |
Public Member Functions | |
| DECLARE_IUNKNOWN STDMETHODIMP | NonDelegatingQueryInterface (REFIID riid, void **ppv) |
| NativeFLACSourceFilter (void) | |
| virtual | ~NativeFLACSourceFilter (void) |
| virtual int | GetPinCount () |
| virtual CBasePin * | GetPin (int inPinNo) |
| ULONG STDMETHODCALLTYPE | GetMiscFlags (void) |
| virtual STDMETHODIMP | GetCurFile (LPOLESTR *outFileName, AM_MEDIA_TYPE *outMediaType) |
| virtual STDMETHODIMP | Load (LPCOLESTR inFileName, const AM_MEDIA_TYPE *inMediaType) |
| STDMETHODIMP | Run (REFERENCE_TIME tStart) |
| STDMETHODIMP | Pause (void) |
| STDMETHODIMP | Stop (void) |
| virtual DWORD | ThreadProc (void) |
| virtual ::FLAC__SeekableStreamDecoderReadStatus | read_callback (FLAC__byte outBuffer[], unsigned int *outNumBytes) |
| virtual ::FLAC__SeekableStreamDecoderSeekStatus | seek_callback (FLAC__uint64 inSeekPos) |
| virtual ::FLAC__SeekableStreamDecoderTellStatus | tell_callback (FLAC__uint64 *outTellPos) |
| virtual ::FLAC__SeekableStreamDecoderLengthStatus | length_callback (FLAC__uint64 *outLength) |
| virtual ::FLAC__StreamDecoderWriteStatus | write_callback (const FLAC__Frame *outFrame, const FLAC__int32 *const outBuffer[]) |
| virtual void | metadata_callback (const FLAC__StreamMetadata *inMetaData) |
| virtual void | error_callback (FLAC__StreamDecoderErrorStatus inStatus) |
| virtual bool | eof_callback (void) |
| virtual STDMETHODIMP | GetCapabilities (DWORD *pCapabilities) |
| virtual STDMETHODIMP | CheckCapabilities (DWORD *pCapabilities) |
| virtual STDMETHODIMP | IsFormatSupported (const GUID *pFormat) |
| virtual STDMETHODIMP | QueryPreferredFormat (GUID *pFormat) |
| virtual STDMETHODIMP | SetTimeFormat (const GUID *pFormat) |
| virtual STDMETHODIMP | GetTimeFormat (GUID *pFormat) |
| virtual STDMETHODIMP | GetDuration (LONGLONG *pDuration) |
| virtual STDMETHODIMP | GetStopPosition (LONGLONG *pStop) |
| virtual STDMETHODIMP | GetCurrentPosition (LONGLONG *pCurrent) |
| virtual STDMETHODIMP | ConvertTimeFormat (LONGLONG *pTarget, const GUID *pTargetFormat, LONGLONG Source, const GUID *pSourceFormat) |
| virtual STDMETHODIMP | SetPositions (LONGLONG *pCurrent, DWORD dwCurrentFlags, LONGLONG *pStop, DWORD dwStopFlags) |
| virtual STDMETHODIMP | GetPositions (LONGLONG *pCurrent, LONGLONG *pStop) |
| virtual STDMETHODIMP | GetAvailable (LONGLONG *pEarliest, LONGLONG *pLatest) |
| virtual STDMETHODIMP | SetRate (double dRate) |
| virtual STDMETHODIMP | GetRate (double *dRate) |
| virtual STDMETHODIMP | GetPreroll (LONGLONG *pllPreroll) |
| virtual STDMETHODIMP | IsUsingTimeFormat (const GUID *pFormat) |
Static Public Member Functions | |
| CUnknown *WINAPI | CreateInstance (LPUNKNOWN pUnk, HRESULT *pHr) |
Protected Member Functions | |
| HRESULT | DataProcessLoop () |
Protected Attributes | |
| NativeFLACSourcePin * | mFLACSourcePin |
| wstring | mFileName |
| fstream | mInputFile |
| unsigned long | mFileSize |
| bool | mBegun |
| bool | mJustSeeked |
| __int64 | mSeekRequest |
| bool | mWasEOF |
| unsigned long | mUpto |
| unsigned long | mNumChannels |
| unsigned long | mFrameSize |
| unsigned long | mSampleRate |
| unsigned long | mBitsPerSample |
| __int64 | mTotalNumSamples |
| CCritSec * | mCodecLock |
Friends | |
| class | NativeFLACSourcePin |
|
|
Definition at line 63 of file NativeFLACSourceFilter.h. |
|
|
Definition at line 59 of file NativeFLACSourceFilter.cpp. References false, mCodecLock, mFLACSourcePin, NativeFLACSourcePin, and true. Referenced by CreateInstance(). |
|
|
Definition at line 76 of file NativeFLACSourceFilter.cpp. References mFLACSourcePin. |
|
|
Definition at line 312 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||||||||||
|
Definition at line 344 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||
|
Definition at line 50 of file NativeFLACSourceFilter.cpp. References NativeFLACSourceFilter(). |
Here is the call graph for this function:

|
|
Definition at line 181 of file NativeFLACSourceFilter.cpp. References NativeFLACSourcePin::DeliverEndOfStream(), mCodecLock, mFLACSourcePin, mInputFile, mJustSeeked, mSeekRequest, and mWasEOF. Referenced by ThreadProc(). |
Here is the call graph for this function:

|
|
Definition at line 297 of file NativeFLACSourceFilter.cpp. References mInputFile. |
|
|
Definition at line 293 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||
|
Definition at line 365 of file NativeFLACSourceFilter.cpp. References mTotalNumSamples. |
|
|
Definition at line 303 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||
|
Definition at line 101 of file NativeFLACSourceFilter.cpp. References mFileName, and outFileName. |
|
|
Definition at line 341 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 333 of file NativeFLACSourceFilter.cpp. References mTotalNumSamples. |
|
|
Definition at line 96 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 87 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 84 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||
|
Definition at line 362 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 377 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 373 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 337 of file NativeFLACSourceFilter.cpp. References mTotalNumSamples. |
|
|
Definition at line 329 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 315 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 381 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 246 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||
|
Definition at line 108 of file NativeFLACSourceFilter.cpp. References iBE_Math::charArrToULong(), mBitsPerSample, mFileName, mFileSize, mInputFile, mNumChannels, mSampleRate, and mTotalNumSamples. |
Here is the call graph for this function:

|
|
Definition at line 290 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||
|
Definition at line 139 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 156 of file NativeFLACSourceFilter.cpp. References THREAD_RUN. |
|
|
Definition at line 322 of file NativeFLACSourceFilter.cpp. |
|
||||||||||||
|
Definition at line 231 of file NativeFLACSourceFilter.cpp. References mInputFile, and mWasEOF. |
|
|
Definition at line 152 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 238 of file NativeFLACSourceFilter.cpp. References mInputFile. |
|
||||||||||||||||||||
|
Definition at line 347 of file NativeFLACSourceFilter.cpp. References NativeFLACSourcePin::DeliverBeginFlush(), NativeFLACSourcePin::DeliverEndFlush(), mCodecLock, mFLACSourcePin, mJustSeeked, mSampleRate, mSeekRequest, and mUpto. |
Here is the call graph for this function:

|
|
Definition at line 370 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 326 of file NativeFLACSourceFilter.cpp. |
|
|
Definition at line 169 of file NativeFLACSourceFilter.cpp. References NativeFLACSourcePin::DeliverBeginFlush(), NativeFLACSourcePin::DeliverEndFlush(), mFLACSourcePin, mJustSeeked, mSeekRequest, mUpto, and THREAD_EXIT. |
Here is the call graph for this function:

|
|
Definition at line 242 of file NativeFLACSourceFilter.cpp. References mInputFile. |
|
|
Definition at line 213 of file NativeFLACSourceFilter.cpp. References DataProcessLoop(), THREAD_EXIT, and THREAD_RUN. |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 250 of file NativeFLACSourceFilter.cpp. References NativeFLACSourcePin::deliverData(), mBegun, mFLACSourcePin, mFrameSize, mNumChannels, mSampleRate, and mUpto. |
Here is the call graph for this function:

|
|
Definition at line 60 of file NativeFLACSourceFilter.h. Referenced by NativeFLACSourceFilter(). |
|
|
Definition at line 139 of file NativeFLACSourceFilter.h. Referenced by write_callback(). |
|
|
Definition at line 149 of file NativeFLACSourceFilter.h. Referenced by NativeFLACSourcePin::GetMediaType(), and Load(). |
|
|
Definition at line 153 of file NativeFLACSourceFilter.h. Referenced by DataProcessLoop(), NativeFLACSourceFilter(), and SetPositions(). |
|
|
Definition at line 134 of file NativeFLACSourceFilter.h. Referenced by GetCurFile(), and Load(). |
|
|
Definition at line 136 of file NativeFLACSourceFilter.h. Referenced by Load(). |
|
|
Definition at line 131 of file NativeFLACSourceFilter.h. Referenced by DataProcessLoop(), NativeFLACSourceFilter(), SetPositions(), Stop(), write_callback(), and ~NativeFLACSourceFilter(). |
|
|
Definition at line 147 of file NativeFLACSourceFilter.h. Referenced by write_callback(). |
|
|
Definition at line 135 of file NativeFLACSourceFilter.h. Referenced by DataProcessLoop(), eof_callback(), Load(), read_callback(), seek_callback(), and tell_callback(). |
|
|
Definition at line 140 of file NativeFLACSourceFilter.h. Referenced by DataProcessLoop(), SetPositions(), and Stop(). |
|
|
Definition at line 146 of file NativeFLACSourceFilter.h. Referenced by NativeFLACSourcePin::GetMediaType(), Load(), and write_callback(). |
|
|
Definition at line 148 of file NativeFLACSourceFilter.h. Referenced by NativeFLACSourcePin::GetMediaType(), Load(), SetPositions(), and write_callback(). |
|
|
Definition at line 141 of file NativeFLACSourceFilter.h. Referenced by DataProcessLoop(), SetPositions(), and Stop(). |
|
|
Definition at line 150 of file NativeFLACSourceFilter.h. Referenced by GetAvailable(), GetDuration(), GetStopPosition(), and Load(). |
|
|
Definition at line 143 of file NativeFLACSourceFilter.h. Referenced by SetPositions(), Stop(), and write_callback(). |
|
|
Definition at line 142 of file NativeFLACSourceFilter.h. Referenced by DataProcessLoop(), and read_callback(). |
1.3.9