646
Discussion - EVE / Re: Displaying Video
« on: November 05, 2019, 03:16:24 PM »
Hello,
The code you have looks correct, the following is from the 'set10.c' file in our main 'SampleApp' linked below.
Please see below for update version of our Sample Applications:
EVE_Samples_v1.1.0_RC_28062019.zip
Best Regards,
BRT Community
The code you have looks correct, the following is from the 'set10.c' file in our main 'SampleApp' linked below.
Code: [Select]
void SAMAPP_Video_Flash()
{
#define ADDR_VIDEO 4096
Gpu_CoCmd_FlashHelper_SwitchFullMode(g_phost);
Gpu_CoCmd_Dlstart(g_phost);
App_WrCoCmd_Buffer(g_phost, CLEAR(1, 1, 1));
App_WrCoCmd_Buffer(g_phost, COLOR_RGB(255, 255, 255));
Gpu_CoCmd_Text(g_phost, 0, 150, 30, 0, "Video display from Flash");
App_Flush_Co_Buffer(g_phost);
Gpu_Hal_WaitCmdfifo_empty(g_phost);
Gpu_CoCmd_FlashSource(g_phost, ADDR_VIDEO);
App_WrCoCmd_Buffer(g_phost, CMD_PLAYVIDEO);
App_WrCoCmd_Buffer(g_phost, OPT_FLASH | OPT_SOUND | OPT_NOTEAR | OPT_OVERLAY);
App_Flush_Co_Buffer(g_phost); //Video plays after this
Gpu_Hal_WaitCmdfifo_empty(g_phost);
Gpu_CoCmd_Nop(g_phost);
App_Flush_Co_Buffer_nowait(g_phost);
Gpu_Hal_Sleep(5000);
Gpu_Hal_Wr8(g_phost, REG_PLAY_CONTROL, -1);
}
Please see below for update version of our Sample Applications:
EVE_Samples_v1.1.0_RC_28062019.zip
Best Regards,
BRT Community