Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-07 19:01:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-07 19:01:48 +0400
commit4f4a46812815c398ad9b719e1a7500e2925b34fb (patch)
treeafd6dbb8f24dfe9e2c304b11d0399772b41f0d23 /source/blender/compositor
parent4085056218fb0f9d6202d8540c6bdde449a8f60d (diff)
use bilinear rather then bicubic scaling because bicubic blurs too much.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/operations/COM_ScaleOperation.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.cpp b/source/blender/compositor/operations/COM_ScaleOperation.cpp
index 642d1878049..23c13518b1d 100644
--- a/source/blender/compositor/operations/COM_ScaleOperation.cpp
+++ b/source/blender/compositor/operations/COM_ScaleOperation.cpp
@@ -22,9 +22,12 @@
#include "COM_ScaleOperation.h"
-#define USE_FORCE_BICUBIC
+#define USE_FORCE_BILINEAR
/* XXX - ignore input and use default from old compositor,
- * could become an option like the transform node - campbell */
+ * could become an option like the transform node - campbell
+ *
+ * note: use bilinear because bicubic makes fuzzy even when not scaling at all (1:1)
+ */
ScaleOperation::ScaleOperation() : NodeOperation()
{
@@ -56,8 +59,8 @@ void ScaleOperation::deinitExecution()
void ScaleOperation::executePixel(float *color, float x, float y, PixelSampler sampler)
{
-#ifdef USE_FORCE_BICUBIC
- sampler = COM_PS_BICUBIC;
+#ifdef USE_FORCE_BILINEAR
+ sampler = COM_PS_BILINEAR;
#endif
float scaleX[4];
@@ -126,8 +129,8 @@ void ScaleAbsoluteOperation::deinitExecution()
void ScaleAbsoluteOperation::executePixel(float *color, float x, float y, PixelSampler sampler)
{
-#ifdef USE_FORCE_BICUBIC
- sampler = COM_PS_BICUBIC;
+#ifdef USE_FORCE_BILINEAR
+ sampler = COM_PS_BILINEAR;
#endif
float scaleX[4];
@@ -247,8 +250,8 @@ void ScaleFixedSizeOperation::deinitExecution()
void ScaleFixedSizeOperation::executePixel(float *color, float x, float y, PixelSampler sampler)
{
-#ifdef USE_FORCE_BICUBIC
- sampler = COM_PS_BICUBIC;
+#ifdef USE_FORCE_BILINEAR
+ sampler = COM_PS_BILINEAR;
#endif
if (this->m_is_offset) {