We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if (global_alpha <= 0xf8) { imsetOpacity_c(&src_buf, global_alpha); imsetOpacity_c(&dst_buf, 255 - global_alpha); } ret = improcess(src_buf, dst_buf, null_buf, src_rect, dst_rect, null_rect, IM_ALPHA_BLEND_SRC_OVER | IM_ALPHA_BLEND_PRE_MUL); if (ret != IM_STATUS_SUCCESS) { log_error("g2d_blend_image fail:%s.\n", imStrError((IM_STATUS)ret)); goto FAIL; }
参考demo在RK3568上利用RGA的接口进行图像处理的硬件加速,imsetOpacity_c是对imsetOpacity接口的c封装,实际测试发现图片混合结果像是简单的拷贝(设置的opacity没有生效,没有半透明效果),直接在RK3568上使用demo( rga_alpha_global_alpha_demo.cpp )也是类似的结果,请问是该芯片不支持这种处理吗?还是我对这个函数的功能理解有误?
还有另一个问题想请教一下,在将图像内存从虚拟内存替换成drm申请的内存后(参考了 rga_allocator_drm_demo.cpp ),发现使用软件算法处理图片的效率变慢了,然后怀疑是申请内存类型的问题(在使用drm申请内存时添加了RGA_UTILS_ROCKCHIP_BO_CACHABLE,结果软件处理速度是变快了,但是出现了横纹。),这个问题有没有其他处理办法呢?
struct drm_mode_create_dumb creq; struct drm_mode_destroy_dumb dreq; struct drm_mode_map_dumb mreq; struct drm_prime_handle fd_args; int ret; uint8_t* map = NULL; /* create dumb buffer */ memset(&creq, 0, sizeof(creq)); creq.width = w; creq.height = h; creq.flags = RGA_UTILS_ROCKCHIP_BO_CACHABLE; creq.bpp = bitmap_get_bpp_of_format(format) * 8; ret = drmIoctl(s_drm_mem_info.fd, DRM_IOCTL_MODE_CREATE_DUMB, &creq);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
参考demo在RK3568上利用RGA的接口进行图像处理的硬件加速,imsetOpacity_c是对imsetOpacity接口的c封装,实际测试发现图片混合结果像是简单的拷贝(设置的opacity没有生效,没有半透明效果),直接在RK3568上使用demo( rga_alpha_global_alpha_demo.cpp )也是类似的结果,请问是该芯片不支持这种处理吗?还是我对这个函数的功能理解有误?
还有另一个问题想请教一下,在将图像内存从虚拟内存替换成drm申请的内存后(参考了 rga_allocator_drm_demo.cpp ),发现使用软件算法处理图片的效率变慢了,然后怀疑是申请内存类型的问题(在使用drm申请内存时添加了RGA_UTILS_ROCKCHIP_BO_CACHABLE,结果软件处理速度是变快了,但是出现了横纹。),这个问题有没有其他处理办法呢?
The text was updated successfully, but these errors were encountered: