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

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

Issue 1339513003: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 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
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_ratectrl.c ('k') | source/libvpx/vp9/encoder/vp9_rdopt.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 #include <assert.h> 11 #include <assert.h>
12 #include <math.h> 12 #include <math.h>
13 #include <stdio.h> 13 #include <stdio.h>
14 14
15 #include "./vp9_rtcd.h" 15 #include "./vp9_rtcd.h"
16 16
17 #include "vpx_dsp/vpx_dsp_common.h"
17 #include "vpx_mem/vpx_mem.h" 18 #include "vpx_mem/vpx_mem.h"
18 #include "vpx_ports/bitops.h" 19 #include "vpx_ports/bitops.h"
19 #include "vpx_ports/mem.h" 20 #include "vpx_ports/mem.h"
20 #include "vpx_ports/system_state.h" 21 #include "vpx_ports/system_state.h"
21 22
22 #include "vp9/common/vp9_common.h" 23 #include "vp9/common/vp9_common.h"
23 #include "vp9/common/vp9_entropy.h" 24 #include "vp9/common/vp9_entropy.h"
24 #include "vp9/common/vp9_entropymode.h" 25 #include "vp9/common/vp9_entropymode.h"
25 #include "vp9/common/vp9_mvref_common.h" 26 #include "vp9/common/vp9_mvref_common.h"
26 #include "vp9/common/vp9_pred_common.h" 27 #include "vp9/common/vp9_pred_common.h"
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 return ROUND_POWER_OF_TWO(5 * q, 2); 658 return ROUND_POWER_OF_TWO(5 * q, 2);
658 default: 659 default:
659 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12"); 660 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12");
660 return -1; 661 return -1;
661 } 662 }
662 #else 663 #else
663 return 20 * q; 664 return 20 * q;
664 #endif // CONFIG_VP9_HIGHBITDEPTH 665 #endif // CONFIG_VP9_HIGHBITDEPTH
665 } 666 }
666 667
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_ratectrl.c ('k') | source/libvpx/vp9/encoder/vp9_rdopt.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698