~ubuntu-branches/ubuntu/saucy/librsvg/saucy

« back to all changes in this revision

Viewing changes to rsvg-filter.c

  • Committer: Package Import Robot
  • Author(s): Simon McVittie
  • Date: 2012-10-22 20:17:48 UTC
  • mfrom: (1.2.1) (58 sid)
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: package-import@ubuntu.com-20121022201748-6frue379at27szqm
Tags: 2.36.4-1
* Team upload
* New upstream version (LP: #1038843)
* Use dh-autoreconf with --as-needed instead of patching ltmain.sh
  (from Ubuntu, thanks Iain Lane)
* Enable Vala bindings (based on Ubuntu changes, thanks to Robert Ancell)
  - Build-Conflicts: valac-0.16 because if both are installed, the
    default version 0.16 is selected, breaking our build

Show diffs side-by-side

added added

removed removed

Lines of Context:
479
479
}
480
480
 
481
481
/**
482
 
 * rsvg_filter_render: Create a new surface applied the filter.
 
482
 * rsvg_filter_render:
483
483
 * @self: a pointer to the filter to use
484
484
 * @source: the a #cairo_surface_t of type %CAIRO_SURFACE_TYPE_IMAGE
485
485
 * @context: the context
486
486
 *
487
 
 * This function will create a context for itself, set up the coordinate systems
488
 
 * execute all its little primatives and then clean up its own mess
 
487
 * Create a new surface applied the filter. This function will create
 
488
 * a context for itself, set up the coordinate systems execute all its
 
489
 * little primatives and then clean up its own mess.
489
490
 * 
490
491
 * Returns: (transfer full): a new #cairo_surface_t
491
492
 **/
539
540
}
540
541
 
541
542
/**
542
 
 * rsvg_filter_store_result: Files a result into a context.
 
543
 * rsvg_filter_store_result:
543
544
 * @name: The name of the result
544
545
 * @result: The pointer to the result
545
546
 * @ctx: the context that this was called in
662
663
 
663
664
/* FIXMEchpe: proper return value and out param! */
664
665
/**
665
 
 * rsvg_filter_get_in: Gets a surface for a primitive
 
666
 * rsvg_filter_get_result:
666
667
 * @name: The name of the surface
667
668
 * @ctx: the context that this was called in
668
 
 * @
 
669
 *
 
670
 * Gets a surface for a primitive
 
671
 *
669
672
 * Returns: a pointer to the result that the name refers to, a special
670
673
 * surface if the name is a special keyword or NULL if nothing was found
671
674
 **/
731
734
}
732
735
 
733
736
/**
734
 
 * rsvg_filter_parse: Looks up an allready created filter.
 
737
 * rsvg_filter_parse:
735
738
 * @defs: a pointer to the hash of definitions
736
739
 * @str: a string with the name of the filter to be looked up
737
740
 *
 
741
 * Looks up an allready created filter.
 
742
 *
738
743
 * Returns: a pointer to the filter that the name refers to, or NULL
739
744
 * if none was found
740
745
 **/
790
795
}
791
796
 
792
797
/**
793
 
 * rsvg_new_filter: Creates a black filter
 
798
 * rsvg_new_filter:
794
799
 *
795
800
 * Creates a blank filter and assigns default values to everything
796
801
 **/
1740
1745
 
1741
1746
    output = _rsvg_image_surface_new (ctx->width, ctx->height);
1742
1747
    if (output == NULL) {
1743
 
        cairo_surface_destroy (in);
1744
1748
        return;
1745
1749
    }
1746
1750