Skip to content

Commit

Permalink
ffmpeg: hevc: Add gpu based hevc optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Jun 23, 2018
1 parent 70bbb96 commit e23d73c
Show file tree
Hide file tree
Showing 2 changed files with 43,241 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/depends/target/ffmpeg/Makefile
@@ -1,6 +1,7 @@
include ../../Makefile.include
include FFMPEG-VERSION
DEPS= ../../Makefile.include FFMPEG-VERSION Makefile
DEPS= ../../Makefile.include FFMPEG-VERSION Makefile \
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 @@ -67,6 +68,8 @@ ifeq ($(Configuration), Release)
ffmpg_config += --disable-debug
endif

ffmpg_config += --enable-rpi

all: .installed-$(PLATFORM)

$(TARBALLS_LOCATION)/$(ARCHIVE):
Expand All @@ -76,6 +79,7 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
rm -rf $(PLATFORM); mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
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 < ../pfcd_hevc_optimisations.patch
cd $(PLATFORM);\
CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
./configure $(ffmpg_config)
Expand Down

0 comments on commit e23d73c

Please sign in to comment.