Fixed bugs in multi-layer code related to changing params
authorAdrian Grange <agrange@google.com>
Fri, 13 Jan 2012 22:09:40 +0000 (14:09 -0800)
committerAdrian Grange <agrange@google.com>
Sat, 14 Jan 2012 00:52:25 +0000 (16:52 -0800)
commite479379abb071050d45273c614c37253522bf7b0
treee52a71136a42aea682e149143caa7a307c706430
parent9c2ca8c1ca87f219965f3a528190a57a1ce72da8
Fixed bugs in multi-layer code related to changing params

When running multi-layer (ML) encodes and dynamically
changing coding parameters on the fly (e.g. frame
duration/rate, bandwidths allocated to each layer)
the encoder would not produce sensible output.

In certain cases the rate targeting would be
hideously inaccurate.

These fixes make it possible to change these coding
parameters correctly and to maintain accurate control
of the rate targeting.

I also added the specification of the input timebase
into the test program, vp8_scalable_patterns.c.

Patch 2: Moved declaration to appease MS compiler)

Change-Id: Ic8bb5a16daa924bb64974e740696e040d07ae363
vp8/common/onyx.h
vp8/encoder/onyx_if.c
vp8/encoder/onyx_int.h
vp8/vp8_cx_iface.c
vp8_scalable_patterns.c