AnsweredAssumed Answered

Problems with video resolution on Pal mode on BF537 - adv7183

Question asked by cristina on Feb 5, 2013
Latest reply on Feb 8, 2013 by cristina

Hi,

 

I'm trying to take video images live from a panasonic video camera which works on Pal format. The problem is that the images are doubled when they are put in the Blackfin memory and I want to put them corectly in DMA.I believe I have to modify the adi_adv7183.c file when before the image is put in memory (more exactly when I read each frame through PPI) , I think somewhere here. When I want to see the picture with Image viewer in Visual Dsp the only width and height in pixels are 864/625 on which the picture is of a good quality. 

 

 

if(u32Value == NTSC_FORMAT)

            {

                pADV7183->ADV7183Ppi.ppiF_Lines         = 525; // NTSC mode

#if defined (__ADSP_MOAB__)

                pADV7183->ADV7183Ppi.PpiSamplesPerLine  = 1716;

#endif

            }

            else

            {

                 pADV7183->ADV7183Ppi.ppiF_Lines         = 625; // PAL mode

#if defined (__ADSP_MOAB__)

                pADV7183->ADV7183Ppi.PpiSamplesPerLine  = 1728;

#endif

            }

 

#if defined (__ADSP_EDINBURGH__) || defined (__ADSP_BRAEMAR__) || defined (__ADSP_STIRLING__) || defined (__ADSP_TETON__)

            Result = adi_dev_Control(pADV7183->ADV7183Ppi.ppiHandle, ADI_PPI_CMD_SET_LINES_PER_FRAME_REG,(void *)pADV7183->ADV7183Ppi.ppiF_Lines);

#elif defined (__ADSP_MOAB__)

            Result = adi_dev_Control(pADV7183->ADV7183Ppi.ppiHandle, ADI_EPPI_CMD_SET_SAMPLES_PER_LINE,(void *)pADV7183->ADV7183Ppi.PpiSamplesPerLine);

 

I attached the project and an example of a distorted picture  . Pleaseeeee give me idea !

Attachments

Outcomes