A133适配imx258 mipi摄像头问题
-
A133适配imx258 mipi,现在通过tina中camerademo(未启用VIN-ISP)能够获取到raw10图像数据,但是这种RAW10格式的数据如何通过ISP正常显示到液晶屏上?imx258只支持RAW8/RAW10的数据格式输出,驱动中配置RAW10格式输出,bus 总线设置为V4L2_PIX_FMT_SRGGB10,static int isOutputRawData(int format)
{
if (format == V4L2_PIX_FMT_SBGGR8 ||
format == V4L2_PIX_FMT_SGBRG8 ||
format == V4L2_PIX_FMT_SGRBG8 ||
format == V4L2_PIX_FMT_SRGGB8 ||format == V4L2_PIX_FMT_SBGGR10 || format == V4L2_PIX_FMT_SGBRG10 || format == V4L2_PIX_FMT_SGRBG10 || format == V4L2_PIX_FMT_SRGGB10 || format == V4L2_PIX_FMT_SBGGR12 || format == V4L2_PIX_FMT_SGBRG12 || format == V4L2_PIX_FMT_SGRBG12 || format == V4L2_PIX_FMT_SRGGB12) return 1; else return 0;
}
#ifdef USE_VIN_ISP
/* setting ISP */
if (camera->sensor_type == V4L2_SENSOR_TYPE_RAW
&& !isOutputRawData(camera->pixelformat)) {
camera->ispId = -1;
camera->ispId = camera->ispPort->ispGetIspId(camera->camera_index);
if (camera->ispId >= 0)
camera->ispPort->ispStart(camera->ispId);
}
#endif
但是例程中非isOutputRawData列举出格式才启动isp ,/dev/video中视频流如何
通过isp转换成常规rgb数据的?大佬们怎么将raw10的格式数据实时显示到液晶屏上的?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号