#include <video/video.h>
Inheritance diagram for neo::video::Video:


Public Types | |
| enum | Sync { NOSYNC = 0, AUDIOSYNC = 1 } |
| Sync modes. More... | |
Public Member Functions | |
| Video () | |
| Initialize data. | |
| virtual | ~Video () |
| Free resources. | |
| float | getCurrentTime () const |
| Get current time. | |
| virtual void | play () |
| Play video. | |
| virtual void | stop () |
| Stop video. | |
| virtual void | rewind () |
| Rewind video. | |
| virtual bool | isFinished () const=0 |
| Query if finished. | |
| virtual bool | isAnimated () const |
| Query if animated. | |
| virtual bool | update (uint64_t frame) |
| Animate image. | |
| virtual sound::SoundData * | getSoundData () |
| Get video sound data. | |
| virtual void | setSync (Sync sync) |
| Set sync mode. | |
Protected Member Functions | |
| bool | decodeImage () |
| Decode the current video frame. | |
| virtual bool | decodeNextImage ()=0 |
| Decode next image frame. | |
Protected Attributes | |
| Codec * | _p_codec |
| Codec used. | |
| file::IStream * | _p_stream |
| Stream. | |
| bool | _play |
| Play flag. | |
| core::Timer | _timer |
| Timer. | |
| float | _time |
| Current time. | |
| float | _timeVideo |
| Last decoded image frame time. | |
| float | _timeAudio |
| Last decoded sound frame time. | |
| Sync | _sync |
| Sync mode. | |
| float neo::video::Video::getCurrentTime | ( | ) | const |
| virtual bool neo::video::Video::isAnimated | ( | ) | const [virtual] |
| virtual bool neo::video::Video::update | ( | uint64_t | frame | ) | [virtual] |
| frame | Frame number |
Reimplemented from neo::image::Image.
| virtual sound::SoundData* neo::video::Video::getSoundData | ( | ) | [virtual] |
Get the sound data for the video stream. The returned object should be deallocated by the caller or uploaded to a sound object.
Reimplemented in neo::video::theora::Video.
| virtual void neo::video::Video::setSync | ( | Sync | sync | ) | [virtual] |
| virtual bool neo::video::Video::decodeNextImage | ( | ) | [protected, pure virtual] |
1.5.1