102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
movie_backend.c
Go to the documentation of this file.
1/* Recovered game implementation; original addresses identify provenance. */
4
5// Original pcdogs.exe: 0x445e70
6// Forwards the window handle to the movie backend's sound-system initializer and returns its result.
7int32_t Movie_InitSoundSystem(HWND hwnd)
8{
9 return Player_InitSoundSystem(hwnd);
10}
11
12// Original pcdogs.exe: 0x445e76
13// Forwards the window handle and exclusive-mode flag to the movie backend's video-system initializer.
14int32_t Movie_InitVideoSystem(HWND hwnd, BOOL fullscreen_exclusive)
15{
16 return Player_InitVideoSystem(hwnd, fullscreen_exclusive);
17}
18
19// Original pcdogs.exe: 0x445e7c
20// Forwards the movie-handle pointer to the backend shutdown routine and returns its result.
21int32_t Movie_ShutdownMovie(int32_t *movie_handle)
22{
23 return Player_ShutDownMovie(movie_handle);
24}
25
26// Original pcdogs.exe: 0x445e82
27// Forwards the surface-handle pointer to the backend video shutdown routine and returns its result.
28int32_t Movie_ShutdownVideo(int32_t *surface_handle)
29{
30 return Player_ShutDownVideo(surface_handle);
31}
32
33// Original pcdogs.exe: 0x445e88
34// Forwards the sound-handle pointer to the backend sound shutdown routine and returns its result.
35int32_t Movie_ShutdownSound(int32_t *sound_handle)
36{
37 return Player_ShutDownSound(sound_handle);
38}
39
40// Original pcdogs.exe: 0x445e8e
41// Calls the movie backend to restore the playback mode and returns its result.
43{
45}
46
47// Original pcdogs.exe: 0x445e94
48// Stops the backend timer for the supplied movie handle and returns its result.
49int32_t Movie_StopTimer(int32_t movie_handle)
50{
51 return Player_StopTimer(movie_handle);
52}
53
54// Original pcdogs.exe: 0x445e9a
55// Starts the backend timer for the supplied movie handle and returns its result.
56int32_t Movie_StartTimer(int32_t movie_handle)
57{
58 return Player_StartTimer(movie_handle);
59}
60
61// Original pcdogs.exe: 0x445ea0
62// Forwards the video surface and mapping flags to the movie backend and returns its result.
63int32_t Movie_MapVideo(int32_t surface_handle, int32_t flags)
64{
65 return Player_MapVideo(surface_handle, flags);
66}
67
68// Original pcdogs.exe: 0x445ea6
69// Connects the movie, video, and sound handles through the backend playback initializer and returns its result.
70int32_t Movie_InitMoviePlayback(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle)
71{
72 return Player_InitMoviePlayback(movie_handle, surface_handle, sound_handle);
73}
74
75// Original pcdogs.exe: 0x445eac
76// Forwards sound-buffer, sample-format, channel, rate, and synchronization parameters to the backend sound initializer.
77int32_t Movie_InitSound(int32_t *sound_handle_out, uint32_t buffer_bytes, uint32_t bytes_per_sample, BOOL precision_is_not_four_bytes, uint32_t block_bytes, int32_t channels, int32_t sample_rate, int32_t sample_precision, uint32_t sound_sync_mode)
78{
79 return Player_InitSound(sound_handle_out, buffer_bytes, bytes_per_sample, precision_is_not_four_bytes, block_bytes, channels, sample_rate, sample_precision, sound_sync_mode);
80}
81
82// Original pcdogs.exe: 0x445eb2
83// Forwards the window, surface, display-mode, and clipper settings to the backend playback-mode initializer.
84int32_t Movie_InitPlaybackMode(HWND hwnd, int32_t surface_handle, BOOL force640x480x16, BOOL attach_window_clipper)
85{
86 return Player_InitPlaybackMode(hwnd, surface_handle, force640x480x16, attach_window_clipper);
87}
88
89// Original pcdogs.exe: 0x445eb8
90// Forwards the movie dimensions, mapping parameters, output size, and stream flags to the backend video initializer.
91int32_t Movie_InitVideo(int32_t *surface_handle_out, int32_t movie_handle, int32_t movie_width, int32_t movie_height, int32_t mapping_x, int32_t mapping_y, uint32_t mapping_arg7, uint32_t mapping_arg8, uint32_t output_width, uint32_t output_height, BOOL zero_mapping_origin, BOOL preserve_destination_mapping, uint32_t streamer_flags)
92{
93 return Player_InitVideo(surface_handle_out, movie_handle, movie_width, movie_height, mapping_x, mapping_y, mapping_arg7, mapping_arg8, output_width, output_height, zero_mapping_origin, preserve_destination_mapping, streamer_flags);
94}
95
96// Original pcdogs.exe: 0x445ebe
97// Forwards the movie path, streaming callback, callback interval, and buffer size to the backend movie initializer.
98int32_t Movie_InitMovie(int32_t *movie_handle_out, void (*streaming_callback)(), uint32_t callback_interval_bytes, char const *movie_path, uint32_t buffer_size)
99{
100 return Player_InitMovie(movie_handle_out, streaming_callback, callback_interval_bytes, movie_path, buffer_size);
101}
102
103// Original pcdogs.exe: 0x445ec4
104// Forwards the movie, video, sound, effects, destination rectangle, and codec arguments to the backend frame player.
105int32_t Movie_PlayFrame(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle, void *alpha_effects_handle, RECT const *destination_rect, uint32_t codec_frame_arg6, uint32_t codec_frame_arg7, uint32_t codec_start_arg15)
106{
107 return Player_PlayFrame(movie_handle, surface_handle, sound_handle, alpha_effects_handle, destination_rect, codec_frame_arg6, codec_frame_arg7, codec_start_arg15);
108}
109
110// Original pcdogs.exe: 0x445eca
111// Shuts down the movie backend's sound system and returns its result.
113{
115}
116
117// Original pcdogs.exe: 0x445ed0
118// Shuts down the movie backend's video system and returns its result.
120{
122}
int32_t Player_ShutDownSoundSystem(void)
int32_t Player_InitPlaybackMode(HWND hwnd, int32_t surface_handle, BOOL force640x480x16, BOOL attach_window_clipper)
int32_t Player_StopTimer(int32_t movie_handle)
int32_t Player_InitSoundSystem(HWND hwnd)
int32_t Player_InitSound(int32_t *sound_handle_out, uint32_t buffer_bytes, uint32_t bytes_per_sample, BOOL precision_is_not_four_bytes, uint32_t block_bytes, int32_t channels, int32_t sample_rate, int32_t sample_precision, uint32_t sound_sync_mode)
int32_t Player_InitMoviePlayback(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle)
int32_t Player_MapVideo(int32_t surface_handle, int32_t flags)
int32_t Player_PlayFrame(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle, void *alpha_effects_handle, RECT const *destination_rect, uint32_t codec_frame_arg6, uint32_t codec_frame_arg7, uint32_t codec_start_arg15)
int32_t Player_ShutDownSound(int32_t *sound_handle)
int32_t Player_ShutDownMovie(int32_t *movie_handle)
int32_t Player_ShutDownVideo(int32_t *surface_handle)
int32_t Player_ShutDownVideoSystem(void)
int32_t Player_InitVideo(int32_t *surface_handle_out, int32_t movie_handle, int32_t movie_width, int32_t movie_height, int32_t mapping_x, int32_t mapping_y, uint32_t mapping_arg7, uint32_t mapping_arg8, uint32_t output_width, uint32_t output_height, BOOL zero_mapping_origin, BOOL preserve_destination_mapping, uint32_t streamer_flags)
int32_t Player_ReturnPlaybackMode(void)
int32_t Player_StartTimer(int32_t movie_handle)
int32_t Player_InitVideoSystem(HWND hwnd, BOOL fullscreen_exclusive)
int32_t Player_InitMovie(int32_t *movie_handle_out, void(*streaming_callback)(), uint32_t callback_interval_bytes, char const *movie_path, uint32_t buffer_size)
int32_t Movie_ReturnPlaybackMode(void)
int32_t Movie_MapVideo(int32_t surface_handle, int32_t flags)
int32_t Movie_InitVideoSystem(HWND hwnd, BOOL fullscreen_exclusive)
int32_t Movie_PlayFrame(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle, void *alpha_effects_handle, RECT const *destination_rect, uint32_t codec_frame_arg6, uint32_t codec_frame_arg7, uint32_t codec_start_arg15)
int32_t Movie_InitVideo(int32_t *surface_handle_out, int32_t movie_handle, int32_t movie_width, int32_t movie_height, int32_t mapping_x, int32_t mapping_y, uint32_t mapping_arg7, uint32_t mapping_arg8, uint32_t output_width, uint32_t output_height, BOOL zero_mapping_origin, BOOL preserve_destination_mapping, uint32_t streamer_flags)
int32_t Movie_StopTimer(int32_t movie_handle)
int32_t Movie_InitMoviePlayback(int32_t movie_handle, int32_t surface_handle, int32_t sound_handle)
int32_t Movie_ShutdownVideo(int32_t *surface_handle)
int32_t Movie_ShutdownSound(int32_t *sound_handle)
int32_t Movie_InitMovie(int32_t *movie_handle_out, void(*streaming_callback)(), uint32_t callback_interval_bytes, char const *movie_path, uint32_t buffer_size)
int32_t Movie_ShutdownSoundSystem(void)
int32_t Movie_ShutdownMovie(int32_t *movie_handle)
int32_t Movie_InitPlaybackMode(HWND hwnd, int32_t surface_handle, BOOL force640x480x16, BOOL attach_window_clipper)
int32_t Movie_ShutdownVideoSystem(void)
int32_t Movie_StartTimer(int32_t movie_handle)
int32_t Movie_InitSoundSystem(HWND hwnd)
int32_t Movie_InitSound(int32_t *sound_handle_out, uint32_t buffer_bytes, uint32_t bytes_per_sample, BOOL precision_is_not_four_bytes, uint32_t block_bytes, int32_t channels, int32_t sample_rate, int32_t sample_precision, uint32_t sound_sync_mode)