当前位置: 技术问答>linux和unix
帮忙指点下程序
来源: 互联网 发布时间:2016-03-17
本文导语: int camera_out_format = QVGA_YUV422; static int WIDTH; static int HEIGHT; static int IMG_SIZE; static int fd_ppi; static FILE *fd; static unsigned long video_in; unsigned char *dma_buff; unsigned char *in_buff; unsigned char *out_buff; int main() { int ret,...
int camera_out_format = QVGA_YUV422;
static int WIDTH;
static int HEIGHT;
static int IMG_SIZE;
static int fd_ppi;
static FILE *fd;
static unsigned long video_in;
unsigned char *dma_buff;
unsigned char *in_buff;
unsigned char *out_buff;
int main()
{
int ret, i,j;
int nOutputBytes;
int yuv_width, yuv_height;
double enctime;
char s[2];
unsigned char *p_data;
/* open ppi driver device */
if ((fd_ppi = open("/dev/ppifcd", O_RDWR))
static int WIDTH;
static int HEIGHT;
static int IMG_SIZE;
static int fd_ppi;
static FILE *fd;
static unsigned long video_in;
unsigned char *dma_buff;
unsigned char *in_buff;
unsigned char *out_buff;
int main()
{
int ret, i,j;
int nOutputBytes;
int yuv_width, yuv_height;
double enctime;
char s[2];
unsigned char *p_data;
/* open ppi driver device */
if ((fd_ppi = open("/dev/ppifcd", O_RDWR))