[MPlayer-dev-eng] [PATCH] Teletext support try3 (5/5, rendering)
Michael Niedermayer
michaelni at gmx.at
Wed Jul 18 14:19:32 CEST 2007
Hi
On Tue, Jul 17, 2007 at 10:21:12PM +0700, Vladimir Voroshilov wrote:
> format (opaque,transparent, etc) and mode (on/off) options/slaves have been
> splitted.
[...]
> + 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
[...]
> + hm13=hm/3;
> + hm23=hm13<<1;
with these, 5 pixel would be split up like 1:1:3
> +
> + ax[0]=0;
> + ay[0]=0;
> + aw[0]=wm12;
> + ah[0]=hm13;
> + ax[1]=wm12;
> + ay[1]=0;
> + aw[1]=wm-wm12;
> + ah[1]=hm13;
> + ax[2]=0;
> + ay[2]=hm13;
> + aw[2]=wm12;
> + ah[2]=hm-hm23;
> + ax[3]=wm12;
> + ay[3]=hm13;
> + aw[3]=wm-wm12;
> + ah[3]=hm-hm23;
> + ax[4]=0;
> + ay[4]=hm-hm13;
> + aw[4]=wm12;
> + ah[4]=hm13;
> + ax[5]=wm12;
> + ay[5]=hm-hm13;
> + aw[5]=wm-wm12;
> + ah[5]=hm13;
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;
}
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070718/210ff5c1/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list