[MPlayer-dev-eng] [PATCH] Latin National Sub-Sets with teletext

Vladimir Voroshilov voroshil at gmail.com
Sat Aug 25 22:48:24 CEST 2007


2007/8/26, Ötvös Attila <oattila at chello.hu>:
> 2007. augusztus 25. 18.47 dátummal Vladimir Voroshilov ezt írta:
> > Hi, Otvos
> >
> > Please test attached patch.
> > This is simplified version of your patch.
>
> Hi Vladimir Voroshilov!
>
> My proposal to charset/langsub.

>[...]
>@@ -843,7 +889,9 @@
>         priv->mag[magAddr].pt= malloc(sizeof(tt_page));
>
>     priv->mag[magAddr].lang=(d[7]>>1)&0x7;
>+    priv->mag[magAddr].charset=lang2id(d[7]&0x7);
>     priv->mag[magAddr].pt->lang=priv->mag[magAddr].lang;
>+    priv->mag[magAddr].pt->charset=priv->mag[magAddr].charset;
>     priv->mag[magAddr].pt->subpagenum=(d[2]|(d[3]<<4)|(d[4]<<8)|(d[5]<<12))&0x3f7f;
>     priv->mag[magAddr].pt->pagenum=(magAddr<<8) | d[0] | (d[1]<<4);
>     priv->mag[magAddr].pt->flags=( d[6] | (d[7]<<4));

This (and thus the rest) is wrong.
According to specification language bits are 2-4.
Bit 1 is for selecting between serial/parallel transmition mode.
Language is selecting using these three bits togather with G0 laguage
code transmitted in X/28/0 packet.

As i said before, i've made patch for proper language selection.
I'll post it here soon (after commiting char substitution patch).

-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719



More information about the MPlayer-dev-eng mailing list