Shares one set of RD costs tables between all encoding threads
authorAttila Nagy <attilanagy@google.com>
Tue, 17 Apr 2012 07:40:56 +0000 (10:40 +0300)
committerYunqing Wang <yunqingwang@google.com>
Mon, 23 Apr 2012 18:15:23 +0000 (14:15 -0400)
commitb41c17d625dc269eef8d0fbcc971f17523057e3b
tree3e5f4e5a7957f21676300f158b47ef6785fd4716
parent11876faa1171368d8921e3969151e08494a11858
Shares one set of RD costs tables between all encoding threads

RD costs were local to MACROBLOCK data and had to be copied all the
time to each thread's MACROBLOCK data. Tables moved to a common place
and only pointers are setup for each encoding thread.

vp8_cost_tokens() generates 'int' costs so changed all types to be
int (i.e. removed unsigned).

NOTE: Could do some more cleaning in vp8cx_init_mbrthread_data().

Change-Id: Ifa4de4c6286dffaca7ed3082041fe5af1345ddc0
vp8/encoder/block.h
vp8/encoder/ethreading.c
vp8/encoder/modecosts.c
vp8/encoder/onyx_if.c
vp8/encoder/onyx_int.h
vp8/encoder/pickinter.c
vp8/encoder/ratectrl.c
vp8/encoder/rdopt.c