theoraenc: add "dup-on-gap" option
authorOleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
Mon, 19 Dec 2011 16:41:23 +0000 (17:41 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 20 Dec 2011 19:43:47 +0000 (19:43 +0000)
commit5f3a31f4d1208211a74bdba43ca8644614bc18bf
tree25a477858fa4e18a7ad6944c6a8f39bf5710027e
parentc41f3cbef03417c3025b145122788502764313ad
theoraenc: add "dup-on-gap" option

This option will produce duplicate frames if we get
a frame with GAP flag. This will reduce CPU load and file size.

This option should be disabled for real time applications, because it
collects GAP frames and waits until it gets a non GAP frame to start
encoding.

v30.06.2011: make some spell changes.
v03.07.2011: add handling of EOS and discontinuous for dup-on-gap.
v19.12.2011: fix pointer dangling in theora_timefifo_free
v20.12.2010: fix timestamp bug for dup-on-gap=0

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=627459

Signed-off-by: Oleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
ext/theora/gsttheoraenc.c
ext/theora/gsttheoraenc.h