Hi All,
I'm using the VPIF on the OMAP L138 LCDK to capture 12-bit per pixel raw images. My mission is to take up to 15 frames and run frame averaging. Code is written on the DSP.
As far as I understand, best way to do this (performance wise) is to allocate two lines buffers on the L2 cache. Each buffer will contain about 10 pixel lines from the current frame (due to memory limitations).
Another full frame buffer will be allocated on the external DDR.
When a line interrupt will be received from the VPIF, I'll direct the VPIF to the second lines buffer and will sum the new lines from the lines buffer to the full frame buffer.
The divide operation will be done only after all frames were captured.
My pixel clock is 50Mhz and I have 1280 pixels per line. The frame buffer will hold 16-bits per pixel to allow summing up to 15 frames without overflow.
I would like to know if this is the correct memory configuration for that task, how should I configure the catch before summing the pixels to the frame buffer and how the sum operation should be done to achieve best performance.
Thanks!