Commit Graph

19 Commits (master)

Author SHA1 Message Date
Fabien Freling b4032a3eee Do one memset for left and right padding. 2014-08-08 19:29:46 +02:00
Fabien Freling e2a17282aa Remove boundary check in rotate_pixel().
This check makes the last line invalid.
2014-08-06 22:33:41 +02:00
Fabien Freling 43208cea90 Update TODO. 2014-08-06 21:44:00 +02:00
Fabien Freling a992cba5ed Implement RGBX for tiled images.
Interpolation is now done with SIMD with -DSIMD for tiled images as
well.
2014-07-16 20:44:32 +02:00
Fabien Freling bcf16680ae Remove RGBX structure.
The pixels are still packed as RGBX in memory but
no structure is created, it’s just a contiguous buffer.

Interpolation is now done with SIMD on integer values.

- Add SIMD define.
2014-07-16 02:08:32 +02:00
Fabien Freling cce4d45ba6 Implement pixels as RGBX structure.
- Add ‘make debug’ target
- Add links in README
2014-07-12 22:42:48 +02:00
Fabien Freling 7c6cfd9046 Create small overlap in tiles.
Tiles overlap on the bottom line and the right column.
Having an overlap allows us to get neighbor points for each point in a
tile, regardless of its position.
2014-07-10 22:01:55 +02:00
Fabien Freling eb5bae42c3 Allocate tiles as a unified buffer. 2014-07-09 07:50:09 +02:00
Fabien Freling edb9ef7dd8 Remove temp tile. 2014-07-08 08:48:17 +02:00
Fabien Freling 9a9db2d4fd Interpolate on quantized values for tiled images. 2014-07-08 08:04:43 +02:00
Fabien Freling e3e0d3c20a Fix first rotated tile on each row.
The first tile on each row seemed to be missing values.
This was due to the ‘continue’ statement that would prevent
src_rotated_point to be incremented properly.
2014-07-04 00:34:06 +02:00
Fabien Freling 80975f6138 Update TODO. 2014-07-04 00:23:21 +02:00
Fabien Freling 007ad2284e Add basic tiled image type. 2014-07-01 21:52:40 +02:00
Fabien Freling 258ddce814 Use a unique buffer for pixels (scanline).
- Add rotate_pixel().
- Remove APoint, use Point instead.
2014-06-28 13:52:24 +02:00
Fabien Freling 6a94c79ac2 FIll new interpolated pixels.
- Take input image in argument.
- Allow set_pixel() out of bounds, noop.
2014-06-26 23:45:02 +02:00
Fabien Freling c0ed5f1be0 Add check_90().
- Fix border.
2014-06-26 21:28:34 +02:00
Fabien Freling cc7ec6fef2 Add basic support for full (broken) rotation.
- New way to compute ratio.
- Add {set,get}_pixel()
2014-06-24 00:59:04 +02:00
Fabien Freling 8a17f7b8d8 Draw rotated outlines.
There is a bug for rotation = pi / 2
2014-06-19 00:05:49 +02:00
Fabien Freling 4bf69e8204 Initial commit 2014-06-18 08:47:10 +02:00