2016-01-14, 14:40
Having svg support with animations would be superb!
Is that like a mammoth task to put in?
Is that like a mammoth task to put in?
(2016-01-14, 18:46)grumpygamer Wrote: I think SVG WOULD be better, but am not sure what level of interaction we can have out of a browser context.
SVG has it's own attributes for animation, would be able to use them with the renderer kodi uses?
Here's what I found for c++?
https://github.com/memononen/nanosvg
(2016-01-14, 21:30)ironic_monkey Wrote: I have already drafted image decoder addons. No support for animated as the only one in there is gif and it was a bit too convolved to read a generic api from. If retro needs this i can put in some more effortYes please do! Two tumbs up! Even with only a library for APNG (Animated PNG) image decoding with a seperate library in addition to the existing libgif you would at least have two image decoders addons for such an API.
(2016-01-14, 18:15)garbear Wrote: Know of any libraries that can decode APNG or SVG?Yes you have apngasm (libapngasm) which is a C++ GPL compatible zlib 'as is' licensed library for APNGs (Animated PNGs), see:
(2016-01-14, 19:08)garbear Wrote: We'll need a more established library to include in Kodi. We've been bitten before by libraries that were essentially abandoned upstream, leading to a maintenance headache.The apngasm work group is a FOSS project that recently got great respons promoting this free and open source APNG library via Kickstarter:
(2016-01-14, 18:15)garbear Wrote: We have APNG support via FFMpeg, but it can only decode a single frame, so animations can't be shown.
CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --disable-pulse --disable-projectm --disable-optical-drive --disable-dvdcss --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --disable-openmax --disable-rsxs --prefix=/usr
pi@RetroPlayer ~ $ jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (GPIO Controller 1) has 2 axes (X, Y)
and 8 buttons (BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR).
05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: CJoystickInterfaceLinux::Initialize: opening joystick /dev/input/js1
05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: CJoystickInterfaceLinux::Initialize: opening joystick /dev/input/js0
05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: Initialized joystick 0: "GPIO Controller 2", axes: 2, hats: 0, buttons: 8
05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: Initialized joystick 1: "GPIO Controller 1", axes: 2, hats: 0, buttons: 8
(2016-01-20, 07:29)N3MIS15 Wrote: I'm trying to get GPIO controllers working on pi 2 but not having much luck. Kodi seems to detect the controllers but button presses are not being captured.
This is my first time attempting to compile kodi on pi so my lack of compile skills may be to blame.
I compiled the retroplayer-15.2 branch.
My configure options:
Code:CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --disable-pulse --disable-projectm --disable-optical-drive --disable-dvdcss --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --disable-openmax --disable-rsxs --prefix=/usr
The GPIO controllers are set up as per: https://github.com/recalbox/mk_arcade_joystick_rpi and work fine with jstest.
Here is the log (i pressed all buttons on js0 but cant see any presses in the log). http://xbmclogs.com/pyd0k1ji5
static const short mk_arcade_gpio_btn[] = {
BTN_START, BTN_SELECT, BTN_A, BTN_B, BTN_TR, BTN_Y, BTN_X, BTN_TL
};
static const short mk_arcade_gpio_btn[] = {
0, 1, 2, 3, 4, 5, 6, 7
};
(2016-01-20, 07:29)N3MIS15 Wrote: EDIT: I also noticed that js0 is being detected as GPIO Controller 2. In jstest, js0 is definatly GPIO Controller 1.
Code:pi@RetroPlayer ~ $ jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (GPIO Controller 1) has 2 axes (X, Y)
and 8 buttons (BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR).
Code:05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: CJoystickInterfaceLinux::Initialize: opening joystick /dev/input/js1
05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: CJoystickInterfaceLinux::Initialize: opening joystick /dev/input/js0
05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: Initialized joystick 0: "GPIO Controller 2", axes: 2, hats: 0, buttons: 8
05:17:04 T:1964404736 INFO: AddOnLog: Joystick Support: Initialized joystick 1: "GPIO Controller 1", axes: 2, hats: 0, buttons: 8