OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Movie Class Reference
Inheritance diagram for Movie:
IMovie

Public Member Functions

 Movie ()
 
virtual ~Movie ()
 
void Close ()
 
void ReleaseAVCodec ()
 
bool Load (const std::string &fileName)
 
bool LoadFromLOD (const Blob &blob)
 
virtual Blob GetFrame () override
 
virtual void PlayBink () override
 
virtual std::string GetFormat () override
 
virtual unsigned int GetWidth () const override
 
virtual unsigned int GetHeight () const override
 
virtual bool Play (bool loop=false) override
 
virtual bool Stop () override
 
virtual bool IsPlaying () const override
 
virtual bool prepare () override
 
virtual bool renderFrame () override
 
- Public Member Functions inherited from IMovie
 IMovie ()
 
virtual ~IMovie ()
 
virtual unsigned int GetWidth () const =0
 
virtual unsigned int GetHeight () const =0
 
virtual bool Play (bool loop=false)=0
 
virtual bool Stop ()=0
 
virtual bool IsPlaying () const =0
 
virtual Blob GetFrame ()=0
 
virtual std::string GetFormat ()=0
 
virtual void PlayBink ()=0
 
virtual bool prepare ()=0
 
virtual bool renderFrame ()=0
 

Protected Member Functions

void _renderTexture (const Blob &buffer)
 

Protected Attributes

unsigned int width
 
unsigned int height
 
AVFormatContext * format_ctx
 
double playback_time
 
AVAudioStream audio
 
OpenALSoundProvider::StreamingTrackBufferaudio_data_in_device
 
AVVideoStream video
 
int last_resampled_frame_num
 
std::chrono::time_point< std::chrono::system_clock > start_time
 
bool looping
 
bool playing
 
FFmpegBlobInputStream _stream
 
GraphicsImage_texture {}
 
AVPacket _binkPacket
 
std::queue< Blob_binkBuffer
 
int _lastVideoPts = -1
 
int _desiredFrameNumber
 
std::chrono::system_clock::time_point _currentTime
 
int _audioUpdateRate
 

Constructor & Destructor Documentation

◆ Movie()

Movie::Movie ( )
inline

◆ ~Movie()

virtual Movie::~Movie ( )
inlinevirtual

Member Function Documentation

◆ _renderTexture()

void Movie::_renderTexture ( const Blob buffer)
inlineprotected

◆ Close()

void Movie::Close ( )
inline

◆ GetFormat()

virtual std::string Movie::GetFormat ( )
inlineoverridevirtual

Implements IMovie.

◆ GetFrame()

virtual Blob Movie::GetFrame ( )
inlineoverridevirtual

Implements IMovie.

◆ GetHeight()

virtual unsigned int Movie::GetHeight ( ) const
inlineoverridevirtual

Implements IMovie.

◆ GetWidth()

virtual unsigned int Movie::GetWidth ( ) const
inlineoverridevirtual

Implements IMovie.

◆ IsPlaying()

virtual bool Movie::IsPlaying ( ) const
inlineoverridevirtual

Implements IMovie.

◆ Load()

bool Movie::Load ( const std::string &  fileName)
inline

◆ LoadFromLOD()

bool Movie::LoadFromLOD ( const Blob blob)
inline

◆ Play()

virtual bool Movie::Play ( bool  loop = false)
inlineoverridevirtual

Implements IMovie.

◆ PlayBink()

virtual void Movie::PlayBink ( )
inlineoverridevirtual

Implements IMovie.

◆ prepare()

virtual bool Movie::prepare ( )
inlineoverridevirtual

Implements IMovie.

◆ ReleaseAVCodec()

void Movie::ReleaseAVCodec ( )
inline

◆ renderFrame()

virtual bool Movie::renderFrame ( )
inlineoverridevirtual

Implements IMovie.

◆ Stop()

virtual bool Movie::Stop ( )
inlineoverridevirtual

Implements IMovie.

Member Data Documentation

◆ _audioUpdateRate

int Movie::_audioUpdateRate
protected

◆ _binkBuffer

std::queue<Blob> Movie::_binkBuffer
protected

◆ _binkPacket

AVPacket Movie::_binkPacket
protected

◆ _currentTime

std::chrono::system_clock::time_point Movie::_currentTime
protected

◆ _desiredFrameNumber

int Movie::_desiredFrameNumber
protected

◆ _lastVideoPts

int Movie::_lastVideoPts = -1
protected

◆ _stream

FFmpegBlobInputStream Movie::_stream
protected

◆ _texture

GraphicsImage* Movie::_texture {}
protected

◆ audio

AVAudioStream Movie::audio
protected

◆ audio_data_in_device

OpenALSoundProvider::StreamingTrackBuffer* Movie::audio_data_in_device
protected

◆ format_ctx

AVFormatContext* Movie::format_ctx
protected

◆ height

unsigned int Movie::height
protected

◆ last_resampled_frame_num

int Movie::last_resampled_frame_num
protected

◆ looping

bool Movie::looping
protected

◆ playback_time

double Movie::playback_time
protected

◆ playing

bool Movie::playing
protected

◆ start_time

std::chrono::time_point<std::chrono::system_clock> Movie::start_time
protected

◆ video

AVVideoStream Movie::video
protected

◆ width

unsigned int Movie::width
protected

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