天嵌 ARM开发社区

 找回密码
 注册
查看: 2978|回复: 1

TQ2440的mjpeg-stream源码分析不解

[复制链接]
wyz365889 发表于 2012-6-27 16:06:18 | 显示全部楼层 |阅读模式
static int init_v4l2(struct vdIn *vd)
{
int fd = open(vd->videodevice, O_RDONLY);
if (fd > 0)
{
  // Set preview width,height
  ioctl(fd, 0x0000, vd->width);
  ioctl(fd, 0x0001, vd->height);
      close(fd);
}
else
{
  goto fatal;
}
// Open camera
fdcamera = fopen(vd->videodevice,"rb");
if (fdcamera == NULL)
{
  printf("Could not open camera\n");
  goto fatal;
}

  return 0;
fatal:
  return -1;
}

上面ioctl的地址0x0000是怎么回事,查了mjpeg-stream官方源码好像没这东西。
小舟 发表于 2012-7-11 10:34:39 | 显示全部楼层
我也有同样的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-18 20:02 , Processed in 1.046875 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表