vp9_ethread: modify the cyclic refresh struct
authorYunqing Wang <yunqingwang@google.com>
Thu, 13 Nov 2014 21:38:23 +0000 (13:38 -0800)
committerYunqing Wang <yunqingwang@google.com>
Thu, 13 Nov 2014 23:05:46 +0000 (15:05 -0800)
commit8ee605f188e97835b28c549f2423c74079d7c466
treefd65fefc55b26377c32284ee1aaeb1a658393654
parent7621a19aa53c7b26b4bf4ba30f2c7f65f8503f9d
vp9_ethread: modify the cyclic refresh struct

Two members in struct CYCLIC_REFRESH
  int64_t projected_rate_sb;
  int64_t projected_dist_sb;
are updated at the superblock level, which makes them shared data
in the multi-thread situation, and requires extra work to handle
them. However, those values are updated and used immediately, and
therefore can be removed. This patch cleaned up the code and
removed the two members.

Change-Id: I2c6ee4552bf49fb63ce590cdb47f9723974fffb1
vp9/encoder/vp9_aq_cyclicrefresh.c
vp9/encoder/vp9_aq_cyclicrefresh.h
vp9/encoder/vp9_encodeframe.c