_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <cstdlib>
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>
#include <theora/theora.h>
#include "stratagus.h"
#include "movie.h"
#include "iocompat.h"
#include "iolib.h"
#include "network.h"
#include "sound.h"
#include "sound_server.h"
#include "video.h"
#include "SDL.h"
#include "SDL_endian.h"
movie.cpp - Movie playback functions. | |
SDL_Surface * | TheScreen |
Internal screen. More... | |
static bool | MovieStop |
int | OggGetNextPage (ogg_page *page, ogg_sync_state *sync, CFile *f) |
int | OggInit (CFile *f, OggData *data) |
void | OggFree (OggData *data) |
static void | MovieCallbackButtonPressed (unsigned) |
static void | MovieCallbackButtonReleased (unsigned) |
static void | MovieCallbackKeyPressed (unsigned, unsigned) |
static void | MovieCallbackKeyReleased (unsigned, unsigned) |
static void | MovieCallbackKeyRepeated (unsigned, unsigned) |
static void | MovieCallbackMouseMove (const PixelPos &) |
static void | MovieCallbackMouseExit () |
static int | OutputTheora (OggData *data, SDL_Texture *yuv_overlay, SDL_Rect *rect) |
static int | TheoraProcessData (OggData *data) |
int | PlayMovie (const std::string &name) |
Play a movie file. More... | |
static void | RenderToSurface (SDL_Surface *surface, SDL_Texture *yuv_overlay, SDL_Rect *rect, OggData *data) |
|
static |
Callbacks for movie input.
|
static |
|
static |
|
static |
|
static |
|
static |
int OggGetNextPage | ( | ogg_page * | page, |
ogg_sync_state * | sync, | ||
CFile * | f | ||
) |
|
static |
Draw Ogg data to the overlay
int PlayMovie | ( | const std::string & | name | ) |
Play a movie file.
Play a video file.
name | Filename of movie file. |
|
static |
|
static |
Process Ogg data
|
static |
SDL_Surface* TheScreen |
Internal screen.