int OSDChangeCore(int coreid) { OSDDeInit(); OSDInit(coreid); return 0; }
void task_play_init(void) { deg_Printf("task play init\n"); reset_powerSaveChk(); #if (USER_CONFIG==CONFIG_AX3251_AIRBORNE) #else g_SystemState = SYSTEM_IDLE; FRESULT ret; u32 scan_num; play_file_num = 0; play_file_total = 0; memset__(&t_play,0,sizeof(t_play_trl)); sd_dis_flag = 0; if(video_enlager) { video_enlager = 0; tvout_Change_dis_size(video_enlager,0); } if(FALSE == sd_err_reinit()) { return; } if(!InitRecordFolder()) return; if(light_sta) CLOSE_NIGHT_LIGHT(); ret = f_scan_files(WORK_DIR_NAME,".JPG|.AVI",&scan_num); if(ret != FR_OK) { deg_Printf("scan file failed:%d\n",ret); } //deg_Printf("pass f_scan_files, ret =%d,scan_num = %d\n ",ret,scan_num); //play_file_total = scan_num; play_file_total = f_get_totalfile_num(0); play_file_num = play_file_total-1; deg_Printf("file total number =%d\n ",play_file_total); if(!play_file_total) { deg_Printf("no file\n"); return; } //play_file_num = 0; csi_Stop(); OSDInit(&OSD1Inf,0,0 ,MENU_WIDTH,MENU_HEIGHT,0xff,ALPHA_0X00_COLOR); OSD1_useColorAlpha(); if(0 == sys_ctl.tv_mode) lcd_set_backlight(1); t_play.play_sta = PLAY_STOP; OSD_changeFlag = 1; #endif }