Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rga缩放产生像素偏移 #71

Open
JohnLoveMm opened this issue Mar 27, 2024 · 2 comments
Open

rga缩放产生像素偏移 #71

JohnLoveMm opened this issue Mar 27, 2024 · 2 comments

Comments

@JohnLoveMm
Copy link

利用rga将图片执行以下过程:A(1920,1080)----->B(256,144)------>C(1920,1080),此过程中的wideStride均做了16位对齐;发现相对于A来说,C整体向右下方偏移

@fulw
Copy link

fulw commented Nov 12, 2024

在RK3588上,需要设置为使用RGA2_CORE0进行缩放:
IM_STATUS ret = imconfig(IM_CONFIG_SCHEDULER_CORE, IM_SCHEDULER_RGA2_CORE0);
其他两个核(RGA3_CORE0和RGA3_CORE1)都会产生像素偏移。

@fulw
Copy link

fulw commented Nov 13, 2024

补充一下:其实还是会偏移,只是在RGA2_CORE0核上偏移幅度变小了,但使用最近邻插值(INTER_NEAREST)进行缩放依然有较大偏移。
环境:
RGA_api version: v1.10.0_[2]
RGA version: RGA_2_Enhance RGA_3
RGA multicore Device Driver: v1.2.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants