Skip to contentSkip to conversation

package/kodi: Use i.MX VPU (video codec) when available

PATCH New julien.boibessot at free.fr 2 participants 2 messages Mar 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/kodi: Use i.MX VPU (video codec) when available

From: Julien Boibessot <[email protected]>

Tested on i.MX6.

---
 package/kodi/Config.in |    5 +++++
 package/kodi/kodi.mk   |    5 +++++
 2 files changed, 10 insertions(+)
package/kodi/Config.in +5 -0
index 1bc8b15..74aeb72 100644
@@ -105,6 +105,11 @@ menuconfig BR2_PACKAGE_KODI
 
 	  http://kodi.tv
 
+	  To have hardware accelerated video decoding on following platforms,
+	  you will also have to select related package(s):
+	  * RPi: rpi-firmware
+	  * i.MX6: libfslvpuwrap
+
 if BR2_PACKAGE_KODI
 
 config BR2_PACKAGE_KODI_ALSA_LIB
package/kodi/kodi.mk +5 -0
index 01c7e80..956c3b6 100644
@@ -54,6 +54,11 @@ KODI_CONF_ENV += INCLUDES="-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads
 	LIBS="-lvcos -lvchostif"
 endif
 
+ifeq ($(BR2_PACKAGE_LIBFSLVPUWRAP),y)
+KODI_DEPENDENCIES += libfslvpuwrap
+KODI_CONF_OPTS += --enable-codec=imxvpu
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
 KODI_CONF_OPTS += --enable-libcap
 KODI_DEPENDENCIES += libcap
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 package/kodi: Use i.MX VPU (video codec) when available

Julien,

package/kodi/Config.in menuconfig BR2_PACKAGE_KODI · line 111

Quoted 4 lines · julien.boibessot at free.fr
package/kodi/Config.in +4 -0
+	  To have hardware accelerated video decoding on following platforms,
+	  you will also have to select related package(s):
+	  * RPi: rpi-firmware
+	  * i.MX6: libfslvpuwrap

As discussed with Yann, I've dropped this part, since it is quite hard to maintain for all platforms.

package/kodi/kodi.mk KODI_CONF_ENV += INCLUDES="-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads · line 60

Quoted 4 lines
package/kodi/kodi.mk +4 -0
+ifeq ($(BR2_PACKAGE_LIBFSLVPUWRAP),y)
+KODI_DEPENDENCIES += libfslvpuwrap
+KODI_CONF_OPTS += --enable-codec=imxvpu
+endif

I've applied this part, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com