Tscope5
|
Definitions of video functions. More...
Go to the source code of this file.
Functions | |
Loading videos | |
Videos can be read from a file using the functions below. | |
TS5_VIDEO * | ts5_read_video (const char *file) |
Open a video from a file. More... | |
void | ts5_free_video (TS5_VIDEO *video) |
Free the memory used by a video. More... | |
Playing videos | |
Videos can be played using the functions below. The audio part is played in the background automatically so the user doesn't need to do anything special do make the audio audible. The video is not displayed automatically but is provided frame by frame as a TS5_BITMAP. The user will need to draw each frame on the screen using the bitmap drawing functions to make the video visible. see video01.c for an example that shows how this works. | |
void | ts5_play_video (TS5_VIDEO *video) |
Start playing a video. More... | |
void | ts5_pause_video (TS5_VIDEO *video) |
Pause playing a video. More... | |
void | ts5_stop_video (TS5_VIDEO *video) |
Stop playing a video. More... | |
TS5_BITMAP * | ts5_get_video_frame (TS5_VIDEO *video) |
Get the next frame of a video. More... | |
Video parameters | |
For each video the parameters can be queried/set using the functions below: Video position and video gain can be adjusted at any time, even when the video is playing. There is no function available to query the length of a video. | |
int | ts5_get_video_status (TS5_VIDEO *video) |
Query whether a video is playing. More... | |
double | ts5_get_video_aspect_ratio (TS5_VIDEO *video) |
Get the aspect ratio of a video. More... | |
double | ts5_get_video_width (TS5_VIDEO *video) |
Get the width of a video. More... | |
double | ts5_get_video_height (TS5_VIDEO *video) |
Get the height of a video. More... | |
double | ts5_get_video_samplerate (TS5_VIDEO *video) |
Get the audio samplerate of a video. More... | |
double | ts5_get_video_framerate (TS5_VIDEO *video) |
Get the framerate of a video. More... | |
double | ts5_set_video_position (TS5_VIDEO *video, double position) |
Set the playback position of a video. More... | |
double | ts5_get_video_position (TS5_VIDEO *video) |
Get the playback position of a video. More... | |
double | ts5_set_video_gain (TS5_VIDEO *video, double gain) |
Set the playback gain of a video. More... | |
double | ts5_get_video_gain (TS5_VIDEO *video) |
Get the playback gain of a video. More... | |
Definitions of video functions.
Definition in file video.c.
TS5_VIDEO* ts5_read_video | ( | const char * | file | ) |
void ts5_free_video | ( | TS5_VIDEO * | video | ) |
void ts5_play_video | ( | TS5_VIDEO * | video | ) |
void ts5_pause_video | ( | TS5_VIDEO * | video | ) |
void ts5_stop_video | ( | TS5_VIDEO * | video | ) |
TS5_BITMAP* ts5_get_video_frame | ( | TS5_VIDEO * | video | ) |
int ts5_get_video_status | ( | TS5_VIDEO * | video | ) |
double ts5_get_video_aspect_ratio | ( | TS5_VIDEO * | video | ) |
double ts5_get_video_width | ( | TS5_VIDEO * | video | ) |
double ts5_get_video_height | ( | TS5_VIDEO * | video | ) |
double ts5_get_video_samplerate | ( | TS5_VIDEO * | video | ) |
double ts5_get_video_framerate | ( | TS5_VIDEO * | video | ) |
double ts5_set_video_position | ( | TS5_VIDEO * | video, |
double | position | ||
) |
double ts5_get_video_position | ( | TS5_VIDEO * | video | ) |
double ts5_set_video_gain | ( | TS5_VIDEO * | video, |
double | gain | ||
) |