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

Side by Side Diff: source/libvpx/vp9/common/vp9_thread_common.h

Issue 958693004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 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/common/vp9_thread.h ('k') | source/libvpx/vp9/common/vp9_thread_common.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 #ifndef VP9_COMMON_VP9_LOOPFILTER_THREAD_H_ 11 #ifndef VP9_COMMON_VP9_LOOPFILTER_THREAD_H_
12 #define VP9_COMMON_VP9_LOOPFILTER_THREAD_H_ 12 #define VP9_COMMON_VP9_LOOPFILTER_THREAD_H_
13 #include "./vpx_config.h" 13 #include "./vpx_config.h"
14 #include "vp9/common/vp9_loopfilter.h" 14 #include "vp9/common/vp9_loopfilter.h"
15 #include "vp9/common/vp9_thread.h" 15 #include "vp9/common/vp9_thread.h"
16 16
17 struct VP9Common; 17 struct VP9Common;
18 struct FRAME_COUNTS;
18 19
19 // Loopfilter row synchronization 20 // Loopfilter row synchronization
20 typedef struct VP9LfSyncData { 21 typedef struct VP9LfSyncData {
21 #if CONFIG_MULTITHREAD 22 #if CONFIG_MULTITHREAD
22 pthread_mutex_t *mutex_; 23 pthread_mutex_t *mutex_;
23 pthread_cond_t *cond_; 24 pthread_cond_t *cond_;
24 #endif 25 #endif
25 // Allocate memory to store the loop-filtered superblock index in each row. 26 // Allocate memory to store the loop-filtered superblock index in each row.
26 int *cur_sb_col; 27 int *cur_sb_col;
27 // The optimal sync_range for different resolution and platform should be 28 // The optimal sync_range for different resolution and platform should be
(...skipping 15 matching lines...) Expand all
43 44
44 // Multi-threaded loopfilter that uses the tile threads. 45 // Multi-threaded loopfilter that uses the tile threads.
45 void vp9_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame, 46 void vp9_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame,
46 struct VP9Common *cm, 47 struct VP9Common *cm,
47 struct macroblockd_plane planes[MAX_MB_PLANE], 48 struct macroblockd_plane planes[MAX_MB_PLANE],
48 int frame_filter_level, 49 int frame_filter_level,
49 int y_only, int partial_frame, 50 int y_only, int partial_frame,
50 VP9Worker *workers, int num_workers, 51 VP9Worker *workers, int num_workers,
51 VP9LfSync *lf_sync); 52 VP9LfSync *lf_sync);
52 53
54 void vp9_accumulate_frame_counts(struct VP9Common *cm,
55 struct FRAME_COUNTS *counts, int is_dec);
56
53 #endif // VP9_COMMON_VP9_LOOPFILTER_THREAD_H_ 57 #endif // VP9_COMMON_VP9_LOOPFILTER_THREAD_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_thread.h ('k') | source/libvpx/vp9/common/vp9_thread_common.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698