From: Michal Sojka Date: Sat, 8 May 2010 20:42:08 +0000 (+0200) Subject: O_DIRECT works!!! X-Git-Tag: jsa-paper-casestudy-v2~61 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/demo.git/commitdiff_plain/d0c53c57394fd46fa2dbfd715d431549a07799a5?hp=3752e38d1294351f77a49977af3ddd47406cde05 O_DIRECT works!!! --- diff --git a/build/Makefile.omk b/build/Makefile.omk index 9e9dd19..68a89ba 100644 --- a/build/Makefile.omk +++ b/build/Makefile.omk @@ -1,9 +1,14 @@ SUBDIRS=$(sort $(ALL_OMK_SUBDIRS) ffmpeg) -test: - ./_compiled/bin/recorder -i snapshot%02d.png -y test_normal.mp4 - ./_compiled/bin/recorder -i snapshot%02d.png -y -direct test_direct.mp4 - hexdump -C test_normal.mp4 > test_normal.hex - hexdump -C test_direct.mp4 > test_direct.hex - kdiff3 test_normal.hex test_direct.hex +test: run_diff + +.PHONY: test run_diff + +test_direct.mp4: RECFLAGS=-direct +test_%.mp4: _compiled/bin/recorder + ./_compiled/bin/recorder -i snapshot%02d.png -y $(RECFLAGS) $@ 2>&1 | tee $@.log +%.hex: %.mp4 + hexdump -C $< > $@ +run_diff: test_normal.hex test_direct.hex + kdiff3 $^ diff --git a/src/ffmpeg b/src/ffmpeg index a4582fb..393f034 160000 --- a/src/ffmpeg +++ b/src/ffmpeg @@ -1 +1 @@ -Subproject commit a4582fb42456fe83734835ecc73d5a9b2ec2aba3 +Subproject commit 393f0349bfb53860d5b44e8b936395bd5727914c