"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gegl/buffer/gegl-buffer-save.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-save.c  (gegl-0.4.18.tar.xz):gegl-buffer-save.c  (gegl-0.4.20.tar.xz)
skipping to change at line 40 skipping to change at line 40
#include <glib/gstdio.h> #include <glib/gstdio.h>
#include "gegl-buffer.h" #include "gegl-buffer.h"
#include "gegl-buffer-types.h" #include "gegl-buffer-types.h"
#include "gegl-buffer-private.h" #include "gegl-buffer-private.h"
#include "gegl-debug.h" #include "gegl-debug.h"
#include "gegl-tile-storage.h" #include "gegl-tile-storage.h"
#include "gegl-tile.h" #include "gegl-tile.h"
#include "gegl-buffer-index.h" #include "gegl-buffer-index.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;
gint o; gint o;
gint tile_size; gint tile_size;
gint offset; gint offset;
gint entry_count; gint entry_count;
skipping to change at line 220 skipping to change at line 226
path, roi->x, roi->y, roi->width, roi->height); path, roi->x, roi->y, roi->width, roi->height);
/* a header should follow the same structure as a blockdef with /* a header should follow the same structure as a blockdef with
* respect to the flags and next offsets, thus this is a valid * respect to the flags and next offsets, thus this is a valid
* cast shortcut. * cast shortcut.
*/ */
info->path = g_strdup (path); info->path = g_strdup (path);
#ifndef G_OS_WIN32 #ifndef G_OS_WIN32
info->o = g_open (info->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRG RP|S_IWGRP|S_IROTH|S_IWOTH); info->o = g_open (info->path, O_RDWR|O_CREAT|O_TRUNC|BINARY_FLAG, S_IRUSR|S _IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
#else #else
info->o = g_open (info->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); info->o = g_open (info->path, O_RDWR|O_CREAT|O_TRUNC|BINARY_FLAG, S_IRUSR|S _IWUSR);
#endif #endif
if (info->o == -1) if (info->o == -1)
g_warning ("%s: Could not open '%s': %s", G_STRFUNC, info->path, g_strerror( errno)); g_warning ("%s: Could not open '%s': %s", G_STRFUNC, info->path, g_strerror( errno));
tile_width = buffer->tile_storage->tile_width; tile_width = buffer->tile_storage->tile_width;
tile_height = buffer->tile_storage->tile_height; tile_height = buffer->tile_storage->tile_height;
g_object_get (buffer, "px-size", &bpp, NULL); g_object_get (buffer, "px-size", &bpp, NULL);
info->header.x = roi->x; info->header.x = roi->x;
info->header.y = roi->y; info->header.y = roi->y;
 End of changes. 3 change blocks. 
2 lines changed or deleted 8 lines changed or added

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