My Project
Public Member Functions | Public Attributes | Protected Types | Protected Attributes | Friends | List of all members
CMediaSample Class Reference
Inheritance diagram for CMediaSample:
CImageSample

Public Member Functions

 CMediaSample (TCHAR *pName, CBaseAllocator *pAllocator, HRESULT *phr, LPBYTE pBuffer=NULL, LONG length=0)
 
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
 
CBaseAllocatorm_pAllocator
 
CMediaSamplem_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
 

The documentation for this class was generated from the following file: