ClanSoft logo
ClanSoft logo
Entire Class Index Main Class Index Cross Index Global Index

Class CL_MPEG

MPEG Class
Contained in: global
Derived from: none
Derived by: none
Group: MPEG (System)

#include <ClanLib/mpeg.h>


public function member index:

Construction:

CL_MPEG(const char* filename, bool video = true, bool audio = true);
~CL_MPEG();

Operations:

void set_audio(bool flag);
void set_video(bool flag);
void set_double(bool flag);
void set_loop(bool flag);
void set_volume(int volume);
void move(int x, int y);
void play();
void pause();
void stop();
void rewind();
void set_display(CL_Target* dst, CL_Mutex* surfLock, CL_MPEG_DisplayCallback callback);
void set_display(CL_Target* dst);

Attributes:

bool has_video();
bool has_audio();
unsigned int get_width();
unsigned int get_height();
unsigned int get_current_frame();
double get_current_fps();
CL_MPEG_Status get_status();
char* get_error();
 

Description:


Function Member Descriptions:

CL_MPEG::CL_MPEG - MPEG Constructor
CL_MPEG(const char* filename, bool video = true, bool audio = true);


CL_MPEG::get_current_fps - Get current fps
double get_current_fps();


CL_MPEG::get_current_frame - Get current frame
unsigned int get_current_frame();


CL_MPEG::get_error - Get error
char* get_error();


CL_MPEG::get_height - Get height
unsigned int get_height();


CL_MPEG::get_status - Get status
CL_MPEG_Status get_status();


CL_MPEG::get_width - Get width
unsigned int get_width();


CL_MPEG::has_audio - Has audio
bool has_audio();


CL_MPEG::has_video - Has video
bool has_video();


CL_MPEG::move - Move
void move(int x, int y);


CL_MPEG::pause - Pause
void pause();


CL_MPEG::play - Play
void play();


CL_MPEG::rewind - Rewind
void rewind();


CL_MPEG::set_audio - Set audio
void set_audio(bool flag);


CL_MPEG::set_display - Set display
void set_display(CL_Target* dst);


CL_MPEG::set_display - Set display
void set_display(CL_Target* dst, CL_Mutex* surfLock, CL_MPEG_DisplayCallback callback);


CL_MPEG::set_double - Set double
void set_double(bool flag);


CL_MPEG::set_loop - Set loop
void set_loop(bool flag);


CL_MPEG::set_video - Set video
void set_video(bool flag);


CL_MPEG::set_volume - Set volume
void set_volume(int volume);


CL_MPEG::stop - Stop
void stop();


CL_MPEG::~CL_MPEG - MPEG Destructor
~CL_MPEG();



Variable Member Descriptions: