"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gegl/buffer/gegl-buffer-load.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-load.c  (gegl-0.4.18.tar.xz):gegl-buffer-load.c  (gegl-0.4.20.tar.xz)
skipping to change at line 37 skipping to change at line 37
#include <unistd.h> #include <unistd.h>
#include "gegl-buffer.h" #include "gegl-buffer.h"
#include "gegl-buffer-private.h" #include "gegl-buffer-private.h"
#include "gegl-buffer-index.h" #include "gegl-buffer-index.h"
#include "gegl-debug.h" #include "gegl-debug.h"
#include <glib/gprintf.h> #include <glib/gprintf.h>
#include <glib/gstdio.h> #include <glib/gstdio.h>
#ifdef G_OS_WIN32
#define BINARY_FLAG O_BINARY
#else
#define BINARY_FLAG 0
#endif
typedef struct typedef struct
{ {
GeglBufferHeader header; GeglBufferHeader header;
GList *tiles; GList *tiles;
gchar *path; gchar *path;
int i; int i;
gint tile_size; gint tile_size;
const Babl *format; const Babl *format;
goffset offset; goffset offset;
goffset next_block; goffset next_block;
skipping to change at line 250 skipping to change at line 256
} }
GeglBuffer * GeglBuffer *
gegl_buffer_load (const gchar *path) gegl_buffer_load (const gchar *path)
{ {
GeglBuffer *ret; GeglBuffer *ret;
LoadInfo *info = g_slice_new0 (LoadInfo); LoadInfo *info = g_slice_new0 (LoadInfo);
info->path = g_strdup (path); info->path = g_strdup (path);
info->i = g_open (info->path, O_RDONLY, 0770); info->i = g_open (info->path, O_RDONLY|BINARY_FLAG, 0770);
GEGL_NOTE (GEGL_DEBUG_BUFFER_LOAD, "starting to load buffer %s", path); GEGL_NOTE (GEGL_DEBUG_BUFFER_LOAD, "starting to load buffer %s", path);
if (info->i == -1) if (info->i == -1)
{ {
GEGL_NOTE (GEGL_DEBUG_BUFFER_LOAD, "failed top open %s for reading", path) ; GEGL_NOTE (GEGL_DEBUG_BUFFER_LOAD, "failed top open %s for reading", path) ;
return NULL; return NULL;
} }
{ {
GeglBufferItem *header = gegl_buffer_read_header (info->i, &info->offset); GeglBufferItem *header = gegl_buffer_read_header (info->i, &info->offset);
g_assert (header); g_assert (header);
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

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