Beispiel #1
0
void record_movie_frame(mame_bitmap *bitmap)
{
#if 0 /* AdvanceMAME has its record code */
	if (movie_file != NULL && bitmap != NULL)
	{
		profiler_mark(PROFILER_MOVIE_REC);

		if (movie_frame++ == 0)
			save_frame_with(movie_file, bitmap, mng_capture_start);
		save_frame_with(movie_file, bitmap, mng_capture_frame);

		profiler_mark(PROFILER_END);
	}
#endif
}
Beispiel #2
0
static void movie_record_frame(int scrnum)
{
	/* only record if we have a file */
	if (movie_file != NULL)
	{
		profiler_mark(PROFILER_MOVIE_REC);

		/* track frames */
		if (movie_frame++ == 0)
			save_frame_with(movie_file, scrnum, mng_capture_start);
		save_frame_with(movie_file, scrnum, mng_capture_frame);

		profiler_mark(PROFILER_END);
	}
}
Beispiel #3
0
void save_screen_snapshot_as(mame_file *fp, mame_bitmap *bitmap)
{
#if 0 /* AdvanceMAME has its snapshot code */
	save_frame_with(fp, bitmap, png_write_bitmap);
#endif
}
Beispiel #4
0
void video_screen_save_snapshot(mame_file *fp, int scrnum)
{
	save_frame_with(fp, scrnum, png_write_bitmap);
}