]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
ffmpeg: Add support for hardware accelaration on RPi
authorMahyar Koshkouei <mahyar.koshkouei@gmail.com>
Thu, 14 Sep 2017 15:01:56 +0000 (16:01 +0100)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 24 Sep 2017 12:50:14 +0000 (14:50 +0200)
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
[Arnout: wrap the long line]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/ffmpeg/ffmpeg.mk

index a27819be3c34563e938d6b0040333487ff518184..801615c077fd0a5d738bbb3cf542928a6d140b42 100644 (file)
@@ -254,6 +254,14 @@ else
 FFMPEG_CONF_OPTS += --disable-vdpau
 endif
 
+ifeq ($(BR2_PACKAGE_RPI_FIRMWARE)$(BR2_PACKAGE_RPI_USERLAND),yy)
+FFMPEG_CONF_OPTS += --enable-mmal --enable-omx --enable-omx-rpi \
+       --extra-cflags=-I$(STAGING_DIR)/usr/include/IL
+FFMPEG_DEPENDENCIES += rpi-firmware rpi-userland
+else
+FFMPEG_CONF_OPTS += --disable-mmal --disable-omx --disable-omx-rpi
+endif
+
 # To avoid a circular dependency only use opencv if opencv itself does
 # not depend on ffmpeg.
 ifeq ($(BR2_PACKAGE_OPENCV_LIB_IMGPROC)x$(BR2_PACKAGE_OPENCV_WITH_FFMPEG),yx)