mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-27 14:39:09 +00:00
72 lines
2.0 KiB
Makefile
72 lines
2.0 KiB
Makefile
|
.PHONY: build static debug windows test-realesrgan test-libplacebo leakcheck clean
|
||
|
|
||
|
BINDIR=build
|
||
|
CC=clang
|
||
|
CXX=clang++
|
||
|
|
||
|
build:
|
||
|
cmake -S . -B $(BINDIR) \
|
||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||
|
-DCMAKE_C_COMPILER=$(CC) \
|
||
|
-DCMAKE_CXX_COMPILER=$(CXX) \
|
||
|
-DCMAKE_BUILD_TYPE=Release
|
||
|
cmake --build $(BINDIR) --config Release --parallel
|
||
|
cp $(BINDIR)/compile_commands.json .
|
||
|
|
||
|
static:
|
||
|
cmake -S . -B $(BINDIR) \
|
||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||
|
-DCMAKE_C_COMPILER=$(CC) \
|
||
|
-DCMAKE_CXX_COMPILER=$(CXX) \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DBUILD_SHARED_LIBS=OFF \
|
||
|
-DUSE_SYSTEM_NCNN=OFF
|
||
|
cmake --build $(BINDIR) --config Release --parallel
|
||
|
cp $(BINDIR)/compile_commands.json .
|
||
|
|
||
|
debug:
|
||
|
cmake -S . -B $(BINDIR) \
|
||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||
|
-DCMAKE_C_COMPILER=$(CC) \
|
||
|
-DCMAKE_CXX_COMPILER=$(CXX) \
|
||
|
-DCMAKE_BUILD_TYPE=Debug
|
||
|
cmake --build $(BINDIR) --config Debug --parallel
|
||
|
cp $(BINDIR)/compile_commands.json .
|
||
|
|
||
|
test-realesrgan:
|
||
|
LD_LIBRARY_PATH=$(BINDIR) $(BINDIR)/video2x -i data/standard-test.mp4 -o data/output.mp4 \
|
||
|
-f realesrgan -r 4 --model realesr-animevideov3
|
||
|
|
||
|
test-libplacebo:
|
||
|
LD_LIBRARY_PATH=$(BINDIR) $(BINDIR)/video2x -i data/standard-test.mp4 -o data/output.mp4 \
|
||
|
-f libplacebo -w 1920 -h 1080 -s anime4k-mode-a
|
||
|
|
||
|
leakcheck-realesrgan:
|
||
|
LD_LIBRARY_PATH=$(BINDIR) valgrind \
|
||
|
--tool=memcheck \
|
||
|
--leak-check=full \
|
||
|
--show-leak-kinds=all \
|
||
|
--track-origins=yes \
|
||
|
--show-reachable=yes \
|
||
|
--verbose --log-file="valgrind.log" \
|
||
|
$(BINDIR)/video2x \
|
||
|
-i data/standard-test.mp4 -o data/output.mp4 \
|
||
|
-f realesrgan -r 2 --model realesr-animevideov3 \
|
||
|
-p veryfast -b 1000000 -q 30
|
||
|
|
||
|
leakcheck-libplacebo:
|
||
|
LD_LIBRARY_PATH=$(BINDIR) valgrind \
|
||
|
--tool=memcheck \
|
||
|
--leak-check=full \
|
||
|
--show-leak-kinds=all \
|
||
|
--track-origins=yes \
|
||
|
--show-reachable=yes \
|
||
|
--verbose --log-file="valgrind.log" \
|
||
|
$(BINDIR)/video2x \
|
||
|
-i data/standard-test.mp4 -o data/output.mp4 \
|
||
|
-f libplacebo -w 1920 -h 1080 -s anime4k-mode-a \
|
||
|
-p veryfast -b 1000000 -q 30
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(BINDIR)
|