From: James Zern Date: Sun, 31 Aug 2014 02:01:25 +0000 (-0700) Subject: vp9_loop_filter_alloc: reorder parameters X-Git-Tag: v1.4.0~813^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=958a15f0068e9fc47bd4a4ec90902e6f398b99c6;p=platform%2Fupstream%2Flibvpx.git vp9_loop_filter_alloc: reorder parameters VP9LfSync lf_sync is being operated on, make it the first parameter as in dealloc Change-Id: Id3cdf6b6a48157627780ae0d5d4b7dfa94a78078 --- diff --git a/vp9/decoder/vp9_dthread.c b/vp9/decoder/vp9_dthread.c index b82ea6a..e6ce14d 100644 --- a/vp9/decoder/vp9_dthread.c +++ b/vp9/decoder/vp9_dthread.c @@ -149,7 +149,7 @@ void vp9_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame, // This always needs to be done even if frame_filter_level is 0. if (!lf_sync->sync_range || cm->last_height != cm->height) { vp9_loop_filter_dealloc(lf_sync); - vp9_loop_filter_alloc(cm, lf_sync, sb_rows, cm->width); + vp9_loop_filter_alloc(lf_sync, cm, sb_rows, cm->width); } if (!frame_filter_level) return; @@ -216,7 +216,7 @@ static int get_sync_range(int width) { } // Allocate memory for lf row synchronization -void vp9_loop_filter_alloc(VP9_COMMON *cm, VP9LfSync *lf_sync, int rows, +void vp9_loop_filter_alloc(VP9LfSync *lf_sync, VP9_COMMON *cm, int rows, int width) { lf_sync->rows = rows; #if CONFIG_MULTITHREAD diff --git a/vp9/decoder/vp9_dthread.h b/vp9/decoder/vp9_dthread.h index 8b02ef7..b1fbdeb 100644 --- a/vp9/decoder/vp9_dthread.h +++ b/vp9/decoder/vp9_dthread.h @@ -42,8 +42,8 @@ typedef struct VP9LfSyncData { } VP9LfSync; // Allocate memory for loopfilter row synchronization. -void vp9_loop_filter_alloc(struct VP9Common *cm, VP9LfSync *lf_sync, - int rows, int width); +void vp9_loop_filter_alloc(VP9LfSync *lf_sync, VP9_COMMON *cm, int rows, + int width); // Deallocate loopfilter synchronization related mutex and data. void vp9_loop_filter_dealloc(VP9LfSync *lf_sync);