]> granicus.if.org Git - libvpx/commit
avoid resetting framerate during vpx_codec_enc_config_set()
authorJohn Koleszar <jkoleszar@google.com>
Fri, 11 Nov 2011 18:47:20 +0000 (10:47 -0800)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 11 Nov 2011 22:45:58 +0000 (14:45 -0800)
commitbdd35c13ccafaa87fbd7d27c2c413743b11b7746
tree6759072ccb697dd6086e88de5468362789cb1d17
parent2a6daa72f0f04ee674f14a7d5c7ee7693fc87aa2
avoid resetting framerate during vpx_codec_enc_config_set()

The calculated frame_rate is a state variable in the codec, and
shouldn't be maintained in the configuration struct. Move it to the
main part of cpi so that it isn't clobbered when the configuration
struct is updated. The initial framerate estimate is moved from the
vp8_cx_iface.c wrapper into the body of init_config() in onyx_if.c, so
that it is only called once and not reset on every call to
vp8_change_config().

Change-Id: I8d9a3d1283330d1ee297d07e9d78d1f2875f2465
vp8/common/onyx.h
vp8/encoder/firstpass.c
vp8/encoder/onyx_if.c
vp8/encoder/onyx_int.h
vp8/encoder/rdopt.c
vp8/vp8_cx_iface.c