summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-09-10 13:03:32 +0200
committerwm4 <wm4@nowhere>2012-09-18 21:08:20 +0200
commit9343c1d3abe335a843fe30d9d9271da7c14cde05 (patch)
tree95c94c822d8b4d1fd1828cbaef53146c1428f21e /TOOLS
parentc32082a1a7634e8a5e0bb2551056fe64e357d395 (diff)
downloadmpv-9343c1d3abe335a843fe30d9d9271da7c14cde05.tar.bz2
mpv-9343c1d3abe335a843fe30d9d9271da7c14cde05.tar.xz
vf_dlopen: improve performance for 1-frame-for-1-frame filters
This is done by requesting a buffer from the next filter in the chain, instead of always allocating our own. This allows the next filter to e.g. ensure its own preferred memory layout.
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/vf_dlopen/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/TOOLS/vf_dlopen/Makefile b/TOOLS/vf_dlopen/Makefile
index 2fa4e740c2..c3bd4000c4 100644
--- a/TOOLS/vf_dlopen/Makefile
+++ b/TOOLS/vf_dlopen/Makefile
@@ -5,12 +5,17 @@ OBJECTS = $(patsubst %,%.o,$(FILTERS)) $(COMMON)
HEADERS = $(wildcard *.h)
OUT = $(patsubst %,%.so,$(FILTERS))
-CFLAGS ?= -Wall -Wextra -O3 -march=native -mtune=native
+CFLAGS ?= -Wall -Wextra -O3 -march=native -mtune=native -ffast-math
CPPFLAGS += -I../../libmpcodecs
CFLAGS += -fPIC
LDFLAGS += -shared -fPIC
+ifneq ($(LTO),)
+CFLAGS += -flto
+LDFLAGS += $(CFLAGS) -flto
+endif
+
all: $(OUT)
clean: