summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_aq_cyclicrefresh.h
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2014-11-13 13:38:23 -0800
committerYunqing Wang <yunqingwang@google.com>2014-11-13 15:05:46 -0800
commit8ee605f188e97835b28c549f2423c74079d7c466 (patch)
treefd65fefc55b26377c32284ee1aaeb1a658393654 /vp9/encoder/vp9_aq_cyclicrefresh.h
parent7621a19aa53c7b26b4bf4ba30f2c7f65f8503f9d (diff)
downloadlibvpx-8ee605f188e97835b28c549f2423c74079d7c466.tar
libvpx-8ee605f188e97835b28c549f2423c74079d7c466.tar.gz
libvpx-8ee605f188e97835b28c549f2423c74079d7c466.tar.bz2
libvpx-8ee605f188e97835b28c549f2423c74079d7c466.zip
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
Diffstat (limited to 'vp9/encoder/vp9_aq_cyclicrefresh.h')
-rw-r--r--vp9/encoder/vp9_aq_cyclicrefresh.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_aq_cyclicrefresh.h b/vp9/encoder/vp9_aq_cyclicrefresh.h
index f556d658b..fbc057b6f 100644
--- a/vp9/encoder/vp9_aq_cyclicrefresh.h
+++ b/vp9/encoder/vp9_aq_cyclicrefresh.h
@@ -33,14 +33,12 @@ void vp9_cyclic_refresh_free(CYCLIC_REFRESH *cr);
void vp9_cyclic_refresh_update_segment(struct VP9_COMP *const cpi,
MB_MODE_INFO *const mbmi,
int mi_row, int mi_col,
- BLOCK_SIZE bsize, int use_rd);
+ BLOCK_SIZE bsize, int use_rd,
+ int64_t rate_sb);
// Setup cyclic background refresh: set delta q and segmentation map.
void vp9_cyclic_refresh_setup(struct VP9_COMP *const cpi);
-void vp9_cyclic_refresh_set_rate_and_dist_sb(CYCLIC_REFRESH *cr,
- int64_t rate_sb, int64_t dist_sb);
-
int vp9_cyclic_refresh_get_rdmult(const CYCLIC_REFRESH *cr);
#ifdef __cplusplus