doc polish
This commit is contained in:
parent
70e470b0a5
commit
8a545ab6c4
@ -103,11 +103,16 @@
|
|||||||
* error ..
|
* error ..
|
||||||
* ]|
|
* ]|
|
||||||
*
|
*
|
||||||
* This will invert @im and return it as a new #VipsImage, @t1. As the caller
|
* This will invert @im and return a new #VipsImage, @t1. As the caller
|
||||||
* of vips_invert(), you are responsible for @t1 and must unref it when you no
|
* of vips_invert(), you are responsible for @t1 and must unref it when you no
|
||||||
* longer need it. If vips_invert() fails, no @t1 is returned and you don't
|
* longer need it. If vips_invert() fails, no @t1 is returned and you don't
|
||||||
* need to do anything.
|
* need to do anything.
|
||||||
*
|
*
|
||||||
|
* If you don't need to use @im for another operation,
|
||||||
|
* you can unref @im immediately after the call. If @im is needed to calculate
|
||||||
|
* @t1, vips_invert() will add a ref to @im and automatically drop it when @t1
|
||||||
|
* is unreffed.
|
||||||
|
*
|
||||||
* Consider running two operations, one after the other. You could write:
|
* Consider running two operations, one after the other. You could write:
|
||||||
*
|
*
|
||||||
* |[
|
* |[
|
||||||
@ -148,7 +153,7 @@
|
|||||||
* ## The #VipsOperation cache
|
* ## The #VipsOperation cache
|
||||||
*
|
*
|
||||||
* Because all #VipsObject are immutable, they can be cached. The cache is
|
* Because all #VipsObject are immutable, they can be cached. The cache is
|
||||||
* very simple to use: instead of calling vips_object_build(), instead call
|
* very simple to use: instead of calling vips_object_build(), call
|
||||||
* vips_cache_operation_build(). This function calculates a hash from the
|
* vips_cache_operation_build(). This function calculates a hash from the
|
||||||
* operations's input arguments and looks it up in table of all recent
|
* operations's input arguments and looks it up in table of all recent
|
||||||
* operations. If there's a hit, the new operation is unreffed, the old
|
* operations. If there's a hit, the new operation is unreffed, the old
|
||||||
|
Loading…
Reference in New Issue
Block a user