This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 079d90a0e58cde797f3816a793a7cdb05d18d2bc (commit) from 43f5f45fcff837cf1f091fb9933d454e36800f3e (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/079d90a0e58cde797f3816a793a7cdb05d18d...
commit 079d90a0e58cde797f3816a793a7cdb05d18d2bc Author: Cyril Hrubis metan@ucw.cz Date: Sun Jul 1 21:38:57 2012 +0200
doc: Update resapling docs.
diff --git a/doc/filters.txt b/doc/filters.txt index 9d4228e..074e7d4 100644 --- a/doc/filters.txt +++ b/doc/filters.txt @@ -693,8 +693,8 @@ int GP_FilterConvolution(const GP_Context *src, GP_Context *dst, GP_ProgressCallback *callback);
GP_Context *GP_FilterConvolutionAlloc(const GP_Context *src, - const GP_FilterKernel2D *kernel, - GP_ProgressCallback *callback); + const GP_FilterKernel2D *kernel, + GP_ProgressCallback *callback);
void GP_FilterKernel2DPrint(const GP_FilterKernel2D *kernel); ------------------------------------------------------------------------------- @@ -854,8 +854,12 @@ Interpolation filters #include <GP_Filters.h>
typedef enum GP_InterpolationType { - GP_INTERP_NN, /* Nearest Neighbour */ - GP_INTERP_CUBIC, /* Bicubic */ + GP_INTERP_NN, /* Nearest Neighbour */ + GP_INTERP_LINEAR_INT, /* Bilinear - fixed point arithmetics */ + GP_INTERP_LINEAR_LF_INT, /* Bilinear + low pass filter on downscaling */ + GP_INTERP_CUBIC, /* Bicubic */ + GP_INTERP_CUBIC_INT, /* Bicubic - fixed point arithmetics */ + GP_INTERP_MAX = GP_INTERP_CUBIC_INT, } GP_InterpolationType;
GP_Context *GP_FilterResize(const GP_Context *src, GP_Context *dst, @@ -882,6 +886,14 @@ Fast, but produces "pixelated" images. May however work better for images with sharp edges mostly consisting of big one color regions (it doesn't blur the result on upscaling).
+Also is commonly used to show preview before you resample the image correctly. + +Bilinear Interpolation +^^^^^^^^^^^^^^^^^^^^^^ + +Bilinear is faster than bicubic interpolation and produces quite good results +expecially the low pass variant doesn't need additional filter on downsampling. + Bicubic Interpolation ^^^^^^^^^^^^^^^^^^^^^
-----------------------------------------------------------------------
Summary of changes: doc/filters.txt | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.