diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2012-09-10 13:03:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-18 21:08:20 +0200 |
commit | 9343c1d3abe335a843fe30d9d9271da7c14cde05 (patch) | |
tree | 95c94c822d8b4d1fd1828cbaef53146c1428f21e /TOOLS/vf_dlopen | |
parent | c32082a1a7634e8a5e0bb2551056fe64e357d395 (diff) |
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/vf_dlopen')
-rw-r--r-- | TOOLS/vf_dlopen/Makefile | 7 |
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: |