Blame gegl/buffer/gegl-tile.h

Packit Service 2781ba
/* This file is part of GEGL.
Packit Service 2781ba
 *
Packit Service 2781ba
 * This library is free software; you can redistribute it and/or
Packit Service 2781ba
 * modify it under the terms of the GNU Lesser General Public
Packit Service 2781ba
 * License as published by the Free Software Foundation; either
Packit Service 2781ba
 * version 3 of the License, or (at your option) any later version.
Packit Service 2781ba
 *
Packit Service 2781ba
 * This library is distributed in the hope that it will be useful,
Packit Service 2781ba
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 2781ba
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 2781ba
 * Lesser General Public License for more details.
Packit Service 2781ba
 *
Packit Service 2781ba
 * You should have received a copy of the GNU Lesser General Public
Packit Service 2781ba
 * License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
Packit Service 2781ba
 *
Packit Service 2781ba
 * Copyright 2006-2009 Øyvind Kolås <pippin@gimp.org>
Packit Service 2781ba
 */
Packit Service 2781ba
Packit Service 2781ba
#ifndef __GEGL_TILE_H__
Packit Service 2781ba
#define __GEGL_TILE_H__
Packit Service 2781ba
Packit Service 2781ba
#include <glib-object.h>
Packit Service 2781ba
#include "gegl-buffer-backend.h"
Packit Service 2781ba
Packit Service 2781ba
GeglTile   * gegl_tile_new            (gint             size);
Packit Service 2781ba
GeglTile   * gegl_tile_new_bare       (void);
Packit Service 2781ba
GeglTile   * gegl_tile_ref            (GeglTile         *tile);
Packit Service 2781ba
void         gegl_tile_unref          (GeglTile         *tile);
Packit Service 2781ba
Packit Service 2781ba
/* lock a tile for writing, this would allow writing to buffers
Packit Service 2781ba
 * later gotten with get_data()
Packit Service 2781ba
 */
Packit Service 2781ba
void         gegl_tile_lock           (GeglTile         *tile);
Packit Service 2781ba
Packit Service 2781ba
/* unlock the tile notifying the tile that we're done manipulating
Packit Service 2781ba
 * the data.
Packit Service 2781ba
 */
Packit Service 2781ba
void         gegl_tile_unlock         (GeglTile         *tile);
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
void         gegl_tile_mark_as_stored (GeglTile         *tile);
Packit Service 2781ba
gboolean     gegl_tile_is_stored      (GeglTile         *tile);
Packit Service 2781ba
gboolean     gegl_tile_store          (GeglTile         *tile);
Packit Service 2781ba
void         gegl_tile_void           (GeglTile         *tile);
Packit Service 2781ba
GeglTile    *gegl_tile_dup            (GeglTile         *tile);
Packit Service 2781ba
Packit Service 2781ba
void         gegl_tile_set_rev        (GeglTile         *tile,
Packit Service 2781ba
                                       guint             rev);
Packit Service 2781ba
guint        gegl_tile_get_rev        (GeglTile         *tile);
Packit Service 2781ba
Packit Service 2781ba
guchar      *gegl_tile_get_data       (GeglTile         *tile);
Packit Service 2781ba
void         gegl_tile_set_data       (GeglTile         *tile,
Packit Service 2781ba
                                       gpointer          pixel_data,
Packit Service 2781ba
                                       gint              pixel_data_size);
Packit Service 2781ba
void         gegl_tile_set_data_full  (GeglTile         *tile,
Packit Service 2781ba
                                       gpointer          pixel_data,
Packit Service 2781ba
                                       gint              pixel_data_size,
Packit Service 2781ba
                                       GDestroyNotify    destroy_notify,
Packit Service 2781ba
                                       gpointer          destroy_notify_data);
Packit Service 2781ba
Packit Service 2781ba
void         gegl_tile_set_unlock_notify
Packit Service 2781ba
                                      (GeglTile         *tile,
Packit Service 2781ba
                                       GeglTileCallback  unlock_notify,
Packit Service 2781ba
                                       gpointer          unlock_notify_data);
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
#endif