summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahyar Koshkouei <mahyar.koshkouei@gmail.com>2017-09-14 16:01:56 +0100
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-09-24 14:50:14 +0200
commite66936e4f3c9569b7f90dec0f871d777baf597cc (patch)
treec95a47620eaa7abbc4547a2f146e8582fd670edd
parent79260e7b7a8cc16d1337e6e1c4ae18b4863d51b7 (diff)
downloadbuildroot-e66936e4f3c9569b7f90dec0f871d777baf597cc.tar.gz
buildroot-e66936e4f3c9569b7f90dec0f871d777baf597cc.zip
ffmpeg: Add support for hardware accelaration on RPi
Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com> [Arnout: wrap the long line] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--package/ffmpeg/ffmpeg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index a27819be3c..801615c077 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -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)
OpenPOWER on IntegriCloud