明远智睿技术论坛

 找回密码
 立即注册
搜索
查看: 2763|回复: 3
打印 上一主题 下一主题

V4l2 overlay.out 运行错误

[复制链接]

43

主题

86

帖子

421

积分

中级会员

Rank: 3Rank: 3

积分
421
跳转到指定楼层
楼主
发表于 2017-2-22 10:55:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
后台运行了一个自己的V4l2的采集图像的程序
然后执行了测试程序 mxc_v4l2_overlay。out 之后就报错了
重启设备之后单独运行 mxc_v4l2_overlay.out ye也会报错 估计要重新烧录系统了 但是不明白为什么







imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x02000000
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0xf0 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00000001
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x100 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x110 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x120 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x130 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x140 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x150 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x160 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x170 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x180 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x190 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x1a0 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x1b0 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x1c0 "wait_for_comp_timeout" ret:0,line:2891
imx-ipuv3 imx-ipuv3.0: ERR:[0x8f7e9000]-no:0x1d0 "wait_for_comp_timeout" ret:0,line:2891

回复

使用道具 举报

36

主题

745

帖子

2872

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2872
沙发
发表于 2017-2-23 09:36:18 | 只看该作者
mxc_v4l2_overlay.out是设置参数,是否正确设置
回复 支持 反对

使用道具 举报

43

主题

86

帖子

421

积分

中级会员

Rank: 3Rank: 3

积分
421
板凳
 楼主| 发表于 2017-2-23 16:32:41 | 只看该作者
软件01 发表于 2017-2-23 09:36
mxc_v4l2_overlay.out是设置参数,是否正确设置

1)-iw -ih -ow -oh 还需要别的吗?
2)overlay和output.out  可以同时运行吗?output.out中设置g_in_fmt = V4L2_PIX_FMT_YUV420可以正常显示,改为g_in_fmt = V4L2_PIX_FMT_UYVY 之后修改 只能显示一半  ,g_in_fmt = V4L2_PIX_FMT_YUV420 设置和设么有关系?
  void draw_fill_full(unsigned char * buf, int frame_num)
{
    int y_size = g_in_width * g_in_height;
    int h_step = g_in_height / 16;
    int w_step = g_in_width / 16;
    uint32_t y_color = 0;
    int32_t u_color = 0;
    int32_t v_color = 0;
    uint32_t rgb = 0;
    int h, w;
    static int32_t alpha = 0;
    static int inc_alpha = 1;
    for (h = 0; h < g_in_height; h++) {
        int32_t rgb_temp = 0x1c;
        y_color = y(rgb_temp);
        y_color = (y_color * alpha) / 255;

        u_color = u(rgb_temp);
        u_color = (u_color * alpha) / 255;
        u_color += 128;

        v_color = v(rgb_temp);
        v_color = (v_color * alpha) / 255;
        v_color += 128;      
        for (w = 0; w < g_in_width; w++) {         
            buf[(h*g_in_width) + w] = y_color;
           //if (!(h & 0x1) && !(w & 0x1)) {
           //    buf[y_size + (((h*g_in_width)/4) + (w/2)) ] = u_color;
           //     buf[y_size + y_size/4+ (((h*g_in_width)/4) + (w/2))] = v_color;
          // }
            if (!(w & 0x1)) {
                buf[y_size + (((h*g_in_width)/2) + (w/2)) ] = u_color;
                buf[y_size + y_size/2+ (((h*g_in_width)/2) + (w/2))] = v_color;
            }
        }
    }   
    if (inc_alpha) {
        alpha+=4;
        if (alpha >= 255) {
            inc_alpha = 0;
        }
    } else {
        alpha-=4;
        if (alpha <= 0) {
            inc_alpha = 1;
        }
    }
}

3)想用mxc_v4l2_oupue.out修改一个程序可以划线,同时又能运行overlay 可以预览 ,可以吗?
回复 支持 反对

使用道具 举报

43

主题

86

帖子

421

积分

中级会员

Rank: 3Rank: 3

积分
421
地板
 楼主| 发表于 2017-2-24 11:25:28 | 只看该作者
软件01 发表于 2017-2-23 09:36
mxc_v4l2_overlay.out是设置参数,是否正确设置

后台 运行mxc_V4l2_overlay.out 之后运行一个caputure程序出现

imx-ipuv3 imx-ipuv3.0: handler already installed on irq 0
imx-ipuv3 imx-ipuv3.0: CSI irq 0 in use
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|明远智睿  

GMT+8, 2024-5-3 09:50 , Processed in 0.058358 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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