Allocate buffers based on correct chroma format
commit8c1f071f1ea03b33bcf31edc1eec3d549d134b37
authorAdrian Grange <agrange@google.com>
Mon, 16 Jun 2014 23:22:28 +0000 (16 16:22 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Mon, 23 Jun 2014 18:45:13 +0000 (23 11:45 -0700)
tree7979527caa82ca03bb0df36cc5cf72ffd5fa7e8f
parent97d0cb58f845571755182006ec79223d2781233c
Allocate buffers based on correct chroma format

The encoder currently allocates frame buffers before
it establishes what the chroma sub-sampling factor is,
always allocating based on the 4:4:4 format.

This patch detects the chroma format as early as
possible allowing the encoder to allocate buffers of
the correct size.

Future patches will change the encoder to allocate
frame buffers on demand to further reduce the memory
profile of the encoder and rationalize the buffer
management in the encoder and decoder.

Change-Id: Ifd41dd96e67d0011719ba40fada0bae74f3a0d57
vp9/common/vp9_alloccommon.c
vp9/common/vp9_alloccommon.h
vp9/common/vp9_scale.h
vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_firstpass.c