Zobrazují se odpovědi 1 až 9 z 9

Téma: snr/agc/ber in your skin... here is a solution

  1. #1
    Registrovaný uživatel
    Založen
    15.11.2004
    Příspěvky
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0

    Red face snr/agc/ber in your skin... here is a solution

    Hello guys,

    so.. here is a litte help for all of you searching for snr/agc/ber in your skin..
    it is a working version... but infact you should use your own brain.. so it is only the code for the "static" version.. the "dynamic" isnt much more harder.. lol

    enigma_main.cpp - changes required in eZapMain::eZapMain() and eZapMain::showInfobar():
    Kód:
    diff -Naur tuxbox-rel/apps/tuxbox/enigma/src/enigma_main.cpp tuxbox-my/apps/tuxbox/enigma/src/enigma_main.cpp
    --- tuxbox-rel/apps/tuxbox/enigma/src/enigma_main.cpp
    +++ tuxbox-my/apps/tuxbox/enigma/src/enigma_main.cpp
    @@ -1626,6 +1626,15 @@
     	lcdmain.show();
     #endif
     
    +// SNR Patch by luke_s & spacy
    +	ASSIGN(p_snr, eProgress, "snr");
    +	ASSIGN(p_agc, eProgress, "agc");
    +	ASSIGN(p_ber, eProgress, "ber");
    +	ASSIGN(lsnr_num, eLabel, "snr_num");
    +	ASSIGN(lsync_num, eLabel, "agc_num");
    +	ASSIGN(lber_num, eLabel, "ber_num");
    +// SNR Patch by luke_s & spacy
    +
     	ASSIGN(ChannelNumber, eLabel, "ch_number");
     	ASSIGN(ChannelName, eLabel, "ch_name");
     
    @@ -2868,6 +2877,18 @@
     
     void eZapMain::showInfobar()
     {
    +// SNR Patch by luke_s and spacy
    +	int snr=eFrontend::getInstance()->SNR()*100/65536,
    +		agc=eFrontend::getInstance()->SignalStrength()*100/65536,
    +		ber=eFrontend::getInstance()->BER();
    +	p_agc->setPerc((agc));
    +	p_snr->setPerc((snr));
    +	p_ber->setPerc((int)log2(ber));
    +	lsnr_num->setText(eString().sprintf("%d%%",snr));
    +	lsync_num->setText(eString().sprintf("%d%%",agc));
    +	lber_num->setText(eString().sprintf("%d",ber));	
    +// SNR Patch by luke_s and spacy
    +
     	if ( !isVisible() && eApp->looplevel() == 1 &&
     			(
     				!currentFocus ||

    enigma_main.h:
    Kód:
    diff -Naur tuxbox-rel/apps/tuxbox/enigma/src/enigma_main.h tuxbox-my/apps/tuxbox/enigma/src/enigma_main.h
    --- tuxbox-rel/apps/tuxbox/enigma/src/enigma_main.h
    +++ tuxbox-my/apps/tuxbox/enigma/src/enigma_main.h
    @@ -325,7 +325,7 @@
     	enum { pathBouquets=1, pathProvider=2, pathRecordings=4, pathPlaylist=8, pathAll=16, pathRoot=32, pathSatellites=64 };
     	enum { listAll, listSatellites, listProvider, listBouquets };
     private:
    -	eLabel *ChannelNumber, *ChannelName, *Clock, 
    +	eLabel *ChannelNumber, *ChannelName, *Clock, *lsnr_num, *lsync_num, *lber_num,
     		*EINow, *EINext, *EINowDuration, *EINextDuration,
     		*EINowTime, *EINextTime, *Description, *fileinfos,
     		*ButtonRedEn, *ButtonRedDis,
    @@ -356,7 +356,7 @@
     #else
     	eProgress *Progress;
     #endif
    -	eProgress *VolumeBar;
    +	eProgress *VolumeBar, *p_snr, *p_agc, *p_ber;
     	eMessageBox *pMsg, *pRotorMsg;
     
     	eLock messagelock;

    skin:
    ok.. here no diff.. its up to u where u want it... lol
    you need following lines... pls be free 2 change the XXX:YY with the position where you need it..
    Kód:
    <eLabel text="SNR:" position="XXX:YY" size="40:18" name="snr_" font="Nimbus;16" />
    <eLabel text="AGC:" position="XXX:YY" size="40:18" name="agc_" font="Nimbus;16" />
    <eLabel text="BER:" position="XXX:YY" size="40:18" name="agc_" font="Nimbus;16" />
    
    <eLabel position="XXX:YY" size="35:18" name="snr_num" font="Nimbus;16" />
    <eLabel position="XXX:YY" size="35:18" name="agc_num" font="Nimbus;16" />
    <eLabel position="XXX:YY" size="35:18" name="ber_num" font="Nimbus;16" />
    
    <eProgress position="XXX:YY" size="75:9" name="snr" foregroundColor="mittel+4" border="1" />
    <eProgress position="XXX:YY" size="75:9" name="agc" foregroundColor="mittel+4" border="1" />
    <eProgress position="XXX:YY" size="75:9" name="ber" foregroundColor="mittel+4" border="1" />

    greetinx from Luke_S
    from the DBF Image Team

  2. #2
    Registrovaný uživatel
    Založen
    26.03.2002
    Příspěvky
    704
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Hi

    Yes nice
    But dynamic versinon in SF img is best

    greetinx from Jirka
    from the SF Image Team

  3. #3
    Registrovaný uživatel
    Založen
    15.11.2004
    Příspěvky
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    hey JirkaS..

    shure the dynanic is better... we also know how to do.. but as u know "don't make it toooooo easy" for the guys out there... infact it is only a loop or a timer missing... lol

    greetinx from good old germany..
    we hope it was ok for u and your team that we posted this tiny patch..

    we think the time was good and the world was waiting for it...

    i think it's a good time for some changes in the dm7000 world

  4. #4
    Registrovaný uživatel
    Založen
    26.03.2002
    Příspěvky
    704
    Post Thanks / Like
    Downloads
    0
    Uploads
    0


    But SF Team make not img for DM7000.
    Img from Ru Dream is very nice and stabil img, there's no need another img for 7000.

    Ru is No1

    Jirka

    Es moglich auch Deutsch

    Pozdrav z Ceska

  5. #5
    Registrovaný uživatel
    Založen
    15.11.2004
    Příspěvky
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    ja ru ist gut.. keine frage.. nur was wird aus ru ohne alexvrs ??? abwarten..
    und es ist schade das es von SF keine 7000er images mehr gibt.. sehr schade...

  6. #6
    Registrovaný uživatel
    Založen
    26.03.2002
    Příspěvky
    704
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Ich weiss nicht aber ich meine sie warten new model dreambox.
    Noch eine frage was ist mit terminator aus dbf forum ? Ich probiere letzte VT5 und es nicht schlecht fur newbie. Stabil und funtzt sofort.

    Ich schreibe dir meine ICQ in PN DBF

    Jirka

  7. #7
    Registrovaný uživatel
    Založen
    15.11.2004
    Příspěvky
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    hey jirka.. warum kann ich dir keine pn schicken ???
    wenn du magt schick mir bitte mal ne mail..

  8. #8
    Registrovaný uživatel
    Založen
    15.11.2004
    Příspěvky
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    hast du mal unser dbf2 für die kleine 5620 probiert ??? funzt sogar aufnahemn über nfs mit derdvb infobar.. wie bei der grossen... schaus dir mal an..

  9. #9
    Registrovaný uživatel
    Založen
    15.11.2004
    Příspěvky
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    @JirkaS

    sooo bin ja auch hier geregggt. wollt mal hallo sagen..

    der Terminator ist seit heute im Copyboard (weisst ja welches ich meine) Image Creator und Vip Member geworden. er wollt ja keine Images mehr im DBF machen. kinderkram da. echt...
    aber bringt ne VT6 im DBF raus.. naja. ich sag da nichts mehr zu..


    euer neues 5620 Image ist echt klasse. habs grad drauf. suuper.... ;-)
    vorallem addons aufs nfs.. geil...


    Viele Grüße

    Spacy

Informace o tématu

Users Browsing this Thread

Toto téma si právě prohlíží 1 uživatelů. (0 registrovaných a 1 anonymních)

Podobná témata

  1. Change skin
    Založil antas v sekci fóra DreamBox - Firmware/Software/Hardware
    Odpověďmi: 2
    Poslední příspěvek: 12.04.2004, 23:55

Štítky pro toto téma

Záložky

Záložky

Pravidla přispívání

  • Nemůžete zakládat nová témata
  • Nemůžete zasílat odpovědi
  • Nemůžete přikládat přílohy
  • You may not edit your posts
  •