[mythtv] Re: Teletext [PATCH]
Martin Moeller
martin at martinm-76.dk
Sat Jul 26 11:23:10 EDT 2003
I finally seem to get some results here, although I am a bit puzzled why
it would work now. Off by one error?
I added debug statements in ShowText at first altering nothing, just
spitting out values. I found it odd that *inpos was always either
represented as '' or '0' and I didn't get any texts..
I then changed one of my debug lines just before the while (*inpos) to:
printf("3 - inpos : %x, *inpos : %x, (*inpos)++ : %x \n", inpos, *inpos,
(*inpos)++);
Sample output after that:
Got a teletext page!
1 - inpos : 87963e8 , *inpos :
2 - pagenr : 3990000, vbipagenr : 3990000
3 - inpos : 87963ec, *inpos : 0, (*inpos)++ : 0
4 - Correct page - Text loop.
DR S 21:00:07
Got a teletext page!
1 - inpos : 8796560 , *inpos :
2 - pagenr : 3990000, vbipagenr : 3990000
3 - inpos : 8796564, *inpos : 0, (*inpos)++ : 0
4 - Correct page - Text loop.
DR S 21:00:07
4 - Correct page - Text loop.
Den d dsd mte dansk-marokkaner
4 - Correct page - Text loop.
har fortalt, at han blev rettroende
4 - Correct page - Text loop.
muslim i en k benhavnsk moske.
Got a teletext page!
1 - inpos : 87966d8 , *inpos :
2 - pagenr : 3990000, vbipagenr : 3990000
3 - inpos : 87966dc, *inpos : 0, (*inpos)++ : 0
4 - Correct page - Text loop.
DR S 21:00:12
Got a teletext page!
1 - inpos : 8796850 , *inpos :
2 - pagenr : 3990000, vbipagenr : 3990000
3 - inpos : 8796854, *inpos : 0, (*inpos)++ : 0
4 - Correct page - Text loop.
DR S 21:00:13
4 - Correct page - Text loop.
Hvert r stj les tusindvis af f r
4 - Correct page - Text loop.
fra danske marker. Landm ndene er
4 - Correct page - Text loop.
skr mte. Politiet har ingen spor.
Got a teletext page!
Pretty weird. Well, it seems to work fine. The timing may be a little
off, but it is pretty close. Now to see how I make the teletext bigger
on screen. The subtitles are display about 1/3 of the screen up from the
bottom. I'd like to have them lower than that...
lør, 2003-07-26 kl. 01:21 skrev Martin Moeller:
> Okay, I guess I know why I haven't seen the subtitles.
>
> I am pretty sure this constant is my problem:
> vbipagenr = 0x08880000;
>
> The pages I need to view in the cases I have so far are 333 and 399.
>
> The above value seems to be in hex, so what does it really correspond
> to? I assume it's not simply decimal '888' it ends up as?
> Can someone tell me how this should look for '333' and '399'?
>
> I can't don the check completely since many channels have more than one
> subtitle page... Maybe an extra field in the channel table would still
> be a good idea? Defaulting either to 888 or maybe 0?
>
> I'll run a few tests on the 3 files I have to see how far I can get.
>
> /Martin.
--
Martin Moeller <martin at martinm-76.dk>
More information about the mythtv-dev
mailing list