mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
plug-ins: border-average migrated to new iterator api
This commit is contained in:
parent
22b4b647bd
commit
754a3c5b18
1 changed files with 3 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define GEGL_ITERATOR2_API
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <libgimp/gimp.h>
|
#include <libgimp/gimp.h>
|
||||||
|
@ -271,14 +272,14 @@ borderaverage (GeglBuffer *buffer,
|
||||||
GeglBufferIterator *gi;
|
GeglBufferIterator *gi;
|
||||||
|
|
||||||
gi = gegl_buffer_iterator_new (buffer, &border[i], 0, babl_format ("R'G'B' u8"),
|
gi = gegl_buffer_iterator_new (buffer, &border[i], 0, babl_format ("R'G'B' u8"),
|
||||||
GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE);
|
GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE, 1);
|
||||||
|
|
||||||
while (gegl_buffer_iterator_next (gi))
|
while (gegl_buffer_iterator_next (gi))
|
||||||
{
|
{
|
||||||
guint k;
|
guint k;
|
||||||
guchar *data;
|
guchar *data;
|
||||||
|
|
||||||
data = (guchar*) gi->data[0];
|
data = (guchar*) gi->items[0].data;
|
||||||
|
|
||||||
for (k = 0; k < gi->length; k++)
|
for (k = 0; k < gi->length; k++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue