写入的数值是regw(((params->win.width * 2) + 31) & 0xffffffe0, HSIZE_OFF);
数据手册称为:
Address offset for each line. Sets offset for each output line in SDRAM. Either 16 or 32 pixels,
depending on setting of the PACK8 bit in SYN_MODE. This bit field is latched by VD. The 5 LSBs
are ignored; the offset is on a 32-byte boundary. For optimal performance in the system, the
address offset should be on a 256-byte boundary.
------解决方案--------------------
/* configure the horizontal line offset */
- /* this is done by rounding up width to a multiple of 16 pixels */
- /* and multiply by two to account for y:cb:cr 4:2:2 data */
- regw(((params->win.width * 2) + 31) & 0xffffffe0, HSIZE_OFF);