Skip to content

Commit

Permalink
Added some debug output for functional testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jackiryan committed Nov 6, 2024
1 parent 37e4be7 commit 9209386
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mrf_apps/mrf_insert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,21 +385,25 @@ bool state::patch()
// Convert level limits to source levels
start_level--;

// Loop through each source level
for (int sl = 0; sl < overview_count; sl++)
{
if (sl >= start_level && sl < stop_level)
{
pTarg->PatchOverview(BlockX, BlockY, Width, Height,
sl, false, Resampling);
GDALFlushCache(hDataset);

if (verbose != 0)
{
cerr << "Overview Level: " << sl << endl;
cerr << "WidthOut = " << WidthOut << " HeightOut = " << HeightOut << endl;
}
}

// Update BlockX and BlockY for the next level (round down)
int BlockXOut = BlockX / 2;
int BlockYOut = BlockY / 2;

// Adjust Width and Height before division
Width += (BlockX & 1); // Increment width if BlockX was rounded down
Height += (BlockY & 1); // Increment height if BlockY was rounded down

Expand Down

0 comments on commit 9209386

Please sign in to comment.