Posts: 11,582
Joined: Feb 2008
Reputation:
84
davilla
Retired-Team-XBMC Developer
Posts: 11,582
loop over /dev/input/event%d, open, then check for a keyboard. When found, grab it. Then start a thread that reads from it, when you get a key event, translate it into an xbmc event and into g_application.OnEvent(event) using a MessagePump. See WinEventsXXX.cpp and friends.
Posts: 9
Joined: Apr 2011
Reputation:
0
Don't get any of the XBMC packages. Everything you need will either be in the source or will be generated from the source. Unfortunately since there is no XBMC arm package in the ubuntu PPA you cannot do an apt-get build-deps, so it does become a bit of a trial-and-error exercise.
Posts: 9
Joined: Apr 2011
Reputation:
0
Any idea on how to improve the periodic packet loss and remove the jerkiness from the picture?
I am more than happy to tinker and try things out if people will point me to the right place to look. I do know how to find my way round C/C++ code.
Posts: 9
Joined: Apr 2011
Reputation:
0
top is reporting that both CPUs are running at round 43%,neither even going above 60%. I will be surprised if the issue is a shortage of cycles. I am guessing that the issue is the rate that either the graphics stack of multi-media stack consume the data. This leads to jerky motion of the picture which makes viewing unpleasant.
Although the Pandaboard should be able to do 1080p HDMI, my main issue is not packet loss, it is the periodic spurt of the loss of round 10 frames around every 10 seconds.
Since data is being consumed at a smaller number of frames per second than required, the buffer gets filled up. This seems to trigger a sudden flush of the buffer resulting in a large number of frames being lost in a very short period of time.
I am happy to help debug this issue but I am totally unfamiliar with the code. So any hints on where to look will be useful. I am also happy to provide logs if this will be useful (just need to know how to do this).
Thanks guys for the effort,much appreciated.
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
if you compile xbmc/master you will use gles shaders, while the pandaboard is real fast with the gpu it seems like they have some problems with the X integration, this is most likely whats hindering the performance.
The panda plays 1080p bunny without any troubles for me (not in xbmc) but thats when it uses the hw decoder (which isn't implemented in xbmc for the panda just yet).
Whats needed for presentation is most likely merge in the omap overlay stuff I did in my gsoc, that made it possible to present in 720p (SD clip upscaled) very smoothly on the beagle even.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 9
Joined: Apr 2011
Reputation:
0
Is there any way to run XBMC outside X (since it does effectively take over the desktop)? Also what application were you using to play the 1080p video? I will also be interested in your GSOC patch and having a go at getting it to compile.
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
xbmc uses X to create the egl surfaces and setup the gles context, it also uses it for input. So you'd need to patch that in order to get it to run outside X, it is for sure possible, just noone have done it yet.
Getting it to start without X should be the first part, then get it to pull input events is the next.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 178
Joined: Oct 2008
Reputation:
0
McGeagh
Team-XBMC ARM Developer
Posts: 178
2011-04-18, 13:37
(This post was last modified: 2011-04-18, 14:25 by McGeagh.)
EDIT: I looked into the DrawQuad patch, and it was commited, just the trac didnt reflect this. it does now.
We do appreciate any and all patches you can provide us. Thanks
also, i have written some VFPv3 code for the mathutil functions, but havent had a chance to test it to make sure it works (mainly because i dont have a board with vfpv3 setup). If anyone does and would like to be the guinea pig, that would be very helpful.
phusho, your version looks like VFPv2 to me, so please keep them. having the different versions will ensure backward compatibility.
I have not looked into nvidias own VFPv3-D16 crap, nor NEON yet, but both would be very good to have eventually.