____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

movie.cpp File Reference

Movie playback functions. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "stratagus.h"
#include "video.h"
#include "sound.h"
#include "sound_server.h"
#include "movie.h"
#include "network.h"
#include "iocompat.h"
#include "iolib.h"
#include "SDL.h"

Go to the source code of this file.

Functions

static void MovieCallbackButtonPressed (unsigned dummy)
static void MovieCallbackButtonReleased (unsigned dummy)
static void MovieCallbackKeyPressed (unsigned dummya, unsigned dummyb)
static void MovieCallbackKeyReleased (unsigned dummya, unsigned dummyb)
static void MovieCallbackKeyRepeated (unsigned dummya, unsigned dummyb)
static void MovieCallbackMouseMove (int dummya, int dummyb)
static void MovieCallbackMouseExit (void)
static int OutputTheora (OggData *data, SDL_Overlay *yuv_overlay, SDL_Rect *rect)
static int TheoraProcessData (OggData *data)
int PlayMovie (const std::string &name)
 < Play a movie file

Variables

SDL_Surface * TheScreen
 Internal screen.
static bool MovieStop


Detailed Description

Movie playback functions.

Definition in file movie.cpp.


Function Documentation

static void MovieCallbackButtonPressed ( unsigned  dummy  )  [static]

Callbacks for movie input.

Definition at line 71 of file movie.cpp.

References MovieStop.

Referenced by PlayMovie().

static void MovieCallbackButtonReleased ( unsigned  dummy  )  [static]

Definition at line 76 of file movie.cpp.

Referenced by PlayMovie().

static void MovieCallbackKeyPressed ( unsigned  dummya,
unsigned  dummyb 
) [static]

Definition at line 80 of file movie.cpp.

References MovieStop.

Referenced by PlayMovie().

static void MovieCallbackKeyReleased ( unsigned  dummya,
unsigned  dummyb 
) [static]

Definition at line 86 of file movie.cpp.

Referenced by PlayMovie().

static void MovieCallbackKeyRepeated ( unsigned  dummya,
unsigned  dummyb 
) [static]

Definition at line 90 of file movie.cpp.

Referenced by PlayMovie().

static void MovieCallbackMouseExit ( void   )  [static]

Definition at line 98 of file movie.cpp.

Referenced by PlayMovie().

static void MovieCallbackMouseMove ( int  dummya,
int  dummyb 
) [static]

Definition at line 94 of file movie.cpp.

Referenced by PlayMovie().

static int OutputTheora ( OggData data,
SDL_Overlay *  yuv_overlay,
SDL_Rect *  rect 
) [static]

Draw Ogg data to the overlay

Definition at line 105 of file movie.cpp.

References TheScreen, OggData::tinfo, and OggData::tstate.

Referenced by PlayMovie().

int PlayMovie ( const std::string &  name  ) 

static int TheoraProcessData ( OggData data  )  [static]

Process Ogg data

Definition at line 151 of file movie.cpp.

References OggData::File, OggGetNextPage(), OggData::page, OggData::sync, OggData::tstate, and OggData::vstream.

Referenced by PlayMovie().


Variable Documentation

bool MovieStop [static]

Definition at line 61 of file movie.cpp.

Referenced by MovieCallbackButtonPressed(), MovieCallbackKeyPressed(), and PlayMovie().

SDL_Surface* TheScreen

Internal screen.

Max texture size supported on the video card.

Definition at line 78 of file sdl.cpp.


Generated on Sat Feb 21 00:28:17 2009 for Bos Wars by  doxygen 1.5.6