Skip to content

Commit

Permalink
[ffmpeg] Add GPU acceleration to hevc
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Nov 28, 2017
1 parent 2d93851 commit 2ad9bca
Show file tree
Hide file tree
Showing 2 changed files with 42,506 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/depends/target/ffmpeg/Makefile
Expand Up @@ -3,6 +3,7 @@ include FFMPEG-VERSION
DEPS= ../../Makefile.include FFMPEG-VERSION Makefile \
0001-mpeg4video-Signal-unsupported-GMC-with-more-than-one.patch \
0001-ffmpeg-Call-get_format-to-fix-an-issue-with-MMAL-ren.patch \
pfcd_hevc_optimisations.patch \

# set to "yes" to enable patching
# we don't apply patches until we move to a vanilla ffmpeg tarball
Expand Down Expand Up @@ -70,6 +71,7 @@ ifeq ($(Configuration), Release)
ffmpg_config += --disable-debug
endif

ffmpg_config += --enable-rpi

CLEAN_FILES=$(ARCHIVE) $(PLATFORM)

Expand All @@ -84,6 +86,7 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
cd $(PLATFORM); sed -i".bak" -e "s%pkg_config_default=pkg-config%export PKG_CONFIG_LIBDIR=$(PREFIX)/lib/pkgconfig \&\& pkg_config_default=$(NATIVEPREFIX)/bin/pkg-config%" configure
cd $(PLATFORM); patch -p1 < ../0001-mpeg4video-Signal-unsupported-GMC-with-more-than-one.patch
cd $(PLATFORM); patch -p1 < ../0001-ffmpeg-Call-get_format-to-fix-an-issue-with-MMAL-ren.patch
cd $(PLATFORM); patch -p1 < ../pfcd_hevc_optimisations.patch
cd $(PLATFORM);\
CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
./configure $(ffmpg_config)
Expand Down

0 comments on commit 2ad9bca

Please sign in to comment.