📄 tv_main.c
字号:
#include "Tv_Include.h"
kal_int8 init_ATV(void);
void ATV_preview(image_sensor_exposure_window_struct *image_window, image_sensor_config_struct *sensor_config_data);
extern TLG_TV_OPTIONS gTvOptions;
int tv_main(void)
{
image_sensor_exposure_window_struct image_window;
image_sensor_config_struct sensor_config_data;
#ifdef WIN32
printf("******************************************************\n");
printf("TV driver version = %d.%d.%d\n", TLG_VERSION_MAJOR, TLG_VERSION_MINOR, TLG_VERSION_PATCH);
printf("Compiler sizeof(int) = %d byte(s)\n", sizeof(int));
printf("TV storage max = %d\n", TV_STORAGE_MAX);
printf("FM storage max = %d\n", FM_STORAGE_MAX);
printf("******************************************************\n");
#endif
TLGMMI_RestoreTvOption();
TLGMMI_RestoreFmOption();
TLGMMI_ClearTvStorage();
TLGMMI_ClearFmStorage();
gTvOptions.mHOffset = 0;
gTvOptions.mVOffset= 0;
gTvOptions.mHReduce= 0;
gTvOptions.mVReduce= 0;
gTvStorage.mRegion = TLG_REGION_CHINA;
init_ATV();
ATV_preview(&image_window, &sensor_config_data);
gTvOptions.mHOffset = H_OFFSET_RANGE;
gTvOptions.mVOffset= V_OFFSET_RANGE;
gTvOptions.mHReduce= H_REDUCE_RANGE;
gTvOptions.mVReduce= V_REDUCE_RANGE;
gTvStorage.mRegion = TLG_REGION_USA;
init_ATV();
ATV_preview(&image_window, &sensor_config_data);
return 0;
}
/*****************************************************************************/
#ifndef ADS_MTK
void isp_ibw2_cb(void) {}
kal_uint32 SaveAndSetIRQMask(void) {return 0;}
void RestoreIRQMask(kal_uint32 a) {}
void StartTimer(uint16 timerid, uint32 delay, FuncPtr funcPtr) {}
void StopTimer(uint16 timerid) {}
void CloseTimer(uint16 timerid) {}
char GPIO_ReadIO(char port) {return 0;}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -