Procházet zdrojové kódy

img2twit: reinstate old interpolation tuning for final picture quality.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3540 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam před 16 roky
rodič
revize
d6e4f6d492
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. +3
    -2
      examples/img2twit.cpp

+ 3
- 2
examples/img2twit.cpp Zobrazit soubor

@@ -749,8 +749,9 @@ static void render(pipi_image_t *dst, int rx, int ry, int rw, int rh)
//float k = pow((*it).second, (1.0f + fs)); //float k = pow((*it).second, (1.0f + fs));


// Try to attenuate peak artifacts // Try to attenuate peak artifacts
//k /= (0.1 * (RANGE_X * RANGE_X + RANGE_Y * RANGE_Y) k *= pow(((myx - fx) * (myx - fx) + (myy - fy) * (myy - fy)
// + (myx - fx) * (myx - fx) + (myy - fy) * (myy - fy)); + 0.01) / (RANGE_X * RANGE_X + RANGE_Y * RANGE_Y),
-0.5);


// Cute circles // Cute circles
//k = 1.0 / (0.015 * (RANGE_X * RANGE_X + RANGE_Y * RANGE_Y) //k = 1.0 / (0.015 * (RANGE_X * RANGE_X + RANGE_Y * RANGE_Y)


||||||
x
 
000:0
Načítá se…
Zrušit
Uložit