From: Mahyar Koshkouei Date: Thu, 14 Sep 2017 15:01:56 +0000 (+0100) Subject: ffmpeg: Add support for hardware accelaration on RPi X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e66936e4f3c9569b7f90dec0f871d777baf597cc;p=buildroot.git ffmpeg: Add support for hardware accelaration on RPi Signed-off-by: Mahyar Koshkouei [Arnout: wrap the long line] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- 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)