44 lines
887 B
C
Executable File
44 lines
887 B
C
Executable File
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <signal.h>
|
|
#include <hdal.h>
|
|
#include <kwrap/perf.h>
|
|
#include <kwrap/debug.h>
|
|
#include <kwrap/util.h>
|
|
#include <FreeRTOS_POSIX.h>
|
|
#include <FreeRTOS_POSIX/pthread.h>
|
|
#include "PrjCfg.h"
|
|
#include "sys_fastboot.h"
|
|
#include "flow_movie.h"
|
|
#include "vendor_videocapture.h"
|
|
#include "vendor_common.h"
|
|
#include "MovieFast.h"
|
|
#include "ImageApp/ImageApp_Common.h"
|
|
#include <comm/hwclock.h>
|
|
#include <comm/hwpower.h>
|
|
#include "flow_preview.h"
|
|
|
|
//header
|
|
#define DBGINFO_BUFSIZE() (0x200)
|
|
|
|
int flow_movie(void)
|
|
{
|
|
HD_RESULT hd_ret;
|
|
|
|
fastboot_wait_done(BOOT_INIT_CAPTURE);
|
|
|
|
// init hdal
|
|
fastflow_common_init();
|
|
|
|
hd_common_sysconfig(HD_VIDEOPROC_CFG, 0, HD_VIDEOPROC_CFG_GDC_BEST, 0);
|
|
|
|
hd_ret = hd_gfx_init();
|
|
if(hd_ret != HD_OK) {
|
|
DBG_ERR("gfx init fail=%d\n", hd_ret);
|
|
return -1;
|
|
}
|
|
|
|
return 0;
|
|
} |