This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320DM8127 DaVinci前端接raw格式图像数据的问题

Other Parts Discussed in Thread: TMS320DM8127

大家好!想请教一个有关TMS320DM8127 DaVinci前端接bayer格式图像数据的问题。

在我的设计中,前端使用FPGA对ad芯片和ccd芯片驱动,进行原始图像采集,通过video input port以16bit 传输给 TMS320DM8127 DaVinci,进行接下来的色彩空间转换,3A等。因为原始采集的图像是四通道的,在FPGA中进行了一部分的次序调整,每行的行内顺序可调整为顺序的,但是受到帧率及频率的限制行序没调整过来,所以通过video input port发送时,先发送第一行,接着最后一行,接着第二行,然后倒数第二行......就是以这样从一帧图片的上下两端逐行发送,最后发送的图片中间两行的数据。

 我的问题是,假如以这样的行序发送,对TMS320DM8127 DaVinci 接下来的数据处理流程会不会有影响?也就是说,这样的行序对TMS320DM8127 DaVinci 是不是可行的?

TMS320DM8127 DaVinci 接收到数据后要不要先缓存到DDR中,处理时再从DDR中读取?

我对这款芯片不了解,只是大概看到有frame buffer。希望懂的朋友多指点,谢谢!

  • 好吧,难道是我问题太奇葩?没人回答啊。。。。

    从ti的文档sprugz8e中看到这样一段话:

    12.10.2 VIP Functional Description
    The video data is captured from the external video source by the VIP Parser sub-block in the VIP block.
    The VIP Parser then sends the captured data for further processing in the VIP block which can include
    color space conversion, scaling, chroma down-sampling and finally writes the video data to external DDR
    memory. Color space conversion, scaling and chroma down-sampling are all optional for the incoming
    stream.
    The scaler and chroma down-sample module inside of the VIP can also be used for the memory-tomemory
    operation if they are not used in the capture mode.

    意思是:从外部来的video data到 VIP block后,可进行的操作有color space conversion, scaling, chroma down-sampling ,之后会写进外部DDR.
    并且这三个处理流程是可选的。如果在capture mode里不进行 scaling, chroma down-sampling ,那 scaler and chroma down-sample module可用作内存copy。

    我的问题又来了:从camera来的raw data,进入VIP block后,可不可以先用scaler and chroma down-sample module进行 memory-tomemory
    operation ,把图像行顺序调整后再进行Color space conversion呢?

    大神快来,谢谢!!!

  • 1.   遇到四通道的CCD这种情形,请最好在FPGA里面拼接好再送进来。 你是FPGA上面没有外接缓存吗?

    2.   Bayer Pattern是要求逐行的图像的,所以你最好还是按照正常顺序给到8127

    3. RAW数据我们一般是接到CAM口的,按照你第二个帖子的说法,是要去接到VIP口?

  • 如果你要接到VIP口的话,到不如FPGA分出两组数据口,去接8127上的VIP0/1.  每个口分管上、下半帧的图像,这样在芯片内部就只要做一次翻转,不必跳行做搬运了。

  • 你说的VIP口拿来直接做顺序调整,是不可行的。

  • 感谢您的回复!

    按照您的回复,我的理解是这样的:

    1.如果FPGA与8127硬件上连接了VIP0和VIP1,软件上可以设计为:上半帧图像通过一个口顺序逐行传输,下半帧通过另一个口倒序逐行传输(即先传输倒数第一行,再倒数第二行....),这样的顺序传输到8127后,再进行接下来的色彩空间转换等都不受影响吧?

    2.如果FPGA与8127硬件上只连接了一个VIP口,那就只能把图像顺序逐行传输给8127,对吗?

  • 对的。

    尽量采取在FPGA里面进行拼接的方式。因为你还要考虑拼接缝的一些其他问题。

  • 非常感谢!您的回复很好地解决了我的问题。