Expose params min-gf-interval/max-gf-interval
authorDebargha Mukherjee <debargha@google.com>
Wed, 1 Apr 2015 23:39:06 +0000 (16:39 -0700)
committerDebargha Mukherjee <debargha@google.com>
Mon, 6 Jul 2015 19:24:59 +0000 (12:24 -0700)
commit98526433737e388ebe576e9f7631b6763e58a2f9
treee5ff890ed0b38aa0ae007f2b5f638ee65e45253e
parent39f03bf9c672b8e7c4b483d4e919a695707c90dd
Expose params min-gf-interval/max-gf-interval

Adds two new vp9 parameters --min-gf-interval and --max-gf-interval
to enable testing based on frequency of alt-ref frames.

Also adds a unit-test to test enforcement of min-gf-interval.

For both these parameters the default value is 0, which indicates
they are picked by the encoder, based on resolution and framerate
considerations. If they are greater than zero, the specified
parameter is honored.

(Additional note by paulwilkins)
Note that there is a slight oddity in that key frames are also GFs and
considered part of  GF only group. However they are treated as not
being part of an arf group because for arf groups the previous GF is
assumed to be the terminal or overlay frame for the previous group.

(end note)

Change-Id: Ibf0c30b72074b3f71918ab278ccccc02a95a70a0
test/test.mk
test/vp9_arf_freq_test.cc [new file with mode: 0644]
vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_encoder.h
vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_ratectrl.c
vp9/encoder/vp9_ratectrl.h
vp9/vp9_cx_iface.c
vpx/vp8cx.h
vpxenc.c