Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    V536支持raw8数据的sensor吗

    其它全志芯片讨论区
    2
    3
    1578
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      inomec LV 5 last edited by

      若是支持,pixelformat应该设置位哪个?
      驱动中数据结构应该设置位哪个?

      static struct sensor_format_struct sensor_formats[] = {
          {.desc = "RAW Bayer GBRG 8bit",
           .mbus_code = MEDIA_BUS_FMT_SGBRG8_1X8, // 
           .regs = sensor_fmt_raw,
           .regs_size = ARRAY_SIZE(sensor_fmt_raw),
           .bpp = 1},
      };
      

      我们的sensor我觉得是应该设置位MEDIA_BUS_FMT_Y8_1X8,但是VIN好像不支持。

      C 1 Reply Last reply Reply Quote Share 0
      • C
        chengwei_peng LV 6 @inomec last edited by

        @inomec 支持,你的配置也是对的,vin应该没有这个限制吧

        I 1 Reply Last reply Reply Quote Share 0
        • I
          inomec LV 5 @chengwei_peng last edited by

          @chengwei_peng

          vin_fmt vin_formats[] 这个数据结构中没有,下面这组数据

          {
          		.name		= "YUV 4:0:0 planar, GREY", // added by jamo@20220830
          		.fourcc		= V4L2_PIX_FMT_GREY,
          		.depth		= { 8 },
          		.memplanes	= 1,
          		.colplanes	= 1,
          		.mbus_code	= MEDIA_BUS_FMT_Y8_1X8,
          		.flags		= VIN_FMT_RAW,
          
          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策