|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include <stdbool.h>#include <stdint.h>#include <SDL3/SDL.h>Go to the source code of this file.
Enumerations | |
| enum | dttr_movie_result { DTTR_MOVIE_PLAYING = 0 , DTTR_MOVIE_ENDED = 1 , DTTR_MOVIE_ESCAPE = 2 , DTTR_MOVIE_QUIT = 3 } |
Functions | |
| void | dttr_movies_init () |
| void | dttr_movies_cleanup () |
| void | dttr_movies_start (const char *path) |
| void | dttr_movies_tick () |
| bool | dttr_movies_handle_event (const SDL_Event *event) |
| dttr_movie_result | dttr_movies_stop () |
| bool | dttr_movies_is_playing () |
| enum dttr_movie_result |
| Enumerator | |
|---|---|
| DTTR_MOVIE_PLAYING | |
| DTTR_MOVIE_ENDED | |
| DTTR_MOVIE_ESCAPE | |
| DTTR_MOVIE_QUIT | |
Definition at line 9 of file movies_private.h.
| void dttr_movies_cleanup | ( | ) |
Definition at line 635 of file movies.c.
References audio_frame, close_movie(), DTTR_LOG_INFO, packet, and video_frame.
Referenced by cleanup_runtime().
| bool dttr_movies_handle_event | ( | const SDL_Event * | event | ) |
Definition at line 705 of file movies.c.
References DTTR_MOVIE_ENDED, DTTR_MOVIE_ESCAPE, DTTR_MOVIE_PLAYING, DTTR_MOVIE_QUIT, event, and movie.
Referenced by dttr_sidecar_handle_sdl_event().
| void dttr_movies_init | ( | ) |
Definition at line 606 of file movies.c.
References audio_frame, DTTR_LOG_ERROR, packet, and video_frame.
Referenced by install_required_sidecar_hooks().
| bool dttr_movies_is_playing | ( | ) |
Definition at line 748 of file movies.c.
References DTTR_MOVIE_PLAYING, and movie.
Referenced by attempt_play_startup_movies(), dttr_movies_hook_movie_play_file_callback(), and tick_main_loop().
| void dttr_movies_start | ( | const char * | path | ) |
Definition at line 644 of file movies.c.
References audio_frame, close_movie(), dttr_game_data_resolve_media_path(), DTTR_LOG_ERROR, DTTR_LOG_INFO, DTTR_MOVIE_ENDED, DTTR_MOVIE_PLAYING, movie, open_movie(), packet, and video_frame.
Referenced by attempt_play_startup_movies(), and dttr_movies_hook_movie_play_file_callback().
| dttr_movie_result dttr_movies_stop | ( | ) |
Definition at line 741 of file movies.c.
References close_movie(), DTTR_LOG_INFO, and movie.
Referenced by attempt_play_startup_movies(), and dttr_movies_hook_movie_play_file_callback().
| void dttr_movies_tick | ( | ) |
Definition at line 668 of file movies.c.
References decode_until_video_frame(), dttr_graphics_present_video_frame_bgra(), DTTR_LOG_WARN, DTTR_MOVIE_PLAYING, and movie.
Referenced by dttr_movies_hook_movie_play_file_callback(), and tick_main_loop().