Beiträge von aalex77
-
-
-
-
I got it!!
I did it in this wayCode
Alles anzeigenvoid eZapMain::getScreenInfo() +{ + eString vformat="n/a"; + FILE *bitstream=0; + if (Decoder::current.vpid!=-1) + bitstream=fopen("/proc/bus/bitstream", "rt"); + if (bitstream) + { + char buffer[100]; + int xres=0, yres=0, aspect=0, framerate=0; + while (fgets(buffer, 100, bitstream)) + { + if (!strncmp(buffer, "H_SIZE: ", 9)) + xres=atoi(buffer+9); + if (!strncmp(buffer, "V_SIZE: ", 9)) + yres=atoi(buffer+9); + if (!strncmp(buffer, "A_RATIO: ", 9)) + aspect=atoi(buffer+9); + if (!strncmp(buffer, "F_RATE: ", 8)) + framerate=atoi(buffer+8); + } + fclose(bitstream); + vformat.sprintf("%dx%d ", xres, yres); + switch (aspect) + { + case 1: + vformat+="square"; break; + case 2: + vformat+="4:3"; break; + case 3: + vformat+="16:9"; break; + case 4: + vformat+="20:9"; break; + } + switch(framerate) + { + case 1: + vformat+=", 23.976 fps"; + break; + case 2: + vformat+=", 24 fps"; + break; + case 3: + vformat+=", 25 fps"; + break; + case 4: + vformat+=", 29.97 fps"; + break; + case 5: + vformat+=", 30 fps"; + break; + case 6: + vformat+=", 50 fps"; + break; + case 7: + vformat+=", 59.94 fps"; + break; + case 8: + vformat+=", 80 fps"; + } + } + + screeninfo->setText(vformat); + +}
Code
Alles anzeigen+void eZapMain::showSatInfo() +{ + string t; + int freq=eFrontend::getInstance()->transponder->satellite.frequency; + int pol=eFrontend::getInstance()->transponder->satellite.polarisation ? 'V' : 'H'; + int sr=eFrontend::getInstance()->transponder->satellite.symbol_rate; + int fec_nr=eFrontend::getInstance()->transponder->satellite.fec; + switch (fec_nr) + { + case 1: + t="1/2"; + break; + case 2: + t="2/3"; + break; + case 3: + t="3/4"; + break; + case 4: + t="5/6"; + break; + case 5: + t="7/8"; + break; + default: + t=""; + } + fec->setText(t); + freq_pol->setText(eString().sprintf("%d", freq/1000)+" "+eString().sprintf("%c", pol)); + srate->setText(eString().sprintf("%d", sr/1000)); +} +
Code
Alles anzeigenvoid eZapMain::showInfobar(bool startTimeout) { + } + if(!satTimer) + { + satTimer=new eTimer(eApp); + satTimer->start(1000,false); + CONNECT(satTimer->timeout,eZapMain::showSatInfo); + } + if(!infoSatTimer) + { + infoSatTimer=new eTimer(eApp); + infoSatTimer->start(1000,false); + CONNECT(infoSatTimer->timeout,eZapMain::getScreenInfo); + + } + + /* SNR,AGC DISPLAY end */ +
Code
Alles anzeigenvoid eZapMain::hideInfobar() { + + if(satTimer) + { + delete satTimer; + satTimer=0; + } + if(infoSatTimer) + { + delete infoSatTimer; + infoSatTimer=0; + } + }
Thanks a lot for your hint!!
Regards -
-
I do it in this way
Codeif(!infoSatTimer) { infoSatTimer=new eTimer(eApp); infoSatTimer->start(1000,false); CONNECT(infoSatTimer->timeout,eZapMain::showScreenInfo); }
and it's work, showSatInfo is declared as
but when i try to do a scan of the satellites sometimes I can't see the signals bars and engima crashes...
Thanks anyway
Regards -
I got this error
Zitatif powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/home/alessandro/dream/0405/driver/include -I/home/alessandro/dream/0405/driver/include -fno-exceptions -fno-rtti -D_REENTRANT -DDISABLE_LIRC -DENABLE_KEYBOARD -DENABLE_EXPERT_WEBIF -DENABLE_PRIVATE_EPG -DUSE_EXTERNAL_FLASHTOOL -DDEBUG -I/home/alessandro/dream/0405/root/cdkroot/include/freetype2 -I/home/alessandro/dream/0405/root/cdkroot/include -I/home/alessandro/dream/0405/root/cdkroot/include -I/home/alessandro/dream/0405/root/cdkroot/include/tuxbox -I/home/alessandro/dream/0405/root/cdkroot/include -I/home/alessandro/dream/0405/driver/include -I/home/alessandro/dream/0405/root/cdkroot/include/tuxbox -I/home/alessandro/dream/0405/root/cdkroot/include/libpng12 -I/home/alessandro/dream/0405/root/cdkroot/lib/sigc++-1.2/include -I/home/alessandro/dream/0405/root/cdkroot/include/sigc++-1.2 -I/home/alessandro/dream/0405/root/cdkroot/include/tuxbox/xmltree -Wall -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE -MT enigma_main.o -MD -MP -MF ".deps/enigma_main.Tpo" -c -o enigma_main.o enigma_main.cpp; \
then mv -f ".deps/enigma_main.Tpo" ".deps/enigma_main.Po"; else rm -f ".deps/enigma_main.Tpo"; exit 1; fi
enigma_main.cpp: In member function `void eZapMain::showInfobar(bool)':
enigma_main.cpp:3412: error: no matching function for call to `bind(SigC::Slot1<void, const eServiceEvent&>, <unknown type>)'
/home/alessandro/dream/0405/root/cdk/lib/gcc/powerpc-tuxbox-linux-gnu/3.4.4/../../../../powerpc-tuxbox-linux-gnu/include/sys/socket.h:111: note: candidates are: int bind(int, const sockaddr*, socklen_t)
/home/alessandro/dream/0405/root/cdkroot/include/sigc++-1.2/sigc++/bind.h:164: note: SigC::Slot0<R> SigC::bind(const SigC::Slot1<R, C1>&, A1) [with A1 = int (eWidget::*)(const eWidgetEvent&), R = void, C1 = const eServiceEvent&]
make[4]: *** [enigma_main.o] Error 1
make[4]: Leaving directory `/home/alessandro/dream/0405/apps/tuxbox/juliet/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/alessandro/dream/0405/apps/tuxbox/juliet'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/alessandro/dream/0405/apps/tuxbox/juliet'
make[1]: *** [.enigma] Error 2
make[1]: Leaving directory `/home/alessandro/dream/0405/cdk'
make: *** [rebuild-flash] Error 2
alessandro@ubuntu:~/dream/0405/cdk$any idea??
-
I croos-compiled the busybox 1.1.1 with the patches, but the network seem doesn't work
Even with my last cvs (02-05) the network doesn't work, may be a bug in the configuration file?
Thanks -
Zitat
Original von dcdead
Don't do it with a connect, but do it like this in showInfobar(bool startTimeout):eTimer *infoTimer;
if (!infoTimer)
{
infoTimer = new eTimer(eApp);
infoTimer->start(1000, false);
CONNECT_2_1(infoTimer->timeout, eZapMain::showScreenInfo, event);
}Really kind, this afternoon i will try!!
Regards! -
It's work but the box seem to be instable, could tell me where is the best place to call the function that set the value in the skin?
my function is like that
Code
Alles anzeigenvoid eZapMain::showScreenInfo(const eServiceEvent &event) { string t; int freq=eFrontend::getInstance()->transponder->satellite.frequency; int pol=eFrontend::getInstance()->transponder->satellite.polarisation ? 'V' : 'H'; int sr=eFrontend::getInstance()->transponder->satellite.symbol_rate; int fec_nr=eFrontend::getInstance()->transponder->satellite.fec; switch (fec_nr) { case 1: t="1/2"; break; case 2: t="2/3"; break; case 3: t="3/4"; break; case 4: t="5/6"; break; case 5: t="7/8"; break; default: t=""; } fec->setText(t); freq_pol->setText(eString().sprintf("%d", freq/1000)+" "+eString().sprintf("%c", pol)); srate->setText(eString().sprintf("%d", sr/1000)); }
and i call it in this way
Codevoid eZapMain::init_main() { .................... CONNECT(eServiceInterface::getInstance()->serviceEvent, eZapMain::showScreenInfo);
Thank you
-
-
Hello, how could i get fec info from enigma and make it suitable to be shown on the skin?
To get frequency and srate info i did in this wayCodeint freq=eFrontend::getInstance()->transponder->satellite.frequency; int pol=eFrontend::getInstance()->transponder->satellite.polarisation ? 'V' : 'H'; int sr=eFrontend::getInstance()->transponder->satellite.symbol_rate; freq_pol->setText(eString().sprintf("%d", freq/1000)+" "+eString().sprintf("%c", pol)); srate->setText(eString().sprintf("%d", sr/1000));
Thank you -
Zitat
Originally posted by wolpi
Its exact the same poblem I have building it on a x64 architecture ....how did you resolve it?
-
Hello, i would like to know if it's possible to use the eTestPicture class to test my own colors, hence if does exist a way to pass the color value (in hex) as an argumet.
thank you!
Regards -
No, nothing with dreambox-image*
...I'm using kanotix, may be there are some problems with this distro??
Although I can compile an image for 7020 without problems...
Regards -
Zitat
Originally posted by pellix
Can you post this, please?tail build/tmp/work/dreambox-image-1.0-r0/temp/log.do_rootfs.*
The folder dreambox-image-1.0-r0 does not exsit...
-
Hello, I just try to compile an image for 7025 dreambox but i still have this errors since i start to try
Code
Alles anzeigenIn file included from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/x86_64-linux/include/python2.4/Python.h:55, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/actions/action.h:10, from action.cpp:1: /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/x86_64-linux/include/python2.4/pyport.h:612:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." In file included from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/include/sigc++-1.2/sigc++/node.h:21, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/include/sigc++-1.2/sigc++/slot.h:28, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/include/sigc++-1.2/sigc++/sigc++.h:26, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/include/libsig_comp.h:4, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/python/connections.h:4, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/base/ebase.h:12, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/base/message.h:4, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/gdi/grc.h:16, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/gui/ewidget.h:4, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/gui/einput.h:4, from /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/actions/actionids.h:1, from action.cpp:4: /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/lib/sigc++-1.2/include/sigcconfig.h:35:1: warning: "PACKAGE" redefined <command line>:7:1: warning: this is the location of the previous definition /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/lib/sigc++-1.2/include/sigcconfig.h:41:1: warning: "PACKAGE_NAME" redefined <command line>:2:1: warning: this is the location of the previous definition /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/lib/sigc++-1.2/include/sigcconfig.h:44:1: warning: "PACKAGE_STRING" redefined <command line>:5:1: warning: this is the location of the previous definition /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/lib/sigc++-1.2/include/sigcconfig.h:47:1: warning: "PACKAGE_TARNAME" redefined <command line>:3:1: warning: this is the location of the previous definition /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/lib/sigc++-1.2/include/sigcconfig.h:50:1: warning: "PACKAGE_VERSION" redefined <command line>:4:1: warning: this is the location of the previous definition /home/alessandro/dreambox/sviluppo/dm7025/build/tmp/staging/mipsel-linux/lib/sigc++-1.2/include/sigcconfig.h:89:1: warning: "VERSION" redefined <command line>:8:1: warning: this is the location of the previous definition make[3]: *** [action.o] Error 1 make[3]: Leaving directory `/home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib/actions' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/alessandro/dreambox/sviluppo/dm7025/build/tmp/work/enigma2-1.0cvs20060308-r0/enigma2' FATAL: oe_runmake failed
Someone can help me??
Regards -
Hello!!
I wish to try neutrino...just to learn something new but I can't find anything that help me on the net
Regards!! -
Hello, does exit some how-to to compile a neutrino image running on dreamox? I just found one but it doesn't work on dreambox, only with dbox2.
Thanks