Skip to content

Commit

Permalink
Fixed merge errors with extract
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianparvino committed Dec 10, 2017
1 parent d78c9da commit b486954
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions imagemanip.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,6 @@ void scale_bilinear(struct imagebuffer *dest,
}
}
}

struct imagebuffer *extract(size_t column_offset,
size_t row_offset,
size_t width,
size_t height,
struct imagebuffer *x)
{
struct imagebuffer *extract_buffer = new_imagebuffer(width, height);

for (size_t i = 0; i < height*width; ++i)
{
extract_buffer->buffer[i] =
index(x, column_offset + i%width, row_offset + i/width);
}

return extract_buffer;
}

struct imagebuffer *extract(size_t column_offset,
size_t row_offset,
size_t width,
Expand Down

0 comments on commit b486954

Please sign in to comment.