diff options
author | John Koleszar <jkoleszar@google.com> | 2013-05-07 14:44:12 -0700 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2013-05-08 20:48:32 -0700 |
commit | 1fec23bef648063f3ecf818665b722635cff6536 (patch) | |
tree | 7ed004342bb73e2b6a94262bfadbd019f25e604c /vp9/encoder | |
parent | f66320abff79ee376ca9ad9282d12509f6e38e50 (diff) | |
download | libvpx-1fec23bef648063f3ecf818665b722635cff6536.tar libvpx-1fec23bef648063f3ecf818665b722635cff6536.tar.gz libvpx-1fec23bef648063f3ecf818665b722635cff6536.tar.bz2 libvpx-1fec23bef648063f3ecf818665b722635cff6536.zip |
Use common get_uv_tx_size()
Use a single method for calculating the transform size of
non-luma planes.
Change-Id: I16ebd10e7944d7b9075ab79d15e6a5b5f9bab775
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_encodemb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encodemb.c b/vp9/encoder/vp9_encodemb.c index 421052753..4665fccd0 100644 --- a/vp9/encoder/vp9_encodemb.c +++ b/vp9/encoder/vp9_encodemb.c @@ -378,7 +378,8 @@ void vp9_optimize_init(MACROBLOCKD *xd, BLOCK_SIZE_TYPE bsize, const struct macroblockd_plane* const plane = &xd->plane[p]; const int bwl = b_width_log2(bsize) - plane->subsampling_x; const int bhl = b_height_log2(bsize) - plane->subsampling_y; - const TX_SIZE tx_size = tx_size_for_plane(xd, bsize, p); + const TX_SIZE tx_size = p ? get_uv_tx_size(xd) + : xd->mode_info_context->mbmi.txfm_size; int i, j; for (i = 0; i < 1 << bwl; i += 1 << tx_size) { |