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

使用imfill 填充颜色,有时候成功,有时候不成功 #72

Open
HouLingLXH opened this issue Mar 29, 2024 · 1 comment
Open

Comments

@HouLingLXH
Copy link

我使用多线程(或者单线程),调用 imfill 填充颜色, 对连续的多帧图片(同一个视频流)执行,发现有些能成功加上,有些不能,为什么?

代码:
IM_STATUS STATUS = imresize(src, dst); // resize都能成功
img->resize_buf = resize_buf;

    im_rect rects[2];
    rects[0].x= 0;
    rects[0].y = 0;
    rects[0].width = MODEL_SIZE;
    rects[0].height = 50;

    // rects[1].x = 0;
    // rects[1].y = MODEL_SIZE - 50;
    // rects[1].width = MODEL_SIZE;
    // rects[1].height = 50;


    STATUS = imfill(dst,rects[0],0x000000ff);

控制台:

31348 im2d_rga_impl rga_dump_channel_info(1452): src_channel:
rect[x,y,w,h] = [0, 0, 0, 0]
image[w,h,ws,hs,f] = [0, 0, 0, 0, rgba8888]
buffer[handle,fd,va,pa] = [0, 0, 0, 0]
color_space = 0x0, global_alpha = 0x0, rd_mode = 0x0

31348 im2d_rga_impl rga_dump_channel_info(1452): dst_channel:
rect[x,y,w,h] = [0, 0, 640, 50]
image[w,h,ws,hs,f] = [640, 50, 640, 640, rgb888]
buffer[handle,fd,va,pa] = [0, 0, 7f8c14a290, 0]
color_space = 0x0, global_alpha = 0xff, rd_mode = 0x1

31348 im2d_rga_impl rga_dump_opt(1502): opt version[0x0]:

31348 im2d_rga_impl rga_dump_opt(1503): set_core[0x0], priority[0]

31348 im2d_rga_impl rga_dump_opt(1506): color[0xff]
31348 im2d_rga_impl rga_dump_opt(1515):

31348 im2d_rga_impl rga_task_submit(2109): acquir_fence[-1], release_fence_ptr[0x0], usage[0x280000]

dmesg:

[ 6229.315527] rga: request[99533] submit failed!
[ 6229.533562] rga_mm: RGA_MMU unsupported memory larger than 4G!
[ 6229.533620] rga_mm: scheduler core[4] unsupported mm_flag[0x8]!
[ 6229.533639] rga_mm: rga_mm_map_buffer map virtual address error!
[ 6229.533645] rga_mm: job buffer map failed!
[ 6229.533651] rga_mm: dst channel map job buffer failed!
[ 6229.533654] rga_mm: failed to map buffer
[ 6229.533662] rga_job: rga_job_commit: failed to map job info
[ 6229.533677] rga_job: request[99535] task[0] job_commit failed.
[ 6229.533684] rga_job: rga request[99535] commit failed!
[ 6229.533690] rga: request[99535] submit failed!
[ 6229.750305] rga_mm: RGA_MMU unsupported memory larger than 4G!
[ 6229.750342] rga_mm: scheduler core[4] unsupported mm_flag[0x8]!
[ 6229.750361] rga_mm: rga_mm_map_buffer map virtual address error!
[ 6229.750367] rga_mm: job buffer map failed!
[ 6229.750372] rga_mm: dst channel map job buffer failed!
[ 6229.750375] rga_mm: failed to map buffer
[ 6229.750383] rga_job: rga_job_commit: failed to map job info
[ 6229.750398] rga_job: request[99537] task[0] job_commit failed.
[ 6229.750406] rga_job: rga request[99537] commit failed!
[ 6229.750411] rga: request[99537] submit failed!

@Cerf-Yu
Copy link
Collaborator

Cerf-Yu commented Jul 5, 2024

该报错在FAQ中有提到,可以先看一下。

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