[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44230] branches/soc-2011-tomato/source/ blender/imbuf/intern/indexer.c: Wring scaling and precision error in previous commit.

Sergey Sharybin sergey.vfx at gmail.com
Sat Feb 18 17:42:30 CET 2012


Revision: 44230
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44230
Author:   nazgul
Date:     2012-02-18 16:42:19 +0000 (Sat, 18 Feb 2012)
Log Message:
-----------
Wring scaling and precision error in previous commit.

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/imbuf/intern/indexer.c

Modified: branches/soc-2011-tomato/source/blender/imbuf/intern/indexer.c
===================================================================
--- branches/soc-2011-tomato/source/blender/imbuf/intern/indexer.c	2012-02-18 16:23:34 UTC (rev 44229)
+++ branches/soc-2011-tomato/source/blender/imbuf/intern/indexer.c	2012-02-18 16:42:19 UTC (rev 44230)
@@ -517,7 +517,7 @@
 
 	/* there's no  way to set JPEG quality in the same way as in AVI JPEG and image sequence,
 	 * but this seems to be giving expected quality result */
-	ffmpeg_quality = 31 * (1.0f - (float)quality / 100.0f);
+	ffmpeg_quality = (int)(1.0f + 30.0f * (1.0f - (float)quality / 100.0f) + 0.5f);
 	av_set_int(rv->c, "qmin", ffmpeg_quality);
 	av_set_int(rv->c, "qmax", ffmpeg_quality);
 




More information about the Bf-blender-cvs mailing list