紧急!
我配置成功了VPFE的功能,输出是720*576的YUV图像。请问现在配置resizer将CCDC输出的图像缩小到180*144的YUV该怎样配置?或者说哪里有相关参考例程,下边是我的配置,但一直没效果,输出的都是0x80008000,希望能够指正。
采用RESIZE读SDRAM方式:
VPFE_RESZ_PID = 0x00
|(0x10<<16)
|(0xFE<<8);
VPFE_RESZ_RSZ_CNT = 0x00
|(0<<29) //Chrominance horizontal algorithm 0:Same as luminance processing 1:Bilinear interpolation
|(1<<28) //INPSRC input source 0:Preview engine,1:SDRAM
|(0<<27) //YUV422 0:YUV422 color interleaved, 1:Color separate (8-bit data)
|(1<<26) //YCPOS 0:YC, 1:CY UYVY
|(1018<<10)//vertical resizing value
|(1019); //horizontal resizing value
VPFE_RESZ_OUT_SIZE = 0x0
|(144 << 16)
|(180 << 0);
VPFE_RESZ_IN_START = 0x0
|(0 << 16)
|(0 << 0);
VPFE_RESZ_IN_SIZE = 0x0
|(576 << 16) // ih=576
|(720 << 0); // iw=720
VPFE_RESZ_SDR_INADD = 0x81000000; // ccdc should be 0
VPFE_RESZ_SDR_INOFF = 0; // ccdc should be 0
VPFE_RESZ_SDR_OUTADD = 0x83000000;
VPFE_RESZ_SDR_OUTOFF = 0;
VPFE_RESZ_PCR = 0x00
|(1<<0); //enable resizer module
采用RESIZE直接读CCDC方式:
VPFE_RESZ_PID = 0x0010fe00;
VPFE_RESZ_RSZ_CNT = 0x00
|(0<<29) //Chrominance horizontal algorithm 0:Same as luminance processing 1:Bilinear interpolation
|(0<<28) //INPSRC input source 0:Preview engine,1:SDRAM
|(0<<27) //YUV422 0:YUV422 color interleaved, 1:Color separate (8-bit data)
|(1<<26) //YCPOS 0:YC, 1:CY UYVY
|(0<<23)//Vertical starting phase (0-7)
|(0<<20) //Horizontal starting phase (0-7)
|(1018<<10)//vertical resizing value
|(1019); //horizontal resizing value
VPFE_RESZ_OUT_SIZE = 0x0
|(144 << 16) // output height
|(180 << 0);
VPFE_RESZ_IN_START = 0x00000000;
VPFE_RESZ_IN_SIZE = 0x0
|(576 << 16) // ih=576
|(720 << 0); // iw=720
VPFE_RESZ_SDR_INADD = 0x00000000;
VPFE_RESZ_SDR_INOFF = 0x00000000;
VPFE_RESZ_SDR_OUTADD = 0x83000000;
VPFE_RESZ_SDR_OUTOFF = 360;
VPFE_RESZ_PCR = 0x00
|(1<<0); //enable resizer module