pcprogrammer: From an analog VGA or DVI/HDMI input. That part is not decided yet. Does not matter, the output format will be always practically the same. RGB 16bit color, H+V sync, clock at ~25 MHz.
Also not familiar with cameras, but I am very sure, that limiting the DCMI input to 14 bits and not implementing full 16 bits, was a very dumb idea. Would it hurt so much, to make it 16 bits? Also, the format the DCMI is stacking the captured data in memory, for any width other than 8bit input capture, is nothing standard and is further incompatible with other graphic oriented peripherals in STM32. CPU hogging required to reformat captured data.
Yes, later models of STM32 got upgraded with DMA2D, that could do YUV-RGB colorspace conversion. However, in STM32F4 product line, there is (to my best knowledge) none device that supports YUV (YCbCr) by other peripherals. So the only practically usable mode for live viewing cameras, is RGB565, which is crippled, because of 2 missing bits in the input data interface, so some (I think) rather not common multiplexed 8bit mode must be used. Hate stupid STM32 limitations like these.
Berni: What to do with the video? Not that surprisingly, I will try to display it somewhere. Don't take it as a rude answer please, that is simply what I plan to do.
Sure, not much processing power by just CPU itself, but the DMA2D is a pretty useful tool. I would not call this "just DMA", it is capable of doing much more than regular DMA.
I agree, that an FPGA would be much better choice for video processing. But this time I'd like to try something a bit more special. As a learning experience, mostly.
dmendesf: That document is unfortunately only a glorified colorized copy of the exact text from reference manual. No bonus explanation regarding the RGB565 input mode. But at least the document lists important tricks for the DMA to transfer more than 65536 words, by using the double-buff mode, reprogramming addresses on-the-fly from within a DMA interrupt.
