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

Side by Side Diff: source/libvpx/vp8/encoder/encodemb.c

Issue 592203002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 3 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/vp8/encoder/denoising.c ('k') | source/libvpx/vp8/encoder/onyx_if.c » ('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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 int t1; 251 int t1;
252 int best; 252 int best;
253 int band; 253 int band;
254 int pt; 254 int pt;
255 int i; 255 int i;
256 int err_mult = plane_rd_mult[type]; 256 int err_mult = plane_rd_mult[type];
257 257
258 b = &mb->block[ib]; 258 b = &mb->block[ib];
259 d = &mb->e_mbd.block[ib]; 259 d = &mb->e_mbd.block[ib];
260 260
261 /* Enable this to test the effect of RDO as a replacement for the dynamic
262 * zero bin instead of an augmentation of it.
263 */
264 #if 0
265 vp8_strict_quantize_b(b, d);
266 #endif
267
268 dequant_ptr = d->dequant; 261 dequant_ptr = d->dequant;
269 coeff_ptr = b->coeff; 262 coeff_ptr = b->coeff;
270 qcoeff_ptr = d->qcoeff; 263 qcoeff_ptr = d->qcoeff;
271 dqcoeff_ptr = d->dqcoeff; 264 dqcoeff_ptr = d->dqcoeff;
272 i0 = !type; 265 i0 = !type;
273 eob = *d->eob; 266 eob = *d->eob;
274 267
275 /* Now set up a Viterbi trellis to evaluate alternative roundings. */ 268 /* Now set up a Viterbi trellis to evaluate alternative roundings. */
276 rdmult = mb->rdmult * err_mult; 269 rdmult = mb->rdmult * err_mult;
277 if(mb->e_mbd.mode_info_context->mbmi.ref_frame==INTRA_FRAME) 270 if(mb->e_mbd.mode_info_context->mbmi.ref_frame==INTRA_FRAME)
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 632
640 vp8_subtract_mby(x->src_diff, *(b->base_src), 633 vp8_subtract_mby(x->src_diff, *(b->base_src),
641 b->src_stride, x->e_mbd.dst.y_buffer, x->e_mbd.dst.y_stride); 634 b->src_stride, x->e_mbd.dst.y_buffer, x->e_mbd.dst.y_stride);
642 635
643 transform_mby(x); 636 transform_mby(x);
644 637
645 vp8_quantize_mby(x); 638 vp8_quantize_mby(x);
646 639
647 vp8_inverse_transform_mby(&x->e_mbd); 640 vp8_inverse_transform_mby(&x->e_mbd);
648 } 641 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/denoising.c ('k') | source/libvpx/vp8/encoder/onyx_if.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698