[MPlayer-dev-eng] [PATCH] Teletext support try3 (5/5, rendering)

Vladimir Voroshilov voroshil at gmail.com
Wed Jul 18 20:58:07 CEST 2007


Hi

2007/7/18, Michael Niedermayer <michaelni at gmx.at>:
> > +    wm=0;
> > +    hm=vo_font->height;
> > +    for(i=start_row;i<max_rows;i++){
> > +        for(j=0;j<VBI_COLUMNS;j++){
> > +            tc=tp->text[i*VBI_COLUMNS+j];
> > +            if(!tc.ctl && !tc.gfx)
> > +	    {
>
> mixing tabs and spaces

Fixed

> > +    hm13=hm/3;
> > +    hm23=hm13<<1;
>
> with these, 5 pixel would be split up like 1:1:3

changed to hm13=(hm+1)/3
5 pixel will be split to 2:1:2
5 pixel will be split to 2:2:2
7 pixel will be split to 2:3:2
8 pixel will be split to 3:2:3
and so on


> for(i=0; i<6; i+=2){
>     ax[i+0]= 0;
>     ax[i+1]=
>     aw[i+0]= wm12;
>     aw[i+1]= wm-wm12;
> }
>
> for(i=0; i<2; i++){
>     ay[i+0]= 0;
>     ay[i+2]=
>     ah[i+0]=
>     ah[i+4]= hm13;
>     ay[i+4]= hm-hm13;
>     ah[i+2]= hm-hm23;
> }

Fixed.

-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tt35_render.diff
Type: text/x-diff
Size: 10834 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070719/faf03d0e/attachment.diff>


More information about the MPlayer-dev-eng mailing list