This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
谢谢解答。
请问“resizer需要连续物理空间”, 这是绝对的还是某一层软件的限制?是DMAI还是PSP?
如果通过PSP的VPFE driver直接对Resizer或者IPIPE的寄存器Vertical Start Position (SRC_VPS), Vertical Processing Size (SRC_VSZ), Horizontal Start Position (SRC_HPS)和Horizontal Processing Size (SRC_HSZ)进行设置, 能否实现对不连续空间的resizing呢?
以PSP的Do_resize为例,调用ioctl(resizer_fd, RSZ_RESIZE, &convert), RSZB的输出首地址是convert.out_buff2..offset。
如果是EVM的Demos如Encdoe,需要先enable RSZB并设置相关参数, 重新编译DMAI;那么在CapBuf中,RSZB的输出紧跟在RSZA输出之后,偏移Width*Height*BPP处开始。
谢谢 Jing Lee 的回答
以PSP的Do_resize为例,调用ioctl(resizer_fd, RSZ_RESIZE, &convert)中,是不是rsz A 和rsz B 全都使用了?
参考以下代码:
if (second_output) {
rsz_ss_config.output2.enable = 1;
rsz_ss_config.output2.width = 640;
rsz_ss_config.output2.height = 480;
rsz_ss_config.output2.pix_fmt = IPIPE_YUV420SP;
。。。
ioctl(resizer_fd, RSZ_S_CONFIG, &rsz_chan_config)
我觉得硬件应该可以实现的。请尝试下面的方法,任选一种:
1. Vertical Start Position of the Input (RZA_I_VPS,RZB_I_VPS) and Horizontal Start Position of the Input (RZA_I_HPS,RZB_I_HPS)
2. Vertical Start Position (SRC_VPS)和Horizontal Start Position (SRC_HPS)