vp9_ethread: allocate frame contexts outside VP9_COMMON struct
authorYunqing Wang <yunqingwang@google.com>
Wed, 22 Oct 2014 21:37:38 +0000 (14:37 -0700)
committerYunqing Wang <yunqingwang@google.com>
Wed, 22 Oct 2014 22:03:12 +0000 (15:03 -0700)
commit7c7e4d4eb8ddc1f7884dcab380a5850fef8b2add
treed70087f4fef896739d4ec6093a8a5bee1c55ecb9
parent7c4992c4667f4f3392b911e3a8b17a776a216c5f
vp9_ethread: allocate frame contexts outside VP9_COMMON struct

This patch allocated frame contexts outside VP9_COMMON. This allows
multiple threads to share the same copy of frame contexts, and
reduces the overhead. It also guarantees the correct update of
these contexts during bitstream packing. This patch doesn't change
encoding result.

Change-Id: Ic181a2460b891d1d587278a6d02d8057b9dbd353
15 files changed:
vp9/common/vp9_entropy.c
vp9/common/vp9_entropymode.c
vp9/common/vp9_entropymv.c
vp9/common/vp9_onyxc_int.h
vp9/common/vp9_pred_common.h
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decodemv.c
vp9/decoder/vp9_decoder.c
vp9/decoder/vp9_detokenize.c
vp9/encoder/vp9_bitstream.c
vp9/encoder/vp9_encodemv.c
vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_rd.c
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_tokenize.c