"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gegl/buffer/gegl-buffer-access.c" between
gegl-0.4.18.tar.xz and gegl-0.4.20.tar.xz

About: GEGL (Generic Graphics Library) is a graph based image processing framework (mainly developed for GIMP).

gegl-buffer-access.c  (gegl-0.4.18.tar.xz):gegl-buffer-access.c  (gegl-0.4.20.tar.xz)
skipping to change at line 425 skipping to change at line 425
gint tiledx = buffer_x + bufx; gint tiledx = buffer_x + bufx;
gint offsetx = gegl_tile_offset (tiledx, tile_width); gint offsetx = gegl_tile_offset (tiledx, tile_width);
gint y = bufy; gint y = bufy;
gint index_x; gint index_x;
gint index_y; gint index_y;
gint lskip, rskip, pixels, row; gint lskip, rskip, pixels, row;
guchar *bp, *tile_base, *tp; guchar *bp, *tile_base, *tp;
GeglTile *tile; GeglTile *tile;
gboolean whole_tile; gboolean whole_tile;
bp = buf + bufy * buf_stride + bufx * bpx_size; bp = buf + (gsize) bufy * buf_stride + bufx * bpx_size;
if (width + offsetx - bufx < tile_width) if (width + offsetx - bufx < tile_width)
pixels = (width + offsetx - bufx) - offsetx; pixels = (width + offsetx - bufx) - offsetx;
else else
pixels = tile_width - offsetx; pixels = tile_width - offsetx;
index_x = gegl_tile_indice (tiledx, tile_width); index_x = gegl_tile_indice (tiledx, tile_width);
index_y = gegl_tile_indice (tiledy, tile_height); index_y = gegl_tile_indice (tiledy, tile_height);
lskip = (buffer_abyss_x) - (buffer_x + bufx); lskip = (buffer_abyss_x) - (buffer_x + bufx);
skipping to change at line 982 skipping to change at line 982
gint bufx = 0; gint bufx = 0;
while (bufx < width) while (bufx < width)
{ {
gint tiledx = buffer_x + bufx; gint tiledx = buffer_x + bufx;
gint offsetx = gegl_tile_offset (tiledx, tile_width); gint offsetx = gegl_tile_offset (tiledx, tile_width);
guchar *bp, *tile_base, *tp; guchar *bp, *tile_base, *tp;
gint pixels, row, y; gint pixels, row, y;
GeglTile *tile; GeglTile *tile;
bp = buf + bufy * buf_stride + bufx * bpx_size; bp = buf + (gsize) bufy * buf_stride + bufx * bpx_size;
if (width + offsetx - bufx < tile_width) if (width + offsetx - bufx < tile_width)
pixels = width - bufx; pixels = width - bufx;
else else
pixels = tile_width - offsetx; pixels = tile_width - offsetx;
g_rec_mutex_lock (&buffer->tile_storage->mutex); g_rec_mutex_lock (&buffer->tile_storage->mutex);
tile = gegl_tile_source_get_tile ((GeglTileSource *) (buffer), tile = gegl_tile_source_get_tile ((GeglTileSource *) (buffer),
gegl_tile_indice (tiledx, tile_width), gegl_tile_indice (tiledx, tile_width),
gegl_tile_indice (tiledy, tile_height) , gegl_tile_indice (tiledy, tile_height) ,
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)