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

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

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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
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
11 #include <assert.h> 11 #include <assert.h>
12 #include <math.h> 12 #include <math.h>
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <string.h> 14 #include <string.h>
15 15
16 #include "vpx_mem/vpx_mem.h" 16 #include "vpx_mem/vpx_mem.h"
17 17
18 #include "vp9/common/vp9_entropy.h" 18 #include "vp9/common/vp9_entropy.h"
19 #include "vp9/common/vp9_pred_common.h" 19 #include "vp9/common/vp9_pred_common.h"
20 #include "vp9/common/vp9_scan.h"
20 #include "vp9/common/vp9_seg_common.h" 21 #include "vp9/common/vp9_seg_common.h"
21 22
22 #include "vp9/encoder/vp9_cost.h" 23 #include "vp9/encoder/vp9_cost.h"
23 #include "vp9/encoder/vp9_encoder.h" 24 #include "vp9/encoder/vp9_encoder.h"
24 #include "vp9/encoder/vp9_tokenize.h" 25 #include "vp9/encoder/vp9_tokenize.h"
25 26
26 static const TOKENVALUE dct_cat_lt_10_value_tokens[] = { 27 static const TOKENVALUE dct_cat_lt_10_value_tokens[] = {
27 {9, 63}, {9, 61}, {9, 59}, {9, 57}, {9, 55}, {9, 53}, {9, 51}, {9, 49}, 28 {9, 63}, {9, 61}, {9, 59}, {9, 57}, {9, 55}, {9, 53}, {9, 51}, {9, 49},
28 {9, 47}, {9, 45}, {9, 43}, {9, 41}, {9, 39}, {9, 37}, {9, 35}, {9, 33}, 29 {9, 47}, {9, 45}, {9, 43}, {9, 41}, {9, 39}, {9, 37}, {9, 35}, {9, 33},
29 {9, 31}, {9, 29}, {9, 27}, {9, 25}, {9, 23}, {9, 21}, {9, 19}, {9, 17}, 30 {9, 31}, {9, 29}, {9, 27}, {9, 25}, {9, 23}, {9, 21}, {9, 19}, {9, 17},
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 return; 625 return;
625 } 626 }
626 627
627 if (!dry_run) { 628 if (!dry_run) {
628 td->counts->skip[ctx][0] += skip_inc; 629 td->counts->skip[ctx][0] += skip_inc;
629 vp9_foreach_transformed_block(xd, bsize, tokenize_b, &arg); 630 vp9_foreach_transformed_block(xd, bsize, tokenize_b, &arg);
630 } else { 631 } else {
631 vp9_foreach_transformed_block(xd, bsize, set_entropy_context_b, &arg); 632 vp9_foreach_transformed_block(xd, bsize, set_entropy_context_b, &arg);
632 } 633 }
633 } 634 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_temporal_filter.c ('k') | source/libvpx/vp9/encoder/vp9_variance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698