Hi,
I'm working with my evaluation module for the DM6437. I'm not using any RTOS and writing everything in plain C and inlined assembler. I currently have a video camera that streams NTSC video into the evaluation module and I output to composite video which is then displayed on a monitor. I setup the video to "loopback" on video window 0. Video window 0 is, not surprisingly, 720 x 480. I use video window 1 for picture in picture video. I've setup video window 1 to be exactly half the size of video window 0 (360 x 240). I've then offset video window 1 to be in the upper right corner of the entire frame. So far so good. When I dump synthetic data to DDR2 (eg via some for loop that just fills the buffer) at the video buffer for video window 1 I indeed see what I expect to see and in the "background" (eg video window 0) I see my camera feed.
What I'd like to do now is utilize the resizer hardware to display the camera feed sized at .5x in video window 1. In other words I'll see the camera feed in the video window 0 and the exact same camera feed (scaled by .5x and delayed slightly) in video window 1. I've setup the resizer to use input data from ddr (exactly where the CCDC module dumps the data in ddr). I've written a function which writes all the resizer configuration registers. Finally I wrote a silly polling loop which looks something like this:
while(1){
if(VPFE_RESZ_PCR == 0) //poll the busy bit
VPFE_RESZ_PCR = 1; //enable the resizer
else
asm("NOP");
}
What I see in video window 1 is just junk. Eg some bizarre pattern of color bars which I suppose is simply whatever happens to reside at the address of the resizer output/video window 1 input. I've tried playing with the configuration registers, but cannot seem to get the resizer to output the video I'd like to see. Of perhaps meaningful significance: the pattern I see in video window 1 does not appear to change. It's the same pattern no matter what I attempt to do...
Before I post exactly what I've written to every configuration register etc, can somebody tell me if what I'm trying to do here is fundamentally flawed? Thanks for your time,
Dave