Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: source/libvpx/vp9/encoder/vp9_encodemb.c

Issue 390713002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: libvpx: Pull from upstream Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_encodeframe.c ('k') | source/libvpx/vp9/encoder/vp9_encoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 uint16_t *const eob = &p->eobs[block]; 313 uint16_t *const eob = &p->eobs[block];
314 const int diff_stride = 4 * num_4x4_blocks_wide_lookup[plane_bsize]; 314 const int diff_stride = 4 * num_4x4_blocks_wide_lookup[plane_bsize];
315 int i, j; 315 int i, j;
316 const int16_t *src_diff; 316 const int16_t *src_diff;
317 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &i, &j); 317 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &i, &j);
318 src_diff = &p->src_diff[4 * (j * diff_stride + i)]; 318 src_diff = &p->src_diff[4 * (j * diff_stride + i)];
319 319
320 switch (tx_size) { 320 switch (tx_size) {
321 case TX_32X32: 321 case TX_32X32:
322 fdct32x32(x->use_lp32x32fdct, src_diff, coeff, diff_stride); 322 fdct32x32(x->use_lp32x32fdct, src_diff, coeff, diff_stride);
323 vp9_quantize_b_32x32(coeff, 1024, x->skip_block, p->zbin, p->round, 323 vp9_quantize_fp_32x32(coeff, 1024, x->skip_block, p->zbin, p->round_fp,
324 p->quant, p->quant_shift, qcoeff, dqcoeff, 324 p->quant_fp, p->quant_shift, qcoeff, dqcoeff,
325 pd->dequant, p->zbin_extra, eob, scan_order->scan, 325 pd->dequant, p->zbin_extra, eob, scan_order->scan,
326 scan_order->iscan); 326 scan_order->iscan);
327 break; 327 break;
328 case TX_16X16: 328 case TX_16X16:
329 vp9_fdct16x16(src_diff, coeff, diff_stride); 329 vp9_fdct16x16(src_diff, coeff, diff_stride);
330 vp9_quantize_fp(coeff, 256, x->skip_block, p->zbin, p->round_fp, 330 vp9_quantize_fp(coeff, 256, x->skip_block, p->zbin, p->round_fp,
331 p->quant_fp, p->quant_shift, qcoeff, dqcoeff, 331 p->quant_fp, p->quant_shift, qcoeff, dqcoeff,
332 pd->dequant, p->zbin_extra, eob, 332 pd->dequant, p->zbin_extra, eob,
333 scan_order->scan, scan_order->iscan); 333 scan_order->scan, scan_order->iscan);
334 break; 334 break;
335 case TX_8X8: 335 case TX_8X8:
336 vp9_fdct8x8(src_diff, coeff, diff_stride); 336 vp9_fdct8x8(src_diff, coeff, diff_stride);
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } 705 }
706 706
707 707
708 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) { 708 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane) {
709 const MACROBLOCKD *const xd = &x->e_mbd; 709 const MACROBLOCKD *const xd = &x->e_mbd;
710 struct encode_b_args arg = {x, NULL, &xd->mi[0]->mbmi.skip}; 710 struct encode_b_args arg = {x, NULL, &xd->mi[0]->mbmi.skip};
711 711
712 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, encode_block_intra, 712 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, encode_block_intra,
713 &arg); 713 &arg);
714 } 714 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_encodeframe.c ('k') | source/libvpx/vp9/encoder/vp9_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698