明远智睿技术论坛

标题: V4l2 overlay.out 运行错误 [打印本页]

作者: jack    时间: 2017-2-22 10:55
标题: V4l2 overlay.out 运行错误
后台运行了一个自己的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


作者: 软件01    时间: 2017-2-23 09:36
mxc_v4l2_overlay.out是设置参数,是否正确设置
作者: jack    时间: 2017-2-23 16:32
软件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 可以预览 ,可以吗?
作者: jack    时间: 2017-2-24 11:25
软件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




欢迎光临 明远智睿技术论坛 (http://bbs.myzr.com.cn/) Powered by Discuz! X3.2