TheoraTexture Class Reference#include <theoraPlayer.h>
Detailed Description
TheoraTexture decodes Ogg Theora files, and their audio.
TheoraTexture objects can be used similarly to TextureObjects. Just set the video, call play(), and then refresh every frame to get the latest video. Audio happens automagically.
- Note:
- Uses Theora and ogg libraries which are Copyright (C) Xiph.org Foundation
Constructor & Destructor Documentation
TheoraTexture::TheoraTexture |
( |
|
) |
|
TheoraTexture::~TheoraTexture |
( |
|
) |
|
Member Function Documentation
void TheoraTexture::init |
( |
|
) |
[private] |
bool TheoraTexture::parseHeaders |
( |
|
) |
[private] |
bool TheoraTexture::createVideoBuffers |
( |
|
) |
[private] |
void TheoraTexture::generateLookupTables |
( |
|
) |
[private] |
We precalculate adjusted YUV values for faster RGB conversion.
This function is responsible for making sure they're present and valid.
void TheoraTexture::destroyTexture |
( |
bool |
restartOgg = false |
) |
[private] |
void TheoraTexture::drawFrame |
( |
|
) |
[private] |
bool TheoraTexture::readyVideo |
( |
const F64 |
lastFrame, |
|
|
F64 & |
vBuffTime | |
|
) |
| | [private] |
bool TheoraTexture::readyAudio |
( |
|
) |
[private] |
bool TheoraTexture::demandOggPage |
( |
|
) |
[private] |
S32 TheoraTexture::bufferOggPage |
( |
|
) |
[private] |
S32 TheoraTexture::queueOggPage |
( |
ogg_page * |
page |
) |
[private] |
F64 TheoraTexture::getTheoraTime |
( |
|
) |
[private] |
static void TheoraTexture::playThread |
( |
void * |
udata |
) |
[static, private] |
Background playback thread.
bool TheoraTexture::playLoop |
( |
|
) |
[private] |
const bool TheoraTexture::isPlaying |
( |
|
) |
const [inline] |
const bool TheoraTexture::isReady |
( |
|
) |
const [inline] |
bool TheoraTexture::play |
( |
|
) |
|
void TheoraTexture::stop |
( |
|
) |
|
bool TheoraTexture::pause |
( |
|
) |
|
void TheoraTexture::refresh |
( |
|
) |
|
Update the GL texture from the bitmap the background thread writes to.
U32 TheoraTexture::getGLName |
( |
|
) |
|
const F64 TheoraTexture::getCurrentTime |
( |
|
) |
[inline] |
Field Documentation
Ogg and codec state for demux/decode.
File handle for the theora file.
|