Posts: 258
Joined: Jul 2008
Reputation:
5
2013-05-03, 17:31
(This post was last modified: 2013-05-03, 17:38 by flyingrat.)
PR: "Too invasive a change compared to the handful of people it benefits."
I don't get it. Is "the handful of people it benefits" referring to something else than the RPi regarding to how many units that have been sold so far??
Posts: 26
Joined: May 2013
Reputation:
0
brooc
Junior Member
Posts: 26
Is there a plan to incorporate the fix to RenderCapture so that it will work on the RPi?
Could someone please explain the required change or where I could read about it so I can implement it myself?
Posts: 26
Joined: May 2013
Reputation:
0
brooc
Junior Member
Posts: 26
Could you please elaborate.
I would first like to create a standalone app that will capture the frames directly from the hardware accelerator.
Do you know if this is possible and how?
I looked at the hello_video.c example but it seems that this code decodes the video stream from the file itself not by capturing frames from GPU.
Am I wrong?
Any help would be highly appreciated!
Posts: 26
Joined: May 2013
Reputation:
0
brooc
Junior Member
Posts: 26
2013-07-05, 11:48
(This post was last modified: 2013-07-05, 11:49 by brooc.)
I think I figured out the addon (and what parts of the interface are needed)...
What do I define to make sure that my rendercapture interface is compiled when compiling for RPi?
Posts: 16,946
Joined: Feb 2011
Reputation:
256
if defined(TARGET_RASPBERRY_PI)
if you mean that?
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 26
Joined: May 2013
Reputation:
0
brooc
Junior Member
Posts: 26
I have implemented my code into the RenderCapture interface and it works with the boblight addon.
I'm now facing a problem with interval change of LED colors.
There is a huge delay in the color change.
Placed some debug code to see the calls to the different functions in the RenderCapture interface and I see this sequence of calls: BeginRender --> GetBuffer --> GetBuffer --> EndRender.
I implemented my code as was implemented for GL/GLES, meaning:
BeginRender - only creates the buffer for the frame (Which essentially after the first call does nothing basically...)
GetBuffer - Also does nothing except for returning the prefilled buffer (The is literally on a return statement there...)
EndRender - This is where the magic happens, here I take the snapshot and save it into the buffer. I also have to swap between Red and Blue because DispmanX only supports RGB.
This last point brings me to my next point that I think that the boblight addon should call getImageFormat and take that into consideration. This is a fairly simple change to implement...
Memphiz - Has this addon been used on other systems and worked well? I am really confused as to why I get this sequence of function calls... I even tried moving the actual rendering into the GetBuffer function but nothing has changed...
Posts: 26
Joined: May 2013
Reputation:
0
brooc
Junior Member
Posts: 26
Thanks for the quick reply...
Another thing that should be addressed is that when I set the addon configuration to custom it stops working.
Only when I use slow or fast the addon works...
I am working on pushing my code into a fork of XBMC so that you all can review the code and later pull it into the mainline...
Right now I'm working on an OE branch...