首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 驱动开发 >

dm6446视频处理前端有个寄存器(HSIZE_OFF),请帮小弟我理解一上

2012-09-24 
dm6446视频处理前端有个寄存器(HSIZE_OFF),请帮我理解一下写入的数值是regw(((params-win.width * 2) + 3

dm6446视频处理前端有个寄存器(HSIZE_OFF),请帮我理解一下
写入的数值是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);

热点排行