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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_ethread.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_encoder.c ('k') | source/libvpx/vp9/encoder/vp9_extend.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) 2014 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 "vp9/encoder/vp9_encodeframe.h" 11 #include "vp9/encoder/vp9_encodeframe.h"
12 #include "vp9/encoder/vp9_encoder.h" 12 #include "vp9/encoder/vp9_encoder.h"
13 #include "vp9/encoder/vp9_ethread.h" 13 #include "vp9/encoder/vp9_ethread.h"
14 #include "vpx_dsp/vpx_dsp_common.h"
14 15
15 static void accumulate_rd_opt(ThreadData *td, ThreadData *td_t) { 16 static void accumulate_rd_opt(ThreadData *td, ThreadData *td_t) {
16 int i, j, k, l, m, n; 17 int i, j, k, l, m, n;
17 18
18 for (i = 0; i < REFERENCE_MODES; i++) 19 for (i = 0; i < REFERENCE_MODES; i++)
19 td->rd_counts.comp_pred_diff[i] += td_t->rd_counts.comp_pred_diff[i]; 20 td->rd_counts.comp_pred_diff[i] += td_t->rd_counts.comp_pred_diff[i];
20 21
21 for (i = 0; i < SWITCHABLE_FILTER_CONTEXTS; i++) 22 for (i = 0; i < SWITCHABLE_FILTER_CONTEXTS; i++)
22 td->rd_counts.filter_diff[i] += td_t->rd_counts.filter_diff[i]; 23 td->rd_counts.filter_diff[i] += td_t->rd_counts.filter_diff[i];
23 24
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 VPxWorker *const worker = &cpi->workers[i]; 190 VPxWorker *const worker = &cpi->workers[i];
190 EncWorkerData *const thread_data = (EncWorkerData*)worker->data1; 191 EncWorkerData *const thread_data = (EncWorkerData*)worker->data1;
191 192
192 // Accumulate counters. 193 // Accumulate counters.
193 if (i < cpi->num_workers - 1) { 194 if (i < cpi->num_workers - 1) {
194 vp9_accumulate_frame_counts(cm, thread_data->td->counts, 0); 195 vp9_accumulate_frame_counts(cm, thread_data->td->counts, 0);
195 accumulate_rd_opt(&cpi->td, thread_data->td); 196 accumulate_rd_opt(&cpi->td, thread_data->td);
196 } 197 }
197 } 198 }
198 } 199 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_encoder.c ('k') | source/libvpx/vp9/encoder/vp9_extend.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698