Mercurial > mplayer.hg
comparison libvo/font_load_ft.c @ 23634:8cd44c7487fc
Remove unused function.
author | reimar |
---|---|
date | Sun, 24 Jun 2007 14:11:38 +0000 |
parents | 2a66d95355f0 |
children | 76f5d8892c04 |
comparison
equal
deleted
inserted
replaced
23633:7c5417ab16d4 | 23634:8cd44c7487fc |
---|---|
450 s[x]= t[x]>>8; | 450 s[x]= t[x]>>8; |
451 } | 451 } |
452 s+= stride; | 452 s+= stride; |
453 t+= width + 1; | 453 t+= width + 1; |
454 } | 454 } |
455 } | |
456 | |
457 // Gaussian matrix | |
458 static unsigned gmatrix(unsigned char *m, int r, int w, double const A) { | |
459 unsigned volume = 0; // volume under Gaussian area is exactly -pi*base/A | |
460 int mx, my; | |
461 | |
462 for (my = 0; my<w; ++my) { | |
463 for (mx = 0; mx<w; ++mx) { | |
464 m[mx+my*w] = (exp(A * ((mx-r)*(mx-r)+(my-r)*(my-r))) * base + .5); | |
465 volume+= m[mx+my*w]; | |
466 } | |
467 } | |
468 mp_msg(MSGT_OSD, MSGL_DBG2, "A= %f\n", A); | |
469 mp_msg(MSGT_OSD, MSGL_DBG2, "volume: %i; exact: %.0f; volume/exact: %.6f\n\n", volume, -M_PI*base/A, volume/(-M_PI*base/A)); | |
470 return volume; | |
471 } | 455 } |
472 | 456 |
473 static void resample_alpha(unsigned char *abuf, unsigned char *bbuf, int width, int height, int stride, float factor) | 457 static void resample_alpha(unsigned char *abuf, unsigned char *bbuf, int width, int height, int stride, float factor) |
474 { | 458 { |
475 int f=factor*256.0f; | 459 int f=factor*256.0f; |