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

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

Issue 592203002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/common/vp9_idct.c ('k') | source/libvpx/vp9/common/vp9_loopfilter.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
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 /* assorted loopfilter functions which get used elsewhere */ 83 /* assorted loopfilter functions which get used elsewhere */
84 struct VP9Common; 84 struct VP9Common;
85 struct macroblockd; 85 struct macroblockd;
86 struct VP9LfSyncData; 86 struct VP9LfSyncData;
87 87
88 // This function sets up the bit masks for the entire 64x64 region represented 88 // This function sets up the bit masks for the entire 64x64 region represented
89 // by mi_row, mi_col. 89 // by mi_row, mi_col.
90 void vp9_setup_mask(struct VP9Common *const cm, 90 void vp9_setup_mask(struct VP9Common *const cm,
91 const int mi_row, const int mi_col, 91 const int mi_row, const int mi_col,
92 MODE_INFO **mi_8x8, const int mode_info_stride, 92 MODE_INFO *mi_8x8, const int mode_info_stride,
93 LOOP_FILTER_MASK *lfm); 93 LOOP_FILTER_MASK *lfm);
94 94
95 void vp9_filter_block_plane(struct VP9Common *const cm, 95 void vp9_filter_block_plane(struct VP9Common *const cm,
96 struct macroblockd_plane *const plane, 96 struct macroblockd_plane *const plane,
97 int mi_row, 97 int mi_row,
98 LOOP_FILTER_MASK *lfm); 98 LOOP_FILTER_MASK *lfm);
99 99
100 void vp9_loop_filter_init(struct VP9Common *cm); 100 void vp9_loop_filter_init(struct VP9Common *cm);
101 101
102 // Update the loop filter for the current frame. 102 // Update the loop filter for the current frame.
103 // This should be called before vp9_loop_filter_rows(), vp9_loop_filter_frame() 103 // This should be called before vp9_loop_filter_rows(), vp9_loop_filter_frame()
104 // calls this function directly. 104 // calls this function directly.
105 void vp9_loop_filter_frame_init(struct VP9Common *cm, int default_filt_lvl); 105 void vp9_loop_filter_frame_init(struct VP9Common *cm, int default_filt_lvl);
106 106
107 void vp9_loop_filter_frame(YV12_BUFFER_CONFIG *frame, 107 void vp9_loop_filter_frame(YV12_BUFFER_CONFIG *frame,
108 struct VP9Common *cm, 108 struct VP9Common *cm,
109 struct macroblockd *mbd, 109 struct macroblockd *mbd,
110 int filter_level, 110 int filter_level,
111 int y_only, int partial_frame); 111 int y_only, int partial_frame);
112 112
113 // Apply the loop filter to [start, stop) macro block rows in frame_buffer. 113 // Apply the loop filter to [start, stop) macro block rows in frame_buffer.
114 void vp9_loop_filter_rows(const YV12_BUFFER_CONFIG *frame_buffer, 114 void vp9_loop_filter_rows(YV12_BUFFER_CONFIG *frame_buffer,
115 struct VP9Common *cm, 115 struct VP9Common *cm,
116 struct macroblockd_plane planes[MAX_MB_PLANE], 116 struct macroblockd_plane planes[MAX_MB_PLANE],
117 int start, int stop, int y_only); 117 int start, int stop, int y_only);
118 118
119 typedef struct LoopFilterWorkerData { 119 typedef struct LoopFilterWorkerData {
120 const YV12_BUFFER_CONFIG *frame_buffer; 120 YV12_BUFFER_CONFIG *frame_buffer;
121 struct VP9Common *cm; 121 struct VP9Common *cm;
122 struct macroblockd_plane planes[MAX_MB_PLANE]; 122 struct macroblockd_plane planes[MAX_MB_PLANE];
123 123
124 int start; 124 int start;
125 int stop; 125 int stop;
126 int y_only; 126 int y_only;
127 127
128 struct VP9LfSyncData *lf_sync; 128 struct VP9LfSyncData *lf_sync;
129 int num_lf_workers; 129 int num_lf_workers;
130 } LFWorkerData; 130 } LFWorkerData;
131 131
132 // Operates on the rows described by LFWorkerData passed as 'arg1'. 132 // Operates on the rows described by 'lf_data'.
133 int vp9_loop_filter_worker(void *arg1, void *arg2); 133 int vp9_loop_filter_worker(LFWorkerData *const lf_data, void *unused);
134 #ifdef __cplusplus 134 #ifdef __cplusplus
135 } // extern "C" 135 } // extern "C"
136 #endif 136 #endif
137 137
138 #endif // VP9_COMMON_VP9_LOOPFILTER_H_ 138 #endif // VP9_COMMON_VP9_LOOPFILTER_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_idct.c ('k') | source/libvpx/vp9/common/vp9_loopfilter.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698