[vlc-devel] commit: Remove the conversion from premultiplied alpha, ... ( Vincent Penquerc'h )

git version control git at videolan.org
Sat Jan 23 16:13:32 CET 2010


vlc | branch: master | Vincent Penquerc'h <ogg.k.ogg.k at googlemail.com> | Wed Jan 20 18:04:18 2010 +0000| [6a893450bcd50e1cad35e2e035bbadd5cc22c8f7] | committer: Rémi Denis-Courmont 

Remove the conversion from premultiplied alpha, ...

...as I found a case where it makes the output almost unreadable, and
cannot find another test case where it makes it better, which I'm
pretty sure I had when I did this.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a893450bcd50e1cad35e2e035bbadd5cc22c8f7
---

 modules/codec/kate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index 156199d..0e65a34 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -824,6 +824,7 @@ static void SubpictureReleaseRegions( subpicture_t *p_subpic )
     }
 }
 
+#if 0
 /*
  * We get premultiplied alpha, but VLC doesn't expect this, so we demultiply
  * alpha to avoid double multiply (and thus thinner text than we should)).
@@ -874,6 +875,7 @@ static void PostprocessTigerImage( plane_t *p_plane, unsigned int i_width )
     }
     PROFILE_STOP( tiger_renderer_postprocess );
 }
+#endif
 
 /* Tiger renders can end up looking a bit crap since they get overlaid on top of
    a subsampled YUV image, so there can be a fair amount of chroma bleeding.
@@ -975,7 +977,9 @@ static void TigerUpdateRegions( spu_t *p_spu, subpicture_t *p_subpic, const vide
     }
     PROFILE_STOP( tiger_renderer_render );
 
+#if 0
     PostprocessTigerImage( p_plane, fmt.i_width );
+#endif
     p_subpic->p_region = p_r;
     p_sys->b_dirty = false;
 




More information about the vlc-devel mailing list