38.6.9.3 Vertical Scaler
The YMEMSIZE field of the LCDC_HEOCFG4 register indicates the vertical size minus one of the image in the system memory. The YSIZE field of the LCDC_HEOCFG3 register contains the vertical size minus one of the window. The SCALEN bit of the LCDC_HEOCFG13 register is set to one. The scaling factor is programmed in the YFACTOR field of the LCDC_HEOCFG13 register.
YFACTOR1st=floor(8×256×YMEMSIZE−256×YPHIDEFYSIZE)
YFACTOR1st=YFACTOR1st+1
YMEMSIZEmax=floor(YFACTOR1st×YSIZE+256×YPHIDEF2048)
{YFACTOR=YFACTOR1st−1when(YMEMSIZEmax>YMEMSIZE)YFACTOR=YFACTOR1stotherwise