#include <amfilter.h>

Public Member Functions | |
| CMediaSample (TCHAR *pName, CBaseAllocator *pAllocator, HRESULT *phr, LPBYTE pBuffer=NULL, LONG length=0) | |
| virtual | ~CMediaSample () |
| STDMETHODIMP | QueryInterface (REFIID riid, void **ppv) |
| STDMETHODIMP_ (ULONG) AddRef() | |
| STDMETHODIMP_ (ULONG) Release() | |
| HRESULT | SetPointer (BYTE *ptr, LONG cBytes) |
| STDMETHODIMP | GetPointer (BYTE **ppBuffer) |
| STDMETHODIMP_ (LONG) GetSize(void) | |
| STDMETHODIMP | GetTime (REFERENCE_TIME *pTimeStart, REFERENCE_TIME *pTimeEnd) |
| STDMETHODIMP | SetTime (REFERENCE_TIME *pTimeStart, REFERENCE_TIME *pTimeEnd) |
| STDMETHODIMP | IsSyncPoint (void) |
| STDMETHODIMP | SetSyncPoint (BOOL bIsSyncPoint) |
| STDMETHODIMP | IsPreroll (void) |
| STDMETHODIMP | SetPreroll (BOOL bIsPreroll) |
| STDMETHODIMP_ (LONG) GetActualDataLength(void) | |
| STDMETHODIMP | SetActualDataLength (LONG lActual) |
| STDMETHODIMP | GetMediaType (AM_MEDIA_TYPE **ppMediaType) |
| STDMETHODIMP | SetMediaType (AM_MEDIA_TYPE *pMediaType) |
| STDMETHODIMP | IsDiscontinuity (void) |
| STDMETHODIMP | SetDiscontinuity (BOOL bDiscontinuity) |
| STDMETHODIMP | GetMediaTime (LONGLONG *pTimeStart, LONGLONG *pTimeEnd) |
| STDMETHODIMP | SetMediaTime (LONGLONG *pTimeStart, LONGLONG *pTimeEnd) |
| STDMETHODIMP | GetProperties (DWORD cbProperties, BYTE *pbProperties) |
| STDMETHODIMP | SetProperties (DWORD cbProperties, const BYTE *pbProperties) |
Public Attributes | |
| LONG | m_cRef |
Protected Types | |
| enum | { Sample_SyncPoint = 0x01, Sample_Preroll = 0x02, Sample_Discontinuity = 0x04, Sample_TypeChanged = 0x08, Sample_TimeValid = 0x10, Sample_MediaTimeValid = 0x20, Sample_TimeDiscontinuity = 0x40, Sample_StopValid = 0x100, Sample_ValidFlags = 0x1FF } |
Protected Attributes | |
| DWORD | m_dwFlags |
| DWORD | m_dwTypeSpecificFlags |
| LPBYTE | m_pBuffer |
| LONG | m_lActual |
| LONG | m_cbBuffer |
| CBaseAllocator * | m_pAllocator |
| CMediaSample * | m_pNext |
| REFERENCE_TIME | m_Start |
| REFERENCE_TIME | m_End |
| LONGLONG | m_MediaStart |
| LONG | m_MediaEnd |
| AM_MEDIA_TYPE * | m_pMediaType |
| DWORD | m_dwStreamId |
Friends | |
| class | CBaseAllocator |
Definition at line 1021 of file amfilter.h.
anonymous enum [protected] |
| Sample_SyncPoint | |
| Sample_Preroll | |
| Sample_Discontinuity | |
| Sample_TypeChanged | |
| Sample_TimeValid | |
| Sample_MediaTimeValid | |
| Sample_TimeDiscontinuity | |
| Sample_StopValid | |
| Sample_ValidFlags |
Definition at line 1029 of file amfilter.h.
| CMediaSample::CMediaSample | ( | TCHAR * | pName, | |
| CBaseAllocator * | pAllocator, | |||
| HRESULT * | phr, | |||
| LPBYTE | pBuffer = NULL, |
|||
| LONG | length = 0 | |||
| ) |
| CMediaSample::~CMediaSample | ( | ) | [virtual] |
| STDMETHODIMP CMediaSample::QueryInterface | ( | REFIID | riid, | |
| void ** | ppv | |||
| ) |
| CMediaSample::STDMETHODIMP_ | ( | ULONG | ) |
| CMediaSample::STDMETHODIMP_ | ( | ULONG | ) |
Definition at line 2472 of file amfilter.cpp.
References m_cbBuffer, m_lActual, m_pBuffer, and S_OK.
| STDMETHODIMP CMediaSample::GetPointer | ( | BYTE ** | ppBuffer | ) |
Definition at line 2482 of file amfilter.cpp.
References ASSERT, m_pBuffer, and ValidateReadWritePtr.
| CMediaSample::STDMETHODIMP_ | ( | LONG | ) |
| STDMETHODIMP CMediaSample::GetTime | ( | REFERENCE_TIME * | pTimeStart, | |
| REFERENCE_TIME * | pTimeEnd | |||
| ) |
Definition at line 2501 of file amfilter.cpp.
References m_dwFlags, m_End, m_Start, Sample_StopValid, Sample_TimeValid, and ValidateReadWritePtr.
| STDMETHODIMP CMediaSample::SetTime | ( | REFERENCE_TIME * | pTimeStart, | |
| REFERENCE_TIME * | pTimeEnd | |||
| ) |
Definition at line 2527 of file amfilter.cpp.
References ASSERT, m_dwFlags, m_End, m_Start, NULL, Sample_StopValid, Sample_TimeValid, and ValidateReadPtr.
| STDMETHODIMP CMediaSample::IsSyncPoint | ( | void | ) |
Definition at line 2593 of file amfilter.cpp.
References m_dwFlags, S_FALSE, S_OK, and Sample_SyncPoint.
| STDMETHODIMP CMediaSample::SetSyncPoint | ( | BOOL | bIsSyncPoint | ) |
| STDMETHODIMP CMediaSample::IsPreroll | ( | void | ) |
Definition at line 2636 of file amfilter.cpp.
References m_dwFlags, S_FALSE, S_OK, and Sample_Preroll.
| STDMETHODIMP CMediaSample::SetPreroll | ( | BOOL | bIsPreroll | ) |
| CMediaSample::STDMETHODIMP_ | ( | LONG | ) |
| STDMETHODIMP CMediaSample::SetActualDataLength | ( | LONG | lActual | ) |
| STDMETHODIMP CMediaSample::GetMediaType | ( | AM_MEDIA_TYPE ** | ppMediaType | ) |
Definition at line 2674 of file amfilter.cpp.
References ASSERT, CreateMediaType(), E_OUTOFMEMORY, m_dwFlags, m_pMediaType, NULL, S_FALSE, and ValidateReadWritePtr.
| STDMETHODIMP CMediaSample::SetMediaType | ( | AM_MEDIA_TYPE * | pMediaType | ) |
Definition at line 2699 of file amfilter.cpp.
References ASSERT, CreateMediaType(), DeleteMediaType(), E_OUTOFMEMORY, m_dwFlags, m_pMediaType, NULL, and ValidateReadPtr.
| STDMETHODIMP CMediaSample::IsDiscontinuity | ( | void | ) |
Definition at line 2614 of file amfilter.cpp.
References m_dwFlags, S_FALSE, S_OK, and Sample_Discontinuity.
| STDMETHODIMP CMediaSample::SetDiscontinuity | ( | BOOL | bDiscontinuity | ) |
Definition at line 2554 of file amfilter.cpp.
References m_dwFlags, m_MediaEnd, m_MediaStart, Sample_MediaTimeValid, and ValidateReadWritePtr.
Definition at line 2572 of file amfilter.cpp.
References ASSERT, LONG, m_dwFlags, m_MediaEnd, m_MediaStart, NULL, Sample_MediaTimeValid, and ValidateReadPtr.
| STDMETHODIMP CMediaSample::GetProperties | ( | DWORD | cbProperties, | |
| BYTE * | pbProperties | |||
| ) |
Definition at line 2730 of file amfilter.cpp.
References CheckPointer, m_cbBuffer, m_dwFlags, m_dwStreamId, m_dwTypeSpecificFlags, m_End, m_lActual, m_pBuffer, m_pMediaType, m_Start, NULL, S_OK, and Sample_MediaTimeValid.
| HRESULT CMediaSample::SetProperties | ( | DWORD | cbProperties, | |
| const BYTE * | pbProperties | |||
| ) |
Definition at line 2761 of file amfilter.cpp.
References CheckPointer, CONTAINS_FIELD, CreateMediaType(), DeleteMediaType(), E_INVALIDARG, E_OUTOFMEMORY, m_cbBuffer, m_dwFlags, m_dwStreamId, m_dwTypeSpecificFlags, m_End, m_lActual, m_pBuffer, m_pMediaType, m_Start, NULL, S_OK, Sample_MediaTimeValid, and Sample_ValidFlags.
friend class CBaseAllocator [friend] |
Definition at line 1026 of file amfilter.h.
DWORD CMediaSample::m_dwFlags [protected] |
Definition at line 1042 of file amfilter.h.
Referenced by GetMediaTime(), GetMediaType(), GetProperties(), GetTime(), IsDiscontinuity(), IsPreroll(), IsSyncPoint(), SetDiscontinuity(), SetMediaTime(), SetMediaType(), SetPreroll(), SetProperties(), SetSyncPoint(), and SetTime().
DWORD CMediaSample::m_dwTypeSpecificFlags [protected] |
LPBYTE CMediaSample::m_pBuffer [protected] |
Definition at line 1045 of file amfilter.h.
Referenced by GetPointer(), GetProperties(), SetPointer(), and SetProperties().
LONG CMediaSample::m_lActual [protected] |
Definition at line 1046 of file amfilter.h.
Referenced by GetProperties(), SetActualDataLength(), SetPointer(), and SetProperties().
LONG CMediaSample::m_cbBuffer [protected] |
Definition at line 1047 of file amfilter.h.
Referenced by GetProperties(), SetActualDataLength(), SetPointer(), and SetProperties().
CBaseAllocator* CMediaSample::m_pAllocator [protected] |
Definition at line 1048 of file amfilter.h.
CMediaSample* CMediaSample::m_pNext [protected] |
REFERENCE_TIME CMediaSample::m_Start [protected] |
Definition at line 1050 of file amfilter.h.
Referenced by GetProperties(), GetTime(), SetProperties(), and SetTime().
REFERENCE_TIME CMediaSample::m_End [protected] |
Definition at line 1051 of file amfilter.h.
Referenced by GetProperties(), GetTime(), SetProperties(), and SetTime().
LONGLONG CMediaSample::m_MediaStart [protected] |
LONG CMediaSample::m_MediaEnd [protected] |
AM_MEDIA_TYPE* CMediaSample::m_pMediaType [protected] |
Definition at line 1054 of file amfilter.h.
Referenced by GetMediaType(), GetProperties(), SetMediaType(), SetProperties(), and ~CMediaSample().
DWORD CMediaSample::m_dwStreamId [protected] |
1.5.6