Etterna
0.74.4
Loading...
Searching...
No Matches
src
arch
MovieTexture
MovieTexture_DShowHelper.h
1
#ifndef RAGE_MOVIE_TEXTURE_DSHOW_HELPER_H
2
#define RAGE_MOVIE_TEXTURE_DSHOW_HELPER_H
3
4
#include "MovieTexture_DShow.h"
5
6
//-----------------------------------------------------------------------------
7
// CTextureRenderer Class Declarations
8
//
9
// Usage: 1) CheckMediaType is called by the graph
10
// 2) SetMediaType is called by the graph
11
// 3) call GetVidWidth and GetVidHeight to get texture information
12
// 4) call SetRenderTarget
13
// 5) Do RenderSample is called by the graph
14
//-----------------------------------------------------------------------------
15
class
CTextureRenderer
:
public
CBaseVideoRenderer
16
{
17
public
:
18
CTextureRenderer
();
19
~CTextureRenderer
();
20
21
HRESULT CheckMediaType(
const
CMediaType* pmt);
// Format acceptable?
22
HRESULT SetMediaType(
const
CMediaType* pmt);
// Video format notification
23
HRESULT DoRenderSample(IMediaSample* pMediaSample);
// New video sample
24
void
OnReceiveFirstSample(IMediaSample* pSample);
25
26
long
GetVidWidth()
const
{
return
m_lVidWidth; }
27
long
GetVidHeight()
const
{
return
m_lVidHeight; }
28
void
SetRenderTarget(
MovieTexture_DShow
* pTexture);
29
30
RageSemaphore
m_OneFrameDecoded;
31
32
protected
:
33
// Video width, height, and pitch.
34
long
m_lVidWidth, m_lVidHeight, m_lVidPitch;
35
36
char
* output;
37
38
MovieTexture_DShow
*
39
m_pTexture;
// the video surface we will copy new frames to
40
};
41
42
#endif
CTextureRenderer
Definition
MovieTexture_DShowHelper.h:16
MovieTexture_DShow
Definition
MovieTexture_DShow.h:33
RageSemaphore
Definition
RageThreads.h:334
Generated by
1.9.8