| Index: source/libvpx/vp9/common/vp9_loopfilter_thread.h
|
| diff --git a/source/libvpx/vp9/decoder/vp9_dthread.h b/source/libvpx/vp9/common/vp9_loopfilter_thread.h
|
| similarity index 71%
|
| rename from source/libvpx/vp9/decoder/vp9_dthread.h
|
| rename to source/libvpx/vp9/common/vp9_loopfilter_thread.h
|
| index 664aaa32a10abcf7e8cf97af7712e5006fe55fa3..bca357e5225c9f9c307a9cd4e33783d49362149b 100644
|
| --- a/source/libvpx/vp9/decoder/vp9_dthread.h
|
| +++ b/source/libvpx/vp9/common/vp9_loopfilter_thread.h
|
| @@ -8,23 +8,13 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| -#ifndef VP9_DECODER_VP9_DTHREAD_H_
|
| -#define VP9_DECODER_VP9_DTHREAD_H_
|
| -
|
| +#ifndef VP9_COMMON_VP9_LOOPFILTER_THREAD_H_
|
| +#define VP9_COMMON_VP9_LOOPFILTER_THREAD_H_
|
| #include "./vpx_config.h"
|
| +#include "vp9/common/vp9_loopfilter.h"
|
| #include "vp9/common/vp9_thread.h"
|
| -#include "vp9/decoder/vp9_reader.h"
|
| -#include "vpx/internal/vpx_codec_internal.h"
|
|
|
| struct VP9Common;
|
| -struct VP9Decoder;
|
| -
|
| -typedef struct TileWorkerData {
|
| - struct VP9Common *cm;
|
| - vp9_reader bit_reader;
|
| - DECLARE_ALIGNED(16, struct macroblockd, xd);
|
| - struct vpx_internal_error_info error_info;
|
| -} TileWorkerData;
|
|
|
| // Loopfilter row synchronization
|
| typedef struct VP9LfSyncData {
|
| @@ -45,19 +35,19 @@ typedef struct VP9LfSyncData {
|
| } VP9LfSync;
|
|
|
| // Allocate memory for loopfilter row synchronization.
|
| -void vp9_loop_filter_alloc(VP9LfSync *lf_sync, VP9_COMMON *cm, int rows,
|
| +void vp9_loop_filter_alloc(VP9LfSync *lf_sync, struct VP9Common *cm, int rows,
|
| int width, int num_workers);
|
|
|
| // Deallocate loopfilter synchronization related mutex and data.
|
| void vp9_loop_filter_dealloc(VP9LfSync *lf_sync);
|
|
|
| // Multi-threaded loopfilter that uses the tile threads.
|
| -void vp9_loop_filter_frame_mt(VP9LfSync *lf_sync,
|
| - YV12_BUFFER_CONFIG *frame,
|
| - struct macroblockd_plane planes[MAX_MB_PLANE],
|
| +void vp9_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame,
|
| struct VP9Common *cm,
|
| - VP9Worker *workers, int num_workers,
|
| + struct macroblockd_plane planes[MAX_MB_PLANE],
|
| int frame_filter_level,
|
| - int y_only);
|
| + int y_only, int partial_frame,
|
| + VP9Worker *workers, int num_workers,
|
| + VP9LfSync *lf_sync);
|
|
|
| -#endif // VP9_DECODER_VP9_DTHREAD_H_
|
| +#endif // VP9_COMMON_VP9_LOOPFILTER_THREAD_H_
|
|
|