天嵌 ARM开发社区

 找回密码
 注册
查看: 1273|回复: 2

preview_frames

[复制链接]
embedded.lys 发表于 2012-5-15 21:58:55 | 显示全部楼层 |阅读模式
本帖最后由 embedded.lys 于 2012-5-15 22:02 编辑

static int        preview_frames = 3;
                for (i = 0; i < preview_frames; i++)
                {
                        if ((ret = read(v4l2_fd, &preview_buf, 320*240*2)) < 0)
                        {
                                perror("read");
                                return 0;
                        }
                }

这是什么意思呀?求解释(主要是不理解preview_frames代表什么意思?为什么要等于3?)
TQ_guoxixiao 发表于 2012-5-16 09:29:00 | 显示全部楼层
哪里的代码?
 楼主| embedded.lys 发表于 2012-5-16 21:44:46 | 显示全部楼层
cam2jpg中的代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-7-6 03:49 , Processed in 1.062500 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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