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

Side by Side Diff: source/libvpx/vp8/encoder/modecosts.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
« no previous file with comments | « source/libvpx/vp8/encoder/modecosts.h ('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
11 11
12 #include "vp8/common/blockd.h" 12 #include "vp8/common/blockd.h"
13 #include "modecosts.h"
13 #include "onyx_int.h" 14 #include "onyx_int.h"
14 #include "treewriter.h" 15 #include "treewriter.h"
15 #include "vp8/common/entropymode.h" 16 #include "vp8/common/entropymode.h"
16 17
17 18
18 void vp8_init_mode_costs(VP8_COMP *c) 19 void vp8_init_mode_costs(VP8_COMP *c)
19 { 20 {
20 VP8_COMMON *x = &c->common; 21 VP8_COMMON *x = &c->common;
21 struct rd_costs_struct *rd_costs = &c->rd_costs; 22 struct rd_costs_struct *rd_costs = &c->rd_costs;
22 23
(...skipping 22 matching lines...) Expand all
45 46
46 vp8_cost_tokens(rd_costs->mbmode_cost[1], x->fc.ymode_prob, vp8_ymode_tree); 47 vp8_cost_tokens(rd_costs->mbmode_cost[1], x->fc.ymode_prob, vp8_ymode_tree);
47 vp8_cost_tokens(rd_costs->mbmode_cost[0], vp8_kf_ymode_prob, 48 vp8_cost_tokens(rd_costs->mbmode_cost[0], vp8_kf_ymode_prob,
48 vp8_kf_ymode_tree); 49 vp8_kf_ymode_tree);
49 50
50 vp8_cost_tokens(rd_costs->intra_uv_mode_cost[1], x->fc.uv_mode_prob, 51 vp8_cost_tokens(rd_costs->intra_uv_mode_cost[1], x->fc.uv_mode_prob,
51 vp8_uv_mode_tree); 52 vp8_uv_mode_tree);
52 vp8_cost_tokens(rd_costs->intra_uv_mode_cost[0], vp8_kf_uv_mode_prob, 53 vp8_cost_tokens(rd_costs->intra_uv_mode_cost[0], vp8_kf_uv_mode_prob,
53 vp8_uv_mode_tree); 54 vp8_uv_mode_tree);
54 } 55 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/modecosts.h ('k') | source/libvpx/vp8/encoder/onyx_if.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698