RetroArch
movie.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __RARCH_MOVIE_H
18 #define __RARCH_MOVIE_H
19 
20 #include <stdint.h>
21 #include <stddef.h>
22 
23 #include <boolean.h>
24 #include <retro_common_api.h>
25 
27 
28 #define BSV_MAGIC 0x42535631
29 
30 #define MAGIC_INDEX 0
31 #define SERIALIZER_INDEX 1
32 #define CRC_INDEX 2
33 #define STATE_SIZE_INDEX 3
34 
35 typedef struct bsv_movie bsv_movie_t;
36 
38 {
41 };
42 
44 {
57 };
58 
59 void bsv_movie_deinit(void);
60 
61 bool bsv_movie_init(void);
62 
63 bool bsv_movie_is_playback_on(void);
64 
65 bool bsv_movie_is_playback_off(void);
66 
67 void bsv_movie_set_path(const char *path);
68 
69 void bsv_movie_set_start_path(const char *path);
70 
71 void bsv_movie_set_frame_start(void);
72 
73 void bsv_movie_set_frame_end(void);
74 
75 bool bsv_movie_get_input(int16_t *bsv_data);
76 
77 bool bsv_movie_is_end_of_file(void);
78 
79 bool bsv_movie_ctl(enum bsv_ctl_state state, void *data);
80 
81 bool bsv_movie_check(void);
82 
83 bool bsv_movie_init_handle(const char *path, enum rarch_movie_type type);
84 
86 
87 #endif
void bsv_movie_set_frame_start(void)
Definition: movie.c:263
Definition: movie.h:39
bool bsv_movie_is_end_of_file(void)
Definition: movie.c:416
Definition: movie.h:53
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
bsv_ctl_state
Definition: movie.h:43
void bsv_movie_deinit(void)
Definition: movie.c:493
GLsizei const GLchar ** path
Definition: glext.h:7901
bool bsv_movie_init_handle(const char *path, enum rarch_movie_type type)
Definition: movie.c:482
Definition: movie.h:47
Definition: movie.h:50
Definition: ibxm.h:9
bool bsv_movie_is_playback_off(void)
Definition: movie.c:411
bool bsv_movie_get_input(int16_t *bsv_data)
Definition: movie.c:396
Definition: movie.h:54
GLenum type
Definition: glext.h:6233
Definition: movie.c:37
Definition: movie.h:56
void bsv_movie_set_path(const char *path)
Definition: movie.c:470
void bsv_movie_set_start_path(const char *path)
Definition: movie.c:476
signed short int16_t
Definition: stdint.h:122
rarch_movie_type
Definition: movie.h:37
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
Definition: movie.h:46
Definition: movie.h:52
Definition: movie.h:48
bool bsv_movie_init(void)
Definition: movie.c:334
Definition: movie.h:40
void bsv_movie_set_frame_end(void)
Definition: movie.c:270
Definition: movie.h:45
bool bsv_movie_is_playback_on(void)
Definition: movie.c:406
bool bsv_movie_check(void)
Definition: movie.c:576
bool bsv_movie_ctl(enum bsv_ctl_state state, void *data)
Definition: movie.c:421
Definition: movie.h:55