____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"
#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 |
Definition in file movie.cpp.
| 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] |
| static void MovieCallbackKeyPressed | ( | unsigned | dummya, | |
| unsigned | dummyb | |||
| ) | [static] |
| static void MovieCallbackKeyReleased | ( | unsigned | dummya, | |
| unsigned | dummyb | |||
| ) | [static] |
| static void MovieCallbackKeyRepeated | ( | unsigned | dummya, | |
| unsigned | dummyb | |||
| ) | [static] |
| static void MovieCallbackMouseExit | ( | void | ) | [static] |
| static void MovieCallbackMouseMove | ( | int | dummya, | |
| int | dummyb | |||
| ) | [static] |
| 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 | ) |
< Play a movie file
Play a video file.
| name | Filename of movie file. |
Definition at line 178 of file movie.cpp.
References _event_callback_::ButtonPressed, _event_callback_::ButtonReleased, CSample::Channels, CL_OPEN_READ, CFile::close(), data, OggData::File, GetCallbacks(), CVideo::Height, Invalidate(), _event_callback_::KeyPressed, _event_callback_::KeyReleased, _event_callback_::KeyRepeated, LibraryFileName(), LoadVorbis(), _event_callback_::MouseExit, _event_callback_::MouseMoved, MovieCallbackButtonPressed(), MovieCallbackButtonReleased(), MovieCallbackKeyPressed(), MovieCallbackKeyReleased(), MovieCallbackKeyRepeated(), MovieCallbackMouseExit(), MovieCallbackMouseMove(), MovieStop, NetworkEvent(), _event_callback_::NetworkEvent, OggFree(), OggInit(), CFile::open(), OutputTheora(), PlayAudioStream, PlayMusic(), RealizeVideoMemory(), CSample::SampleSize, SetCallbacks(), StopMusic(), TheoraProcessData(), TheScreen, OggData::tinfo, OggData::tstate, Video, OggData::video, WaitEventsOneFrame(), and CVideo::Width.
Referenced by ShowTitleScreens().
| 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().
bool MovieStop [static] |
Definition at line 61 of file movie.cpp.
Referenced by MovieCallbackButtonPressed(), MovieCallbackKeyPressed(), and PlayMovie().
| SDL_Surface* TheScreen |
1.5.6