summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_onyx_if.c
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2013-04-01 18:23:04 -0700
committerDmitry Kovalev <dkovalev@google.com>2013-04-01 18:23:04 -0700
commit50e54c112d4541bb7b78a355c8a1944891e44957 (patch)
tree1f07c157d75a12d114a20b24fb406b1b8ebfa24f /vp9/encoder/vp9_onyx_if.c
parente3955007dff1a32bb3b63f3f415b09c616f665a4 (diff)
downloadlibvpx-50e54c112d4541bb7b78a355c8a1944891e44957.tar
libvpx-50e54c112d4541bb7b78a355c8a1944891e44957.tar.gz
libvpx-50e54c112d4541bb7b78a355c8a1944891e44957.tar.bz2
libvpx-50e54c112d4541bb7b78a355c8a1944891e44957.zip
Code cleanup.
Adding multiple16 function, removing redundant code, better formatting. Change-Id: I50195b78ac8ab803e3d05c8fb05a7ca134fab386
Diffstat (limited to 'vp9/encoder/vp9_onyx_if.c')
-rw-r--r--vp9/encoder/vp9_onyx_if.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c
index 656975aa4..ce492e182 100644
--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -326,7 +326,7 @@ static void dealloc_compressor_data(VP9_COMP *cpi) {
vpx_free(cpi->active_map);
cpi->active_map = 0;
- vp9_de_alloc_frame_buffers(&cpi->common);
+ vp9_free_frame_buffers(&cpi->common);
vp8_yv12_de_alloc_frame_buffer(&cpi->last_frame_uf);
vp8_yv12_de_alloc_frame_buffer(&cpi->scaled_source);
@@ -960,9 +960,8 @@ void vp9_alloc_compressor_data(VP9_COMP *cpi) {
static void update_frame_size(VP9_COMP *cpi) {
VP9_COMMON *cm = &cpi->common;
- /* our internal buffers are always multiples of 16 */
- int aligned_width = (cm->width + 15) & ~15;
- int aligned_height = (cm->height + 15) & ~15;
+ const int aligned_width = multiple16(cm->width);
+ const int aligned_height = multiple16(cm->height);
cm->mb_rows = aligned_height >> 4;
cm->mb_cols = aligned_width >> 4;