Add logging lines.

master
Fabien Freling 2014-08-06 23:11:56 +02:00
parent 7ac7522908
commit a419225ea3
1 changed files with 16 additions and 0 deletions

View File

@ -549,6 +549,15 @@ Image* rotate(Image const& src, double angle)
Point const qdx(ceil(src_delta_x.x * q_pos / src.width), ceil(src_delta_x.y * q_pos / src.width));
Point const qdy(ceil(src_delta_y.x * q_pos / src.height), ceil(src_delta_y.y * q_pos / src.height));
if (false)
{
LOG << "src delta x: " << src_delta_x << endl;
LOG << "src delta y: " << src_delta_y << endl;
LOG << "qdx: " << qdx << endl;
LOG << "qdy: " << qdy << endl;
LOG << "q pos: " << q_pos << endl;
}
DPoint const rot_origin_in_src_grid = get_mapped_point(*rotated, Point(0, 0), -rotation);
DPoint const rot_origin_in_src = convert_img_coord_precision(src, rot_origin_in_src_grid);
@ -583,6 +592,13 @@ Image* rotate(Image const& src, double angle)
int const right_border = 0;
int const core_pixels = width - left_padding - left_border - right_border - right_padding;
if (false)
{
LOG << "left padding = " << left_padding << endl;
LOG << "right padding = " << right_padding << endl;
LOG << "core pixels = " << core_pixels << endl;
}
// Left padding
for (int x = 0; x < left_padding; ++x, ++buffer_index)
{