Ejemplo n.º 1
0
static int display_video_handler(unsigned char major, unsigned char minor, unsigned char *data, int len, void *context)
{
	mve_showframe(g_vBackBuf1, g_destX, g_destY, g_width, g_height, g_screenWidth, g_screenHeight);

	g_frameUpdated = 1;

	return 1;
}
Ejemplo n.º 2
0
static int display_video_handler(unsigned char major, unsigned char minor, unsigned char *data, int len, void *context)
{
	if (g_destX == -1) // center it
		g_destX = (g_screenWidth - g_width) >> 1;
	if (g_destY == -1) // center it
		g_destY = (g_screenHeight - g_height) >> 1;
	mve_showframe(g_vBackBuf1, g_width, g_height, 0, 0, g_width, g_height, g_destX, g_destY);
	g_frameUpdated = 1;
	return 1;
}