]> git.videolan.org Git - x264.git/commit
Avoid scenecuts in flashes and similar situations
authorJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 8 Oct 2009 11:27:11 +0000 (04:27 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 12 Oct 2009 08:41:35 +0000 (01:41 -0700)
commite8b83b788ffe9af4b48b049450c387069fda1266
treefa230fd48f5f95fac10206793b0c98a750fbe3ff
parentfc4926a2d9a4e355ea6a24c962731f5f8c6bd83a
Avoid scenecuts in flashes and similar situations
"Flashes" are defined as any scene which lasts a very short period before a previous scene returns.
A common example of this is of course a camera flash.
Accordingly, look ahead during scenecut analysis and rule out the possibility of certain frames being scenecuts.
Also handles cases of tons of short scenes in sequence and avoids making those scenecuts as well.
Can only catch flashes of 1 frame in length with b-adapt 1.
With b-adapt 2, can catch flashes of length --bframes.
Speed cost should be negligible.
common/frame.c
common/frame.h
encoder/slicetype.c