timvideos / HDMI2USB-litex-firmware

A version of the HDMI2USB firmware based around LiteX tools produced by @Enjoy-Digital (based on misoc+migen created by @M-Labs)
https://hdmi2usb.tv
BSD 2-Clause "Simplified" License
144 stars 71 forks source link

Calculate CRC code on pixels during frame transfer #130

Open mithro opened 8 years ago

mithro commented 8 years ago

We transfer frames of video data to and from many different locations (memory, HDMI ports, USB, etc) without any error checking currently.

It would be good if we calculated CRC code for the pixels in a frame as we transferred them around. This would then allow us too check there was no error in transfer.

This is also needed for pulldown detection, as we need to be able detect identical frames of data and a CRC code should allow that to be easy.

This should be as simple as adding CRC generation to the DMA engines in the HDMI input and output cores.

mithro commented 8 years ago

This would also be useful if we wanted to star transferring the video frames over Ethernet.