Skip to content

Commit

Permalink
GDALGeoLocDatasetAccessors: use smaller, but more, cached tiles
Browse files Browse the repository at this point in the history
Fixes #10809
  • Loading branch information
rouault committed Sep 16, 2024
1 parent a93a76c commit 642f7cc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions alg/gdalgeoloc_dataset_accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ class GDALGeoLocDatasetAccessors
bool LoadGeoloc(bool bIsRegularGrid);

public:
static constexpr int TILE_SIZE = 1024;

GDALCachedPixelAccessor<double, TILE_SIZE> geolocXAccessor;
GDALCachedPixelAccessor<double, TILE_SIZE> geolocYAccessor;
GDALCachedPixelAccessor<float, TILE_SIZE> backMapXAccessor;
GDALCachedPixelAccessor<float, TILE_SIZE> backMapYAccessor;
GDALCachedPixelAccessor<float, TILE_SIZE> backMapWeightAccessor;
static constexpr int TILE_SIZE = 256;
static constexpr int TILE_COUNT = 64;

GDALCachedPixelAccessor<double, TILE_SIZE, TILE_COUNT> geolocXAccessor;
GDALCachedPixelAccessor<double, TILE_SIZE, TILE_COUNT> geolocYAccessor;
GDALCachedPixelAccessor<float, TILE_SIZE, TILE_COUNT> backMapXAccessor;
GDALCachedPixelAccessor<float, TILE_SIZE, TILE_COUNT> backMapYAccessor;
GDALCachedPixelAccessor<float, TILE_SIZE, TILE_COUNT> backMapWeightAccessor;

explicit GDALGeoLocDatasetAccessors(GDALGeoLocTransformInfo *psTransform)
: m_psTransform(psTransform), geolocXAccessor(nullptr),
Expand Down

0 comments on commit 642f7cc

Please sign in to comment.