From 9343c1d3abe335a843fe30d9d9271da7c14cde05 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 10 Sep 2012 13:03:32 +0200 Subject: 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. --- TOOLS/vf_dlopen/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'TOOLS') 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: -- cgit v1.2.3