svvitch
digital signage player
VideoFrame Class Reference

ビデオフレームクラス. More...

#include <VideoFrame.h>

Collaboration diagram for VideoFrame:

List of all members.

Public Member Functions

 VideoFrame (Renderer &renderer)
 VideoFrame (Renderer &renderer, const int w, const int h, const int linesize[], const D3DFORMAT format)
 VideoFrame (Renderer &renderer, const int w, const int h, const int linesize[], const int h2, const D3DFORMAT format, const LPD3DXEFFECT fx)
virtual ‾VideoFrame ()
const int frameNumber () const
const int width () const
const int height () const
const bool equals (const int w, const int h, const D3DFORMAT format)
void copy (VideoFrame *frame)
void write (const AVFrame *frame)
void draw (const int x, const int y, int w=-1, int h=-1, int aspectMode=0, DWORD col=0xffffffff, int tx=0, int ty=0, int tw=-1, int th=-1)

Private Member Functions

const Float toTexelU (const int pixel)
const Float toTexelV (const int pixel)

Private Attributes

Poco::Logger & _log
Renderer_renderer
int _frameNumber
int _ow
int _oh
int _w [3]
int _h [3]
LPDIRECT3DTEXTURE9 _texture [3]
LPD3DXEFFECT _fx

Friends

class FFVideoDecoder

Detailed Description

ビデオフレームクラス.

FFVideoDecoderで使用される動画の描画フレーム1枚を表します

Definition at line 23 of file VideoFrame.h.


Constructor & Destructor Documentation

VideoFrame::VideoFrame ( Renderer renderer) [inline]

Definition at line 48 of file VideoFrame.h.

VideoFrame::VideoFrame ( Renderer renderer,
const int  w,
const int  h,
const int  linesize[],
const D3DFORMAT  format 
) [inline]

Definition at line 55 of file VideoFrame.h.

Here is the call graph for this function:

VideoFrame::VideoFrame ( Renderer renderer,
const int  w,
const int  h,
const int  linesize[],
const int  h2,
const D3DFORMAT  format,
const LPD3DXEFFECT  fx 
) [inline]

Definition at line 66 of file VideoFrame.h.

Here is the call graph for this function:


Member Function Documentation

void VideoFrame::copy ( VideoFrame frame) [inline]

Definition at line 110 of file VideoFrame.h.

Here is the call graph for this function:

void VideoFrame::draw ( const int  x,
const int  y,
int  w = -1,
int  h = -1,
int  aspectMode = 0,
DWORD  col = 0xffffffff,
int  tx = 0,
int  ty = 0,
int  tw = -1,
int  th = -1 
) [inline]

Definition at line 169 of file VideoFrame.h.

Here is the call graph for this function:

const bool VideoFrame::equals ( const int  w,
const int  h,
const D3DFORMAT  format 
) [inline]

Definition at line 101 of file VideoFrame.h.

const int VideoFrame::frameNumber ( ) const [inline]

Definition at line 89 of file VideoFrame.h.

const int VideoFrame::height ( ) const [inline]

Definition at line 97 of file VideoFrame.h.

const Float VideoFrame::toTexelU ( const int  pixel) [inline, private]

Definition at line 38 of file VideoFrame.h.

Here is the caller graph for this function:

const Float VideoFrame::toTexelV ( const int  pixel) [inline, private]

Definition at line 42 of file VideoFrame.h.

Here is the caller graph for this function:

const int VideoFrame::width ( ) const [inline]

Definition at line 93 of file VideoFrame.h.

void VideoFrame::write ( const AVFrame *  frame) [inline]

Definition at line 131 of file VideoFrame.h.

virtual VideoFrame::‾VideoFrame ( ) [inline, virtual]

Definition at line 83 of file VideoFrame.h.


Friends And Related Function Documentation

friend class FFVideoDecoder [friend]

Definition at line 25 of file VideoFrame.h.


Member Data Documentation

int VideoFrame::_frameNumber [private]

Definition at line 30 of file VideoFrame.h.

LPD3DXEFFECT VideoFrame::_fx [private]

Definition at line 36 of file VideoFrame.h.

int VideoFrame::_h[3] [private]

Definition at line 34 of file VideoFrame.h.

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

Definition at line 27 of file VideoFrame.h.

int VideoFrame::_oh [private]

Definition at line 32 of file VideoFrame.h.

int VideoFrame::_ow [private]

Definition at line 31 of file VideoFrame.h.

Definition at line 29 of file VideoFrame.h.

LPDIRECT3DTEXTURE9 VideoFrame::_texture[3] [private]

Definition at line 35 of file VideoFrame.h.

int VideoFrame::_w[3] [private]

Definition at line 33 of file VideoFrame.h.


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