int interpolation_type = session ? session->interpolation_type : NEAREST_NEIGHBOR;
int step = config.direction == OverlayConfig::BOTTOM_FIRST ? -1 : 1;
int interpolation_type = session ? session->interpolation_type : NEAREST_NEIGHBOR;
int step = config.direction == OverlayConfig::BOTTOM_FIRST ? -1 : 1;