This file is indexed.

/usr/share/doc/libgegl-doc/gegl.h.html is in libgegl-doc 0.2.0-7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML>
<HEAD>
<TITLE>Enscript Output</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#1F00FF" ALINK="#FF0000" VLINK="#9900DD">
<A NAME="top">
<A NAME="file1">
<H1>../gegl/gegl.h</H1>

<PRE>
<I><FONT COLOR="#B22222">/* This file is the public GEGL API
 *
 * GEGL is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * GEGL is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with GEGL; if not, see &lt;http://www.gnu.org/licenses/&gt;.
 *
 * 2000-2008 © Calvin Williamson, Øyvind Kolås.
 */</FONT></I>

#<B><FONT COLOR="#5F9EA0">ifndef</FONT></B> <FONT COLOR="#B8860B">__GEGL_H__</FONT>
#<B><FONT COLOR="#5F9EA0">define</FONT></B> <FONT COLOR="#B8860B">__GEGL_H__</FONT>

#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;glib-object.h&gt;</FONT></B>
#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;babl/babl.h&gt;</FONT></B>

#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;gegl-types.h&gt;</FONT></B>

#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;gegl-buffer.h&gt;</FONT></B>
#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;gegl-color.h&gt;</FONT></B>
#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;gegl-curve.h&gt;</FONT></B>
#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;gegl-path.h&gt;</FONT></B>
#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;gegl-matrix.h&gt;</FONT></B>
#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;gegl-version.h&gt;</FONT></B>


<I><FONT COLOR="#B22222">/***
 * The GEGL API:
 *
 * This document is both a tutorial and a reference for the C API of GEGL.
 * The concepts covered in this reference should also be applicable when
 * using other languages.
 *
 * The core API of GEGL isn't frozen yet and feedback regarding its use as
 * well as the clarity of this documentation is most welcome.
 */</FONT></I>

G_BEGIN_DECLS

<I><FONT COLOR="#B22222">/***
 * Introduction:
 *
 * Algorithms created with GEGL are expressed as graphs of nodes. The nodes
 * have associated image processing operations. A node has output and input
 * pads which can be connected. By connecting these nodes in chains a set of
 * image operation filters and combinators can be applied to the image data.
 *
 * To make GEGL process data you request a rectangular region of a node's
 * output pad to be rendered into a provided linear buffer of any (supported
 * by babl) pixel format. GEGL uses information provided by the nodes to
 * determine the smallest buffers needed at each stage of processing.
 */</FONT></I>

<I><FONT COLOR="#B22222">/***
 * Initialization:
 *
 * Before GEGL can be used the engine should be initialized by either calling
 * #gegl_init or through the use of #gegl_get_option_group. To shut down the
 * GEGL engine call #gegl_exit.
 *
 * ---Code sample:
 * #include &lt;gegl.h&gt;
 *
 * int main(int argc, char **argv)
 * {
 *   gegl_init (&amp;argc, &amp;argv);
 *       # other GEGL code
 *   gegl_exit ();
 * }
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_init:
 * @argc: a pointer to the number of command line arguments.
 * @argv: a pointer to the array of command line arguments.
 *
 * Call this function before using any other GEGL functions. It will
 * initialize everything needed to operate GEGL and parses some
 * standard command line options.  @argc and @argv are adjusted
 * accordingly so your own code will never see those standard
 * arguments. gegl_init() will call g_thread_init(), unless you, or
 * some other code already has initialized gthread.
 *
 * Note that there is an alternative way to initialize GEGL: if you
 * are calling g_option_context_parse() with the option group returned
 * by #gegl_get_option_group(), you don't have to call #gegl_init() but
 * you have to call g_thread_init() before any glib or glib dependant code
 * yourself.
 **/</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>           <B><FONT COLOR="#0000FF">gegl_init</FONT></B>                 (gint          *argc,
                                          gchar       ***argv);
<I><FONT COLOR="#B22222">/**
 * gegl_get_option_group:
 *
 * Returns a GOptionGroup for the commandline arguments recognized
 * by GEGL. You should add this group to your GOptionContext
 * with g_option_context_add_group() if you are using
 * g_option_context_parse() to parse your commandline arguments.
 */</FONT></I>
GOptionGroup * <B><FONT COLOR="#0000FF">gegl_get_option_group</FONT></B>     (<B><FONT COLOR="#228B22">void</FONT></B>);

<I><FONT COLOR="#B22222">/**
 * gegl_exit:
 *
 * Call this function when you're done using GEGL. It will clean up
 * caches and write/dump debug information if the correct debug flags
 * are set.
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>           <B><FONT COLOR="#0000FF">gegl_exit</FONT></B>                 (<B><FONT COLOR="#228B22">void</FONT></B>);


<I><FONT COLOR="#B22222">/***
 * Available operations:
 * Gegl provides means to check for available processing operations that
 * can be used with nodes using #gegl_list_operations and for a specified
 * op give a list of properties with #gegl_operation_list_properties.
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_list_operations:
 * @n_operations_p: return location for number of operations.
 *
 * Return value: (transfer container): An alphabetically sorted array of available operation names. The
 * list should be freed with g_free after use.
 * ---
 * gchar **operations;
 * guint   n_operations;
 * gint i;
 *
 * operations = gegl_list_operations (&amp;n_operations);
 * g_print (&quot;Available operations:\n&quot;);
 * for (i=0; i &lt; n_operations; i++)
 *   {
 *     g_print (&quot;\t%s\n&quot;, operations[i]);
 *   }
 * g_free (operations);
 */</FONT></I>
gchar        **<B><FONT COLOR="#0000FF">gegl_list_operations</FONT></B>         (guint *n_operations_p);


<I><FONT COLOR="#B22222">/**
 * gegl_operation_list_properties:
 * @operation_type: the name of the operation type we want to query to properties of.
 * @n_properties_p: return location for number of properties.
 *
 * Return value: (transfer container): An allocated array of #GParamSpecs describing the properties
 * of the operation available when a node has operation_type set.
 */</FONT></I>
GParamSpec** <B><FONT COLOR="#0000FF">gegl_operation_list_properties</FONT></B>           (<B><FONT COLOR="#228B22">const</FONT></B> gchar   *operation_type,
                                             guint         *n_properties_p);

<I><FONT COLOR="#B22222">/***
 * GeglNode:
 *
 * The Node is the image processing primitive connected to create compositions
 * in GEGL. The toplevel #GeglNode which contains a graph of #GeglNodes is
 * created with #gegl_node_new. Using this toplevel node we can create children
 * of this node which are individual processing elements using #gegl_node_new_child
 *
 * A node either has an associated operation or is a parent for other nodes,
 * that are connected to their parent through proxies created with
 * #gegl_node_get_input_proxy and #gegl_node_get_output_proxy.
 *
 * The properties available on a node depends on which &lt;a
 * href='operations.html'&gt;operation&lt;/a&gt; is specified.
 *
 * ---
 * GeglNode *gegl, *load, *bcontrast;
 *
 * gegl = gegl_node_new ();
 * load = gegl_node_new_child (gegl,
 *                             &quot;operation&quot;, &quot;load&quot;,
 *                             &quot;path&quot;,      &quot;input.png&quot;,
 *                             NULL);
 * bcontrast = gegl_node_new_child (gegl,
 *                                  &quot;operation&quot;, &quot;brightness-contrast&quot;,
 *                                  &quot;brightness&quot;, 0.2,
 *                                  &quot;contrast&quot;,   1.5,
 *                                  NULL);
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_new:
 *
 * Create a new graph that can contain further processing nodes.
 *
 * Return value: (transfer full): A new top level #GeglNode (which can be used as a graph). When you
 * are done using this graph instance it should be unreferenced with g_object_unref.
 * This will also free any sub nodes created from this node.
 */</FONT></I>
GeglNode     * <B><FONT COLOR="#0000FF">gegl_node_new</FONT></B>             (<B><FONT COLOR="#228B22">void</FONT></B>);

<I><FONT COLOR="#B22222">/**
 * gegl_node_new_child:
 * @parent: a #GeglNode
 * @first_property_name: the first property name
 * @...: first property value, optionally followed by more key/value pairs, ended
 * terminated with NULL.
 *
 * Creates a new processing node that performs the specified operation with
 * a NULL terminated list of key/value pairs for initial parameter values
 * configuring the operation. Usually the first pair should be &quot;operation&quot;
 * and the type of operation to be associated. If no operation is provided
 * the node doesn't have an initial operation and can be used to construct
 * a subgraph with special middle-man routing nodes created with
 * #gegl_node_get_output_proxy and #gegl_node_get_input_proxy.
 *
 * Return value: (transfer none): A newly created #GeglNode. The node will be destroyed by the parent.
 * Calling g_object_unref on a node will cause the node to be dropped by the
 * parent. (You may also add additional references using
 * g_object_ref/g_object_unref, but in general relying on the parents reference
 * counting is easiest.)
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_new_child</FONT></B>        (GeglNode      *parent,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *first_property_name,
                                          ...) G_GNUC_NULL_TERMINATED;

<I><FONT COLOR="#B22222">/***
 * Making connections:
 *
 * Nodes in GEGL are connected to each other. The resulting graph of nodes
 * represents the image processing pipeline to be processed.
 *
 * ---
 * gegl_node_link_many (background, over, png_save, NULL);
 * gegl_node_connect_to (translate, &quot;output&quot;, over, &quot;aux&quot;);
 * gegl_node_link_many (text, blur, translate, NULL);
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_connect_from:
 * @sink: the node we're connecting an input to
 * @input_pad_name: the name of the input pad we are connecting to
 * @source: the node producing data we want to connect.
 * @output_pad_name: the output pad we want to use on the source.
 *
 * Makes a connection between the pads of two nodes.
 *
 * Returns TRUE if the connection was succesfully made.
 */</FONT></I>

gboolean      <B><FONT COLOR="#0000FF">gegl_node_connect_from</FONT></B>     (GeglNode      *sink,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *input_pad_name,
                                          GeglNode      *source,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *output_pad_name);

<I><FONT COLOR="#B22222">/**
 * gegl_node_connect_to:
 * @source: the node producing data we want to connect.
 * @output_pad_name: the output pad we want to use on the source.
 * @sink: the node we're connecting an input to
 * @input_pad_name: the name of the input pad we are connecting to
 *
 * Makes a connection between the pads of two nodes.
 *
 * Returns TRUE if the connection was succesfully made.
 */</FONT></I>
gboolean      <B><FONT COLOR="#0000FF">gegl_node_connect_to</FONT></B>       (GeglNode      *source,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *output_pad_name,
                                          GeglNode      *sink,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *input_pad_name);


<I><FONT COLOR="#B22222">/**
 * gegl_node_link:
 * @source: the producer of data.
 * @sink: the consumer of data.
 *
 * Synthetic sugar for linking the &quot;output&quot; pad of @source to the &quot;input&quot;
 * pad of @sink.
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_link</FONT></B>             (GeglNode      *source,
                                          GeglNode      *sink);

<I><FONT COLOR="#B22222">/**
 * gegl_node_link_many:
 * @source: the producer of data.
 * @first_sink: the first consumer of data.
 * @...: NULL, or optionally more consumers followed by NULL.
 *
 * Synthetic sugar for linking a chain of nodes with &quot;input&quot;-&gt;&quot;output&quot;. The
 * list is NULL terminated.
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_link_many</FONT></B>        (GeglNode      *source,
                                          GeglNode      *first_sink,
                                          ...) G_GNUC_NULL_TERMINATED;

<I><FONT COLOR="#B22222">/**
 * gegl_node_disconnect:
 * @node: a #GeglNode
 * @input_pad: the input pad to disconnect.
 *
 * Disconnects node connected to @input_pad of @node (if any).
 *
 * Returns TRUE if a connection was broken.
 */</FONT></I>
gboolean      <B><FONT COLOR="#0000FF">gegl_node_disconnect</FONT></B>       (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *input_pad);

<I><FONT COLOR="#B22222">/***
 * Properties:
 *
 * Properties can be set either when creating the node with
 * #gegl_node_new_child as well as later when changing the initial
 * value with #gegl_node_set.
 *
 * To see what properties are available for a given operation look in the &lt;a
 * href='operations.html'&gt;Operations reference&lt;/a&gt; or use
 * #gegl_node_get.
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_set:
 * @node: a #GeglNode
 * @first_property_name: name of the first property to set
 * @...: value for the first property, followed optionally by more name/value
 * pairs, followed by NULL.
 *
 * Set properties on a node, possible properties to be set are the properties
 * of the currently set operations as well as &lt;em&gt;&quot;name&quot;&lt;/em&gt; and
 * &lt;em&gt;&quot;operation&quot;&lt;/em&gt;. &lt;em&gt;&quot;operation&quot;&lt;/em&gt; changes the current operations
 * set for the node, &lt;em&gt;&quot;name&quot;&lt;/em&gt; doesn't have any role internally in
 * GEGL.
 * ---
 * gegl_node_set (node, &quot;brightness&quot;, -0.2,
 *                      &quot;contrast&quot;,   2.0,
 *                      NULL);
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_set</FONT></B>              (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *first_property_name,
                                          ...) G_GNUC_NULL_TERMINATED;

<I><FONT COLOR="#B22222">/**
 * gegl_node_set_valist:
 * @node: a #GeglNode
 * @first_property_name: name of the first property to set
 * @args: value for the first property, followed optionally by more name/value
 * pairs, followed by NULL.
 *
 * valist version of #gegl_node_set
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_set_valist</FONT></B>       (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *first_property_name,
                                          va_list        args);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get:
 * @node: a #GeglNode
 * @first_property_name: name of the first property to get.
 * @...: return location for the first property, followed optionally by more
 * name/value pairs, followed by NULL.
 *
 * Gets properties of a #GeglNode.
 * ---
 * double level;
 * char  *path;
 *
 * gegl_node_get (png_save, &quot;path&quot;, &amp;path, NULL);
 * gegl_node_get (threshold, &quot;level&quot;, &amp;level, NULL);
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_get</FONT></B>              (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *first_property_name,
                                          ...) G_GNUC_NULL_TERMINATED;

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_valist:
 * @node: a #GeglNode
 * @first_property_name: name of the first property to get.
 * @args: return location for the first property, followed optionally by more
 * name/value pairs, followed by NULL.
 *
 * valist version of #gegl_node_get
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_get_valist</FONT></B>       (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *first_property_name,
                                          va_list        args);


<I><FONT COLOR="#B22222">/***
 * Processing:
 *
 * There are two different ways to do processing with GEGL, either you
 * query any node providing output for a rectangular region to be rendered
 * using #gegl_node_blit, or you use #gegl_node_process on a sink node (A
 * display node, an image file writer or similar). To do iterative processing
 * you need to use a #GeglProcessor. See #gegl_processor_work for a code
 * sample.
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_blit:
 * @node: a #GeglNode
 * @scale: the scale to render at 1.0 is default, other values changes the
 * width/height of the sampled region.
 * @roi: the rectangle to render from the node, the coordinate system used is
 * coordinates after scale has been applied.
 * @format: the #BablFormat desired.
 * @destination_buf: a memory buffer large enough to contain the data, can be
 * left as NULL when forcing a rendering of a region.
 * @rowstride: rowstride in bytes, or GEGL_AUTO_ROWSTRIDE to compute the
 * rowstride based on the width and bytes per pixel for the specified format.
 * @flags: an or'ed combination of GEGL_BLIT_DEFAULT, GEGL_BLIT_CACHE and
 * GEGL_BLIT_DIRTY. if cache is enabled, a cache will be set up for subsequent
 * requests of image data from this node. By passing in GEGL_BLIT_DIRTY the
 * function will return with the latest rendered results in the cache without
 * regard to wheter the regions has been rendered or not.
 *
 * Render a rectangular region from a node.
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_blit</FONT></B>             (GeglNode            *node,
                                          gdouble              scale,
                                          <B><FONT COLOR="#228B22">const</FONT></B> GeglRectangle *roi,
                                          <B><FONT COLOR="#228B22">const</FONT></B> Babl          *format,
                                          gpointer             destination_buf,
                                          gint                 rowstride,
                                          GeglBlitFlags        flags);

<I><FONT COLOR="#B22222">/**
 * gegl_node_process:
 * @sink_node: a #GeglNode without outputs.
 *
 * Render a composition. This can be used for instance on a node with a &quot;png-save&quot;
 * operation to render all neccesary data, and make it be written to file. This
 * function wraps the usage of a GeglProcessor in a single blocking function
 * call. If you need a non-blocking operation, then make a direct use of
 * #gegl_processor_work. See #GeglProcessor.
 *
 * ---
 * GeglNode      *gegl;
 * GeglRectangle  roi;
 * GeglNode      *png_save;
 * unsigned char *buffer;
 *
 * gegl = gegl_parse_xml (xml_data);
 * roi      = gegl_node_get_bounding_box (gegl);
 * # create png_save from the graph, the parent/child relationship
 * # only mean anything when it comes to memory management.
 * png_save = gegl_node_new_child (gegl,
 *                                 &quot;operation&quot;, &quot;png-save&quot;,
 *                                 &quot;path&quot;,      &quot;output.png&quot;,
 *                                 NULL);
 *
 * gegl_node_link (gegl, png_save);
 * gegl_node_process (png_save);
 *
 * buffer = malloc (roi.w*roi.h*4);
 * gegl_node_blit (gegl,
 *                 &amp;roi,
 *                 1.0,
 *                 babl_format(&quot;R'G'B'A u8&quot;,
 *                 roi.w*4,
 *                 buffer,
 *                 GEGL_BLIT_DEFAULT);
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_process</FONT></B>          (GeglNode      *sink_node);


<I><FONT COLOR="#B22222">/***
 * Reparenting:
 *
 * Sometimes it is useful to be able to move nodes between graphs or even
 * handle orphaned nods that are not part of a graph. gegl_node_adopt_child
 * and gegl_node_get_parent are provided to handle such cases.
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_add_child:
 * @graph: a GeglNode (graph)
 * @child: a GeglNode.
 *
 * Make the GeglNode @graph, take a reference on child. This reference
 * will be dropped when the reference count on the graph reaches zero.
 *
 * Return value: (transfer none): the child.
 */</FONT></I>
GeglNode *    <B><FONT COLOR="#0000FF">gegl_node_add_child</FONT></B>           (GeglNode      *graph,
                                             GeglNode      *child);

<I><FONT COLOR="#B22222">/**
 * gegl_node_remove_child:
 * @graph: a GeglNode (graph)
 * @child: a GeglNode.
 *
 * Removes a child from a GeglNode. The reference previously held will be
 * dropped so increase the reference count before removing when reparenting
 * a child between two graphs.
 *
 * Return value: (transfer none): the child.
 */</FONT></I>
GeglNode *    <B><FONT COLOR="#0000FF">gegl_node_remove_child</FONT></B>        (GeglNode      *graph,
                                             GeglNode      *child);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_parent:
 * @node: a #GeglNode
 *
 * Returns a GeglNode that keeps a reference on a child.
 *
 * Return value: (transfer none): the parent of a node or NULL.
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_get_parent</FONT></B>         (GeglNode      *node);


<I><FONT COLOR="#B22222">/***
 * State queries:
 *
 * This section lists functions that retrieve information, mostly needed
 * for interacting with a graph in a GUI, not creating one from scratch.
 *
 * You can figure out what the bounding box of a node is with #gegl_node_get_bounding_box,
 * retrieve the values of named properties using #gegl_node_get.
 */</FONT></I>



<I><FONT COLOR="#B22222">/**
 * gegl_node_detect:
 * @node: a #GeglNode
 * @x: x coordinate
 * @y: y coordinate
 *
 * Performs hit detection by returning the node providing data at a given
 * coordinate pair. Currently operates only on bounding boxes and not
 * pixel data.
 *
 * Return value: (transfer none): the GeglNode providing the 
 * data ending up at @x,@y in the output of @node.
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_detect</FONT></B>           (GeglNode      *node,
                                          gint           x,
                                          gint           y);


<I><FONT COLOR="#B22222">/**
 * gegl_node_find_property:
 * @node: the node to lookup a paramspec on
 * @property_name: the name of the property to get a paramspec for.
 *
 * Returns the GParamSpec of property or NULL if no such property exists.
 */</FONT></I>
GParamSpec  * <B><FONT COLOR="#0000FF">gegl_node_find_property</FONT></B>    (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *property_name);



<I><FONT COLOR="#B22222">/**
 * gegl_node_get_bounding_box:
 * @node: a #GeglNode
 *
 * Returns the position and dimensions of a rectangle spanning the area
 * defined by a node.
 */</FONT></I>
GeglRectangle <B><FONT COLOR="#0000FF">gegl_node_get_bounding_box</FONT></B> (GeglNode      *node);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_children:
 * @node: the node to retrieve the children of.
 *
 * Return value: (element-type Gegl.Node) (transfer container): a list
 * of the nodes contained within a GeglNode that is a subgraph.
 * Use g_list_free () on the list when done.
 */</FONT></I>
GSList      * <B><FONT COLOR="#0000FF">gegl_node_get_children</FONT></B>     (GeglNode      *node);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_consumers:
 * @node: the node we are querying.
 * @output_pad: the output pad we want to know who uses.
 * @nodes: (out callee-allocates) (array zero-terminated=1) (allow-none): optional return location for array of nodes.
 * @pads: (out callee-allocates) (array zero-terminated=1) (allow-none): optional return location for array of pad names.
 *
 * Retrieve which pads on which nodes are connected to a named output_pad,
 * and the number of connections. Both the location for the generated
 * nodes array and pads array can be left as NULL. If they are non NULL
 * both should be freed with g_free. The arrays are NULL terminated.
 *
 * Returns the number of consumers connected to this output_pad.
 */</FONT></I>
gint          <B><FONT COLOR="#0000FF">gegl_node_get_consumers</FONT></B>    (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *output_pad,
                                          GeglNode    ***nodes,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar ***pads);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_input_proxy:
 * @node: a #GeglNode
 * @pad_name: the name of the pad.
 *
 * Proxies are used to route between nodes of a subgraph contained within
 * a node.
 *
 * Returns an input proxy for the named pad. If no input proxy exists with
 * this name a new one will be created.
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_get_input_proxy</FONT></B>  (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *pad_name);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_operation:
 * @node: a #GeglNode
 *
 * Returns the type of processing operation associated with this node, or
 * NULL if there is no op associated. The special name &quot;GraphNode&quot;
 * is returned if the node is the container of a subgraph.
 */</FONT></I>
<B><FONT COLOR="#228B22">const</FONT></B> gchar * <B><FONT COLOR="#0000FF">gegl_node_get_operation</FONT></B>    (<B><FONT COLOR="#228B22">const</FONT></B> GeglNode *node);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_output_proxy:
 * @node: a #GeglNode
 * @pad_name: the name of the pad.
 *
 * Proxies are used to route between nodes of a subgraph contained within
 * a node.
 *
 * Returns a output proxy for the named pad. If no output proxy exists with
 * this name a new one will be created.
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_get_output_proxy</FONT></B> (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *pad_name);

<I><FONT COLOR="#B22222">/**
 * gegl_node_get_producer:
 * @node: the node we are querying
 * @input_pad_name: the input pad we want to get the producer for
 * @output_pad_name: (allow-none): optional pointer to a location where we can store a
 *                   freshly allocated string with the name of the output pad.
 *
 * Return value: (transfer none): the node providing data
 * or NULL if no node is connected to the input_pad.
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_get_producer</FONT></B>     (GeglNode      *node,
                                          gchar         *input_pad_name,
                                          gchar        **output_pad_name);

<I><FONT COLOR="#B22222">/**
 * gegl_node_has_pad:
 * @node: the node we are querying
 * @pad_name: the pad name we are looking for
 *
 * Returns TRUE if the node has a pad with the specified name
 */</FONT></I>
gboolean      <B><FONT COLOR="#0000FF">gegl_node_has_pad</FONT></B>          (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *pad_name);


<I><FONT COLOR="#B22222">/***
 * Binding conveniences:
 *
 * The following functions are mostly included to make it easier to create
 * language bindings for the nodes. The varargs versions will in most cases
 * lead to both more efficient and readable code from C.
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_create_child:
 * @parent: a #GeglNode
 * @operation: the type of node to create.
 *
 * Creates a new processing node that performs the specified operation.
 * All properties of the operation will have their default values. This
 * is included as an addiiton to #gegl_node_new_child in the public API to have
 * a non varargs entry point for bindings as well as sometimes simpler more
 * readable code.
 *
 * Return value: (transfer none):a newly created node. The node will be destroyed by the parent.
 * Calling g_object_unref on a node will cause the node to be dropped by the
 * parent. (You may also add additional references using
 * g_object_ref/g_object_unref, but in general relying on the parents reference
 * counting is easiest.)
 */</FONT></I>

GeglNode     * <B><FONT COLOR="#0000FF">gegl_node_create_child</FONT></B>    (GeglNode      *parent,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *operation);


<I><FONT COLOR="#B22222">/**
 * gegl_node_get_property:
 * @node: the node to get a property from
 * @property_name: the name of the property to get
 * @value: (out): pointer to a GValue where the value of the property should be stored
 *
 * This is mainly included for language bindings. Using #gegl_node_get is
 * more convenient when programming in C.
 *
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_get_property</FONT></B>     (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *property_name,
                                          GValue        *value);

<I><FONT COLOR="#B22222">/**
 * gegl_node_set_property:
 * @node: a #GeglNode
 * @property_name: the name of the property to set
 * @value: (in): a GValue containing the value to be set in the property.
 *
 * This is mainly included for language bindings. Using #gegl_node_set is
 * more convenient when programming in C.
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>          <B><FONT COLOR="#0000FF">gegl_node_set_property</FONT></B>     (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *property_name,
                                          <B><FONT COLOR="#228B22">const</FONT></B> GValue  *value);

<I><FONT COLOR="#B22222">/***
 * XML:
 * The XML format used by GEGL is not stable and should not be relied on
 * for anything but testing purposes yet.
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_new_from_xml:
 * @xmldata: a \0 terminated string containing XML data to be parsed.
 * @path_root: a file system path that relative paths in the XML will be
 * resolved in relation to.
 *
 * The #GeglNode returned contains the graph described by the tree of stacks
 * in the XML document. The tree is connected to the &quot;output&quot; pad of the
 * returned node and thus can be used directly for processing.
 *
 * Return value: (transfer full): a GeglNode containing the parsed XML as a subgraph.
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_new_from_xml</FONT></B>     (<B><FONT COLOR="#228B22">const</FONT></B> gchar   *xmldata,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *path_root);

<I><FONT COLOR="#B22222">/**
 * gegl_node_new_from_file:
 * @path: the path to a file on the local file system to be parsed.
 *
 * The #GeglNode returned contains the graph described by the tree of stacks
 * in the XML document. The tree is connected to the &quot;output&quot; pad of the
 * returned node and thus can be used directly for processing.
 *
 * Return value: (transfer full): a GeglNode containing the parsed XML as a subgraph.
 */</FONT></I>
GeglNode    * <B><FONT COLOR="#0000FF">gegl_node_new_from_file</FONT></B>    (<B><FONT COLOR="#228B22">const</FONT></B> gchar   *path);

<I><FONT COLOR="#B22222">/**
 * gegl_node_to_xml:
 * @node: a #GeglNode
 * @path_root: filesystem path to construct relative paths from.
 *
 * Returns a freshly allocated \0 terminated string containing a XML
 * serialization of the composition produced by a node (and thus also
 * the nodes contributing data to the specified node). To export a
 * gegl graph, connect the internal output node to an output proxy (see
 * #gegl_node_get_output_proxy.) and use the proxy node as the basis
 * for the serialization.
 */</FONT></I>
gchar       * <B><FONT COLOR="#0000FF">gegl_node_to_xml</FONT></B>           (GeglNode      *node,
                                          <B><FONT COLOR="#228B22">const</FONT></B> gchar   *path_root);
<I><FONT COLOR="#B22222">/***
 * GeglProcessor:
 *
 * A #GeglProcessor, is a worker that can be used for background rendering
 * of regions in a node's cache. Or for processing a sink node. For most
 * non GUI tasks using #gegl_node_blit and #gegl_node_process directly
 * should be sufficient. See #gegl_processor_work for a code sample.
 *
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_node_new_processor:
 * @node: a #GeglNode
 * @rectangle: the #GeglRectangle to work on or NULL to work on all available
 * data.
 *
 * Return value: (transfer full): a new #GeglProcessor.
 */</FONT></I>
GeglProcessor *<B><FONT COLOR="#0000FF">gegl_node_new_processor</FONT></B>      (GeglNode            *node,
                                             <B><FONT COLOR="#228B22">const</FONT></B> GeglRectangle *rectangle);

<I><FONT COLOR="#B22222">/**
 * gegl_processor_set_rectangle:
 * @processor: a #GeglProcessor
 * @rectangle: the new #GeglRectangle the processor shold work on or NULL
 * to make it work on all data in the buffer.
 *
 * Change the rectangle a #GeglProcessor is working on.
 */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>           <B><FONT COLOR="#0000FF">gegl_processor_set_rectangle</FONT></B> (GeglProcessor       *processor,
                                             <B><FONT COLOR="#228B22">const</FONT></B> GeglRectangle *rectangle);


<I><FONT COLOR="#B22222">/**
 * gegl_processor_work:
 * @processor: a #GeglProcessor
 * @progress: a location to store the (estimated) percentage complete.
 *
 * Do an iteration of work for the processor.
 *
 * Returns TRUE if there is more work to be done.
 *
 * ---
 * GeglProcessor *processor = gegl_node_new_processor (node, &amp;roi);
 * double         progress;
 *
 * while (gegl_processor_work (processor, &amp;progress))
 *   g_warning (&quot;%f%% complete&quot;, progress);
 * g_object_unref (processor);
 */</FONT></I>
gboolean       <B><FONT COLOR="#0000FF">gegl_processor_work</FONT></B>          (GeglProcessor *processor,
                                             gdouble       *progress);


<I><FONT COLOR="#B22222">/***
 * GeglConfig:
 *
 * GEGL uses a singleton configuration object
 */</FONT></I>

<I><FONT COLOR="#B22222">/**
 * gegl_config:
 *
 * Returns a GeglConfig object with properties that can be manipulated to control
 * GEGLs behavior. Properties available on the object are:
 *
 * &quot;cache-size&quot; &quot;quality&quot; and &quot;swap&quot;, the two first is an integer denoting
 * number of bytes, the secons a double value between 0 and 1 and the last
 * the path of the directory to swap to (or &quot;ram&quot; to not use diskbased swap)
 */</FONT></I>
GeglConfig      * <B><FONT COLOR="#0000FF">gegl_config</FONT></B> (<B><FONT COLOR="#228B22">void</FONT></B>);



<B><FONT COLOR="#228B22">void</FONT></B>        <B><FONT COLOR="#0000FF">gegl_apply_op</FONT></B>  (GeglBuffer    *buffer,
                            <B><FONT COLOR="#228B22">const</FONT></B> gchar   *operation_name,
                            ...) G_GNUC_NULL_TERMINATED;

GeglBuffer *<B><FONT COLOR="#0000FF">gegl_filter_op</FONT></B> (GeglBuffer    *source_buffer,
                            <B><FONT COLOR="#228B22">const</FONT></B> gchar   *operation_name,
                            ...) G_GNUC_NULL_TERMINATED;

<B><FONT COLOR="#228B22">void</FONT></B>        <B><FONT COLOR="#0000FF">gegl_render_op</FONT></B> (GeglBuffer    *source_buffer,
                            GeglBuffer    *target_buffer,
                            <B><FONT COLOR="#228B22">const</FONT></B> gchar   *operation_name,
                            ...) G_GNUC_NULL_TERMINATED;

<I><FONT COLOR="#B22222">/* the following only exist to make gegl_apply nad gegl_filter bindable */</FONT></I>
<B><FONT COLOR="#228B22">void</FONT></B>        <B><FONT COLOR="#0000FF">gegl_apply_op_valist</FONT></B> (GeglBuffer    *buffer,
                                  <B><FONT COLOR="#228B22">const</FONT></B> gchar   *operation_name,
                                  va_list        var_args);

GeglBuffer *<B><FONT COLOR="#0000FF">gegl_filter_op_valist</FONT></B> (GeglBuffer   *source_buffer,
                                   <B><FONT COLOR="#228B22">const</FONT></B> gchar  *operation_name,
                                   va_list       var_args);

<B><FONT COLOR="#228B22">void</FONT></B>        <B><FONT COLOR="#0000FF">gegl_render_op_valist</FONT></B> (GeglBuffer   *source_buffer,
                                   GeglBuffer   *target_buffer,
                                   <B><FONT COLOR="#228B22">const</FONT></B> gchar  *operation_name,
                                   va_list       var_args);






<I><FONT COLOR="#B22222">/**
 * gegl_node: (skip)
 * @op_type:  the type of operation to create
 * @first_property_name:
 * @...:
 *
 * Construct a GEGL node, connecting it to needed input nodes. The
 * returned node does not have a parent but a single reference it
 * is meant to be passed to gegl_graph () for gegl_graph () to assume
 * its ownership. This is syntactic sugar for use from C, similar
 * conveniences can easily be built externally in other languages.
 *
 * gegl_node(op_type, [key, value, [...]], NULL, [input, [aux]])
 *
 * Return value: (transfer full): a new Gegl node.
 */</FONT></I>
GeglNode *<B><FONT COLOR="#0000FF">gegl_node</FONT></B> (<B><FONT COLOR="#228B22">const</FONT></B> gchar *op_type,
                     <B><FONT COLOR="#228B22">const</FONT></B> gchar *first_property_name,
                     ...);


<I><FONT COLOR="#B22222">/**
 * gegl_graph: (skip)
 * @node: (transfer full): the end result of a composition created with gegl_node()
 *
 * Creates a GeglNode containing a free floating graph constructed
 * using gegl_node(). The GeglGraph adopts all the passed in nodes
 * making it sufficient to unref the resulting graph.
 *
 * gegl_graph (gegl_node (&quot;gegl:over&quot;, NULL,
 *                        gegl_node (..), gegl_node (..)));
 *
 * Return value: (transfer full):a GeglNode graph.
 */</FONT></I>
GeglNode *<B><FONT COLOR="#0000FF">gegl_graph</FONT></B> (GeglNode *node);

#<B><FONT COLOR="#5F9EA0">define</FONT></B> <FONT COLOR="#B8860B">GEGL_ALIGNED</FONT> __restrict__ __attribute__((__aligned__ (16)))

G_END_DECLS
#<B><FONT COLOR="#5F9EA0">endif</FONT></B>  <I><FONT COLOR="#B22222">/* __GEGL_H__ */</FONT></I>
</PRE>
<HR>
<ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU Enscript 1.6.5.90</A>.</ADDRESS>
</BODY>
</HTML>