DungeonCrawl
Loading...
Searching...
No Matches
media_output.h
Go to the documentation of this file.
1
5#ifndef MEDIA_OUTPUT_H
6#define MEDIA_OUTPUT_H
7
9
10#include <notcurses/notcurses.h>
11#include <stdbool.h>
12
13/* =========================================================================
14 * IMAGE DISPLAY FUNCTIONS
15 * ========================================================================= */
16
28bool display_image_at(const char* filename, int x, int y, int height, int width, scale_type_t scale_type);
29
36bool display_image_background(const char* filename);
37
46bool display_image_cell(const char* filename, int x, int y);
47
48/* =========================================================================
49 * ANIMATION DISPLAY FUNCTIONS
50 * ========================================================================= */
51
65bool display_gif_at(const char* filename, int x, int y, int height, int width, scale_type_t scale_type, float fps, bool loop);
66
75bool display_gif_background(const char* filename, float fps, bool loop);
76
88bool display_video_at(const char* filename, int x, int y, int width, int height, scale_type_t scale);
89
98bool display_video_background(const char* filename, float fps, bool loop);
99
100/* =========================================================================
101 * ANIMATION CONTROL FUNCTIONS
102 * ========================================================================= */
103
110
116
122
123#endif// MEDIA_OUTPUT_H
bool display_image_cell(const char *filename, int x, int y)
Fill a single terminal cell with an image.
void media_output_pause(loaded_visual_t *media)
Pause playback of an animation or video.
bool display_gif_background(const char *filename, float fps, bool loop)
Fill the background with an animation file scaled to terminal size.
bool display_video_background(const char *filename, float fps, bool loop)
Fill the background with a video file scaled to terminal size.
bool display_image_at(const char *filename, int x, int y, int height, int width, scale_type_t scale_type)
Display an image file at specified coordinates with scaling.
bool display_gif_at(const char *filename, int x, int y, int height, int width, scale_type_t scale_type, float fps, bool loop)
Display an animation file at specified coordinates with scaling.
void media_output_reset(loaded_visual_t *media)
Reset animation or video to the beginning.
void media_output_play(loaded_visual_t *media)
Start playback of an animation or video Note: This does not handle actual timing, which must be done ...
bool display_image_background(const char *filename)
Fill the background with an image file scaled to terminal size.
bool display_video_at(const char *filename, int x, int y, int width, int height, scale_type_t scale)
Display a video file at specified coordinates with scaling.
Exposes functions for the media output handler.
struct loaded_visual_s loaded_visual_t
Structure to represent a loaded visual.