Skip to content

Commit

Permalink
qgsimagewarper.cpp: multithreaded image warp (#41110)
Browse files Browse the repository at this point in the history
Use GDALWarpOperation::ChunkAndWarpMulti() to use multithread I/O and computation. Will not bring major improvements but can help a bit
  • Loading branch information
justinbb committed Feb 4, 2021
1 parent 043b8a7 commit d293765
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/georeferencer/qgsimagewarper.cpp
Expand Up @@ -244,8 +244,7 @@ int QgsImageWarper::warpFile( const QString &input,
progressDialog->raise();
progressDialog->activateWindow();

eErr = oOperation.ChunkAndWarpImage( 0, 0, destPixels, destLines );
// eErr = oOperation.ChunkAndWarpMulti(0, 0, destPixels, destLines);
eErr = oOperation.ChunkAndWarpMulti( 0, 0, destPixels, destLines );

destroyGeoToPixelTransform( psWarpOptions->pTransformerArg );
delete progressDialog;
Expand Down

0 comments on commit d293765

Please sign in to comment.