 复制width = rect->right - rect->bottom; height = rect->top - rect->left; allocated_address = __wrap_malloc(width*height*cinfo->output_components);// output_scanline; if ( (unsigned int)output_scanline >= cinfo->output_height ) break; //reads one line from the file into the cinfo buffer jpeg_read_scanlines(cinfo,远程 line_buffer, 1); if ( output_scanline >= Rect->left && output_scanline < Rect->top ) { memcpy(allocated_address + bytes_copied , line_buffer, width*output_component);// <--Oops bytes_copied += width * output_component; } } 1.2.3.4.5.6.7.8.9.10.11.12.13. |