|  | 
 
| 
 使用RGA进行缩放的时候出现一下报错是什么意思?是尺寸不对应RGA的条件吗?
 
 
 //检查
        //printf("检查开始\n\r");
        ret = imcheck(src, dst, src_rect, dst_rect);
        //printf("imcheck_ret:%d\n\r",ret);
        if (IM_STATUS_NOERROR != ret) {
                printf("Rga resize: %d, check error! %s\n", __LINE__, imStrError((IM_STATUS)ret));
                return ;
        }
        //图像缩放
        STATUS = imresize(src, dst,input_params.dst_width/src.width,input_params.dst_height/src.height);
        //STATUS = imresize(src, dst);
        if (STATUS <= 0) {
                printf("Rga resize: resize error for status: %s\n", imStrError(STATUS));
                return ;
        }
报错:
 
 Rga resize: resize error for status: Fatal error: Failed to call RockChipRga interface, query log to find the cause of failure.
resize ===> width: 1920, height: 1080, h_stride: 1920, v_stride: 1088 
 RgaBlit(1387) RGA_BLIT fail: Device or resource busy
 RgaBlit(1388) RGA_BLIT fail: Device or resource busy
fd-vir-phy-hnd-format[0, 0x7f7f010000, (nil), (nil), 0]
rect[0, 0, 1920, 1088, 1920, 1088, 3584, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
fd-vir-phy-hnd-format[0, (nil), 0x7f8dbba010, (nil), 0]
rect[0, 0, 1280, 720, 1280, 720, 3584, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 0]
This output the user patamaters when rga call blit fail
srect[x,y,w,h] = [0, 0, 0, 0] src[w,h,ws,hs] = [1920, 1088, 1920, 1088]
drect[x,y,w,h] = [0, 0, 0, 0] dst[w,h,ws,hs] = [1280, 720, 1280, 720]
usage[0x80000]
 
 | 
 |