| OLD | NEW |
| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(struct VP9Common *cm, | 107 void vp9_loop_filter_frame(YV12_BUFFER_CONFIG *frame, |
| 108 struct VP9Common *cm, |
| 108 struct macroblockd *mbd, | 109 struct macroblockd *mbd, |
| 109 int filter_level, | 110 int filter_level, |
| 110 int y_only, int partial_frame); | 111 int y_only, int partial_frame); |
| 111 | 112 |
| 112 // 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. |
| 113 void vp9_loop_filter_rows(const YV12_BUFFER_CONFIG *frame_buffer, | 114 void vp9_loop_filter_rows(const YV12_BUFFER_CONFIG *frame_buffer, |
| 114 struct VP9Common *cm, struct macroblockd *xd, | 115 struct VP9Common *cm, struct macroblockd *xd, |
| 115 int start, int stop, int y_only); | 116 int start, int stop, int y_only); |
| 116 | 117 |
| 117 typedef struct LoopFilterWorkerData { | 118 typedef struct LoopFilterWorkerData { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 128 int num_lf_workers; | 129 int num_lf_workers; |
| 129 } LFWorkerData; | 130 } LFWorkerData; |
| 130 | 131 |
| 131 // Operates on the rows described by LFWorkerData passed as 'arg1'. | 132 // Operates on the rows described by LFWorkerData passed as 'arg1'. |
| 132 int vp9_loop_filter_worker(void *arg1, void *arg2); | 133 int vp9_loop_filter_worker(void *arg1, void *arg2); |
| 133 #ifdef __cplusplus | 134 #ifdef __cplusplus |
| 134 } // extern "C" | 135 } // extern "C" |
| 135 #endif | 136 #endif |
| 136 | 137 |
| 137 #endif // VP9_COMMON_VP9_LOOPFILTER_H_ | 138 #endif // VP9_COMMON_VP9_LOOPFILTER_H_ |
| OLD | NEW |