svvitch
digital signage player
FFMovieContent Class Reference

FFmpeg動画再生コンテントクラス. More...

#include <FFMovieContent.h>

Inheritance diagram for FFMovieContent:
Collaboration diagram for FFMovieContent:

List of all members.

Public Member Functions

 FFMovieContent (Renderer &renderer, int splitType)
virtual ‾FFMovieContent ()
void initialize ()
 初期化
bool open (const MediaItemPtr media, const int offset=0)
 ファイルをオープンします
void run ()
void play ()
 再生
void pause ()
 ポーズ
void stop ()
 停止
const bool seek (const int64_t timestamp)
 Seek to the keyframe at timestamp.
const bool finished ()
 終了したかどうか
void close ()
 ファイルをクローズします
virtual void process (const DWORD &frame)
 1フレームに1度だけ処理される
virtual void draw (const DWORD &frame)
 描画
const Uint32 getFPS ()
 再生フレームレート
const float getAvgTime () const
 平均デコード時間
const DWORD currentTime ()
 現在の再生時間
const DWORD timeLeft ()
 残り時間

Private Attributes

Poco::FastMutex _lock
Poco::FastMutex _openLock
Poco::FastMutex _frameLock
Poco::Thread _thread
Poco::Runnable * _worker
AVFormatContext * _ic
int _fps
int _video
int _audio
FFAudioDecoder_audioDecoder
FFVideoDecoder_videoDecoder
VideoFrame_vf
VideoFrame_prepareVF
bool _starting
int _frameOddEven
bool _finished
bool _seeking
PerformanceTimer _playTimer
FPSCounter _fpsCounter
float _avgTime

Detailed Description

FFmpeg動画再生コンテントクラス.

FFmpegの動画を再生し描画するためのコンテントです

Definition at line 25 of file FFMovieContent.h.


Constructor & Destructor Documentation

FFMovieContent::FFMovieContent ( Renderer renderer,
int  splitType 
)

Member Function Documentation

void FFMovieContent::close ( ) [virtual]

ファイルをクローズします

Reimplemented from Content.

const DWORD FFMovieContent::currentTime ( )

現在の再生時間

virtual void FFMovieContent::draw ( const DWORD &  frame) [virtual]

描画

Reimplemented from Content.

const bool FFMovieContent::finished ( ) [virtual]

終了したかどうか

Reimplemented from Content.

const float FFMovieContent::getAvgTime ( ) const

平均デコード時間

再生フレームレート

void FFMovieContent::initialize ( ) [virtual]

初期化

Reimplemented from Content.

bool FFMovieContent::open ( const MediaItemPtr  media,
const int  offset = 0 
) [virtual]

ファイルをオープンします

Reimplemented from Content.

Here is the caller graph for this function:

void FFMovieContent::pause ( ) [virtual]

ポーズ

Reimplemented from Content.

void FFMovieContent::play ( ) [virtual]

再生

Reimplemented from Content.

virtual void FFMovieContent::process ( const DWORD &  frame) [virtual]

1フレームに1度だけ処理される

Reimplemented from Content.

const bool FFMovieContent::seek ( const int64_t  timestamp)

Seek to the keyframe at timestamp.

'timestamp' in 'stream_index'.

Parameters:
stream_indexIf stream_index is (-1), a default stream is selected, and timestamp is automatically converted from AV_TIME_BASE units to the stream specific time_base.
timestampTimestamp in AVStream.time_base units or, if no stream is specified, in AV_TIME_BASE units.
flagsflags which select direction and seeking mode
Returns:
>= 0 on success
void FFMovieContent::stop ( ) [virtual]

停止

Reimplemented from Content.

const DWORD FFMovieContent::timeLeft ( )

残り時間

virtual FFMovieContent::‾FFMovieContent ( ) [virtual]

Member Data Documentation

int FFMovieContent::_audio [private]

Definition at line 38 of file FFMovieContent.h.

Definition at line 39 of file FFMovieContent.h.

float FFMovieContent::_avgTime [private]

Definition at line 50 of file FFMovieContent.h.

bool FFMovieContent::_finished [private]

Definition at line 46 of file FFMovieContent.h.

int FFMovieContent::_fps [private]

Definition at line 36 of file FFMovieContent.h.

Definition at line 49 of file FFMovieContent.h.

Poco::FastMutex FFMovieContent::_frameLock [private]

Definition at line 30 of file FFMovieContent.h.

Definition at line 45 of file FFMovieContent.h.

AVFormatContext* FFMovieContent::_ic [private]

Definition at line 35 of file FFMovieContent.h.

Poco::FastMutex FFMovieContent::_lock [private]

Definition at line 28 of file FFMovieContent.h.

Poco::FastMutex FFMovieContent::_openLock [private]

Definition at line 29 of file FFMovieContent.h.

Definition at line 48 of file FFMovieContent.h.

Definition at line 42 of file FFMovieContent.h.

bool FFMovieContent::_seeking [private]

Definition at line 47 of file FFMovieContent.h.

bool FFMovieContent::_starting [private]

Definition at line 44 of file FFMovieContent.h.

Poco::Thread FFMovieContent::_thread [private]

Definition at line 32 of file FFMovieContent.h.

Definition at line 41 of file FFMovieContent.h.

int FFMovieContent::_video [private]

Definition at line 37 of file FFMovieContent.h.

Definition at line 40 of file FFMovieContent.h.

Poco::Runnable* FFMovieContent::_worker [private]

Definition at line 33 of file FFMovieContent.h.


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