summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2015-02-03 17:01:37 -0800
committerYaowu Xu <yaowu@google.com>2015-02-03 17:01:37 -0800
commit02537ebbe4a591a8dd9b1049cbe7d7ff3742de72 (patch)
tree24ed5399d447a56e9d1525436e57dce51dff9307 /vp9/encoder
parentcb411108a3830fb02c8f8a988b7f3b0e66d076c9 (diff)
downloadlibvpx-02537ebbe4a591a8dd9b1049cbe7d7ff3742de72.tar
libvpx-02537ebbe4a591a8dd9b1049cbe7d7ff3742de72.tar.gz
libvpx-02537ebbe4a591a8dd9b1049cbe7d7ff3742de72.tar.bz2
libvpx-02537ebbe4a591a8dd9b1049cbe7d7ff3742de72.zip
Move calls to avoid unnecessary operations
Change-Id: I236f7f75ab9a4511d1b52a6a67299b0e844a103e
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_encodeframe.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index 091013060..f8a3f57d8 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3782,9 +3782,6 @@ static INTERP_FILTER get_interp_filter(
void vp9_encode_frame(VP9_COMP *cpi) {
VP9_COMMON *const cm = &cpi->common;
- RD_OPT *const rd_opt = &cpi->rd;
- FRAME_COUNTS *counts = cpi->td.counts;
- RD_COUNTS *const rdc = &cpi->td.rd_counts;
// In the longer term the encoder should be generalized to match the
// decoder such that we allow compound where one of the 3 buffers has a
@@ -3806,11 +3803,11 @@ void vp9_encode_frame(VP9_COMP *cpi) {
}
}
- vpx_memset(cpi->td.counts->tx.tx_totals, 0,
- sizeof(cpi->td.counts->tx.tx_totals));
-
if (cpi->sf.frame_parameter_update) {
int i;
+ RD_OPT *const rd_opt = &cpi->rd;
+ FRAME_COUNTS *counts = cpi->td.counts;
+ RD_COUNTS *const rdc = &cpi->td.rd_counts;
// This code does a single RD pass over the whole frame assuming
// either compound, single or hybrid prediction as per whatever has