diff options
author | Yunqing Wang <yunqingwang@google.com> | 2013-10-18 08:56:30 -0700 |
---|---|---|
committer | Yunqing Wang <yunqingwang@google.com> | 2013-10-22 13:10:22 -0700 |
commit | 175c313a128fd3b543e73751dc2334af5c45a5fa (patch) | |
tree | fd5242ff2de904d2f10d756c60651a87ce9829db /vp9/common/vp9_onyxc_int.h | |
parent | f6d870f7ae6f968bdbc342af80c8f71fa98f2ac2 (diff) | |
download | libvpx-175c313a128fd3b543e73751dc2334af5c45a5fa.tar libvpx-175c313a128fd3b543e73751dc2334af5c45a5fa.tar.gz libvpx-175c313a128fd3b543e73751dc2334af5c45a5fa.tar.bz2 libvpx-175c313a128fd3b543e73751dc2334af5c45a5fa.zip |
Improve scale_factors struct
The ref's scale_factors are set at frame level, and then copied for
each partition block. Since the struct members are mostly constant,
this patch separated the constant and non-constant members, and
reduced struct copying. This gave 0.5% ~ 1.4% decoder speed gain.
Change-Id: I94043bf5a6995c8042da52e5c661818dfa6f6d4c
Diffstat (limited to 'vp9/common/vp9_onyxc_int.h')
-rw-r--r-- | vp9/common/vp9_onyxc_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vp9/common/vp9_onyxc_int.h b/vp9/common/vp9_onyxc_int.h index bc6535d61..dc9c3346b 100644 --- a/vp9/common/vp9_onyxc_int.h +++ b/vp9/common/vp9_onyxc_int.h @@ -116,6 +116,7 @@ typedef struct VP9Common { // Each frame can reference ALLOWED_REFS_PER_FRAME buffers int active_ref_idx[ALLOWED_REFS_PER_FRAME]; struct scale_factors active_ref_scale[ALLOWED_REFS_PER_FRAME]; + struct scale_factors_common active_ref_scale_comm[ALLOWED_REFS_PER_FRAME]; int new_fb_idx; YV12_BUFFER_CONFIG post_proc_buffer; |