Active Topics

 



Notices


Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#21
Relevant parts from the N800 port (ripped from the diff) to do this:

Code:
mplayer-1.0rc1/mplayer.c:
+#ifdef HAVE_MAEMO
+#include <libosso.h>
+
+extern int vo_null_active;
+
+// display blanking prevention for Nokia 770/N800
+void *maemo_screensaver_heartbeat()
+{
+    static unsigned int time_last;
+    static osso_context_t *ossocontext = NULL;
+    
+    if (vo_null_active) return;
+    
+    unsigned int time = GetTimerMS();
+    
+    if (!ossocontext) {
+        ossocontext = osso_initialize("mplayer-cli", VERSION, 0, NULL);
+        time_last = time;
+        osso_display_state_on(ossocontext);
+        osso_display_blanking_pause(ossocontext);
+    }
+    
+    if ((time - time_last) > 55000)
+    {
+        time_last = time;
+        osso_display_state_on(ossocontext);
+        osso_display_blanking_pause(ossocontext);
+    } else if ((time - time_last) > 50000) {
+        time_last = time;
+        osso_display_blanking_pause(ossocontext);
+    }
+}
+#endif
+
+#ifdef HAVE_MAEMO
+if (sh_video) {
+  current_module="stop_maemo_screensaver";
+  maemo_screensaver_heartbeat();
+  current_module=NULL;
+}
+#endif
+
   // DVD sub:
 if(vo_config_count && vo_spudec) {
The functions used are still the same in Fremantle (I have osso_display_blanking_pause() attached to a GSourceFunc function and it still works in Transmission running on Fremantle to stop the display from being blanked).
 

The Following 14 Users Say Thank You to qwerty12 For This Useful Post:
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#22
Originally Posted by qole View Post
So there's no way to disable screen darkening / blanking in the basic mplayer? Hmm. That's a requirement; a GUI / frontend is not.
Ok I added some code from old N800 port and uploaded a new package to extras-devel. It should no longer dim the display.

I am sure mplayer still needs video decoding optimizations for N900 but that goes beyond my knowledge. But this is a start...

Maybe there is someone in the community who has the knowledge and would like to take a look
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#23
Originally Posted by sampppa View Post
I am sure mplayer still needs video decoding optimizations for N900 but that goes beyond my knowledge...
I saw some commits over in the VLC git tree about NEON optimisations. I guess that's what is needed here, too...
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#24
Make sure NEON is enabled when building. configure support might be missing, so it's worth doublechecking. As long as you're building a recent mplayer and not some prehistoric rc1 or ancient rc2 or rc3 there should be a great deal of Neon code in there..


Trying to get MPlayer recent built for Diablo with vfp myself, struggling with the ancient toolchain not knowing about all vfp instructions
 

The Following 3 Users Say Thank You to shadowjk For This Useful Post:
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#25
Ok, my source was from late august and it doesnt have anything mentioning NEON. I checked out the latest SVN version and there are NEON, so i will try to build this...
 
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#26
Well it seems that Maemo5 sdk has too old binutils...Assembler doesnt recognize NEON instructions
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#27
Wow, how frustrating!
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#28
would it be ok for extras to use a newer toolchain?
 
Posts: 42 | Thanked: 4 times | Joined on Sep 2009
#29
What optimal settings for N900 when converting a 720p HD movie in .mkv format?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#30
It's a bit early to tell (apparently there is room for quite a bit of optimizations/extensions).
 

The Following User Says Thank You to attila77 For This Useful Post:
Reply

Tags
mafw, mediabox, mplayer, mytube


 
Forum Jump


All times are GMT. The time now is 14:03.