svvitch
digital signage player
VideoTextureAllocator Class Reference

ビデオテクスチャアロケータクラス. More...

#include <VideoTextureAllocator.h>

Collaboration diagram for VideoTextureAllocator:

List of all members.

Public Member Functions

 VideoTextureAllocator (Renderer &renderer)
virtual ‾VideoTextureAllocator ()
LPDIRECT3DTEXTURE9 getTexture ()
 テクスチャ取得
float getDisplayAspectRatio ()
virtual HRESULT STDMETHODCALLTYPE InitializeDevice (DWORD_PTR userID, VMR9AllocationInfo *info, DWORD *buffers)
 デバイスの初期化
virtual HRESULT STDMETHODCALLTYPE TerminateDevice (DWORD_PTR userID)
 デバイスの解放
virtual HRESULT STDMETHODCALLTYPE GetSurface (DWORD_PTR userID, DWORD index, DWORD SurfaceFlags, LPDIRECT3DSURFACE9 *surface)
virtual HRESULT STDMETHODCALLTYPE AdviseNotify (IVMRSurfaceAllocatorNotify9 *lpIVMRSurfAllocNotify)
virtual HRESULT STDMETHODCALLTYPE StartPresenting (DWORD_PTR dwUserID)
 ビデオの再生前
virtual HRESULT STDMETHODCALLTYPE StopPresenting (DWORD_PTR dwUserID)
 ビデオの停止直後
virtual HRESULT STDMETHODCALLTYPE PresentImage (DWORD_PTR dwUserID, VMR9PresentationInfo *lpPresInfo)
HRESULT STDMETHODCALLTYPE InitCompositionDevice (IUnknown *pD3DDevice)
HRESULT STDMETHODCALLTYPE TermCompositionDevice (IUnknown *pD3DDevice)
HRESULT STDMETHODCALLTYPE SetStreamMediaType (DWORD streamID, AM_MEDIA_TYPE *pmt, BOOL fTexture)
HRESULT STDMETHODCALLTYPE CompositeImage (IUnknown *pD3DDevice, IDirect3DSurface9 *pddsRenderTarget, AM_MEDIA_TYPE *pmtRenderTarget, REFERENCE_TIME rtStart, REFERENCE_TIME rtEnd, D3DCOLOR dwClrBkGnd, VMR9VideoStreamInfo *pVideoStreamInfo, UINT cStreams)
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject)
ULONG STDMETHODCALLTYPE AddRef ()
ULONG STDMETHODCALLTYPE Release ()

Private Attributes

Poco::Logger & _log
long _refCount
Renderer_renderer
Poco::FastMutex _lock
LPDIRECT3DTEXTURE9 _texture
int _w
int _h
D3DFORMAT _format
bool _presenting

Detailed Description

ビデオテクスチャアロケータクラス.

VMR-9で使用するカスタムアロケータです

Definition at line 15 of file VideoTextureAllocator.h.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 299 of file VideoTextureAllocator.cpp.

Here is the caller graph for this function:

HRESULT VideoTextureAllocator::AdviseNotify ( IVMRSurfaceAllocatorNotify9 *  lpIVMRSurfAllocNotify) [virtual]

Definition at line 84 of file VideoTextureAllocator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

HRESULT VideoTextureAllocator::CompositeImage ( IUnknown *  pD3DDevice,
IDirect3DSurface9 *  pddsRenderTarget,
AM_MEDIA_TYPE *  pmtRenderTarget,
REFERENCE_TIME  rtStart,
REFERENCE_TIME  rtEnd,
D3DCOLOR  dwClrBkGnd,
VMR9VideoStreamInfo *  pVideoStreamInfo,
UINT  cStreams 
)

Definition at line 250 of file VideoTextureAllocator.cpp.

Here is the call graph for this function:

Definition at line 17 of file VideoTextureAllocator.cpp.

Here is the caller graph for this function:

HRESULT VideoTextureAllocator::GetSurface ( DWORD_PTR  userID,
DWORD  index,
DWORD  SurfaceFlags,
LPDIRECT3DSURFACE9 *  surface 
) [virtual]

Definition at line 56 of file VideoTextureAllocator.cpp.

LPDIRECT3DTEXTURE9 VideoTextureAllocator::getTexture ( )

テクスチャ取得

Definition at line 13 of file VideoTextureAllocator.cpp.

Here is the caller graph for this function:

HRESULT VideoTextureAllocator::InitCompositionDevice ( IUnknown *  pD3DDevice)

Definition at line 125 of file VideoTextureAllocator.cpp.

HRESULT VideoTextureAllocator::InitializeDevice ( DWORD_PTR  userID,
VMR9AllocationInfo *  info,
DWORD *  buffers 
) [virtual]

デバイスの初期化

Definition at line 24 of file VideoTextureAllocator.cpp.

Here is the call graph for this function:

HRESULT VideoTextureAllocator::PresentImage ( DWORD_PTR  dwUserID,
VMR9PresentationInfo *  lpPresInfo 
) [virtual]

Definition at line 112 of file VideoTextureAllocator.cpp.

HRESULT VideoTextureAllocator::QueryInterface ( REFIID  riid,
void **  ppvObject 
)

Definition at line 269 of file VideoTextureAllocator.cpp.

Here is the call graph for this function:

Definition at line 303 of file VideoTextureAllocator.cpp.

HRESULT VideoTextureAllocator::SetStreamMediaType ( DWORD  streamID,
AM_MEDIA_TYPE *  pmt,
BOOL  fTexture 
)

Definition at line 135 of file VideoTextureAllocator.cpp.

Here is the call graph for this function:

HRESULT VideoTextureAllocator::StartPresenting ( DWORD_PTR  dwUserID) [virtual]

ビデオの再生前

Definition at line 100 of file VideoTextureAllocator.cpp.

HRESULT VideoTextureAllocator::StopPresenting ( DWORD_PTR  dwUserID) [virtual]

ビデオの停止直後

Definition at line 106 of file VideoTextureAllocator.cpp.

HRESULT VideoTextureAllocator::TermCompositionDevice ( IUnknown *  pD3DDevice)

Definition at line 130 of file VideoTextureAllocator.cpp.

HRESULT VideoTextureAllocator::TerminateDevice ( DWORD_PTR  userID) [virtual]

デバイスの解放

Definition at line 49 of file VideoTextureAllocator.cpp.

VideoTextureAllocator::‾VideoTextureAllocator ( ) [virtual]

Definition at line 10 of file VideoTextureAllocator.cpp.


Member Data Documentation

D3DFORMAT VideoTextureAllocator::_format [private]

Definition at line 25 of file VideoTextureAllocator.h.

Definition at line 24 of file VideoTextureAllocator.h.

Poco::FastMutex VideoTextureAllocator::_lock [private]

Definition at line 21 of file VideoTextureAllocator.h.

Poco::Logger& VideoTextureAllocator::_log [private]

Definition at line 18 of file VideoTextureAllocator.h.

Definition at line 26 of file VideoTextureAllocator.h.

Definition at line 19 of file VideoTextureAllocator.h.

Definition at line 20 of file VideoTextureAllocator.h.

LPDIRECT3DTEXTURE9 VideoTextureAllocator::_texture [private]

Definition at line 22 of file VideoTextureAllocator.h.

Definition at line 23 of file VideoTextureAllocator.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines