vp9_loopfilter.c: make some functions static
+ drop 'vp9_' Change-Id: I8c8f1f421f7fc84d2efb80349cd725de3c9bf6bd
This commit is contained in:
@@ -33,8 +33,7 @@ static void lf_init_lut(loop_filter_info_n *lfi) {
|
|||||||
lfi->mode_lf_lut[NEWMV] = 1;
|
lfi->mode_lf_lut[NEWMV] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vp9_loop_filter_update_sharpness(loop_filter_info_n *lfi,
|
static void update_sharpness(loop_filter_info_n *const lfi, int sharpness_lvl) {
|
||||||
int sharpness_lvl) {
|
|
||||||
int lvl;
|
int lvl;
|
||||||
|
|
||||||
// For each possible value for the loop filter fill out limits
|
// For each possible value for the loop filter fill out limits
|
||||||
@@ -62,7 +61,7 @@ void vp9_loop_filter_init(VP9_COMMON *cm) {
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
// init limits for given sharpness
|
// init limits for given sharpness
|
||||||
vp9_loop_filter_update_sharpness(lfi, cm->sharpness_level);
|
update_sharpness(lfi, cm->sharpness_level);
|
||||||
cm->last_sharpness_level = cm->sharpness_level;
|
cm->last_sharpness_level = cm->sharpness_level;
|
||||||
|
|
||||||
// init LUT for lvl and hev thr picking
|
// init LUT for lvl and hev thr picking
|
||||||
@@ -73,8 +72,8 @@ void vp9_loop_filter_init(VP9_COMMON *cm) {
|
|||||||
vpx_memset(lfi->hev_thr[i], i, SIMD_WIDTH);
|
vpx_memset(lfi->hev_thr[i], i, SIMD_WIDTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
void vp9_loop_filter_frame_init(VP9_COMMON *cm, MACROBLOCKD *xd,
|
static void loop_filter_frame_init(VP9_COMMON *const cm, MACROBLOCKD *const xd,
|
||||||
int default_filt_lvl) {
|
int default_filt_lvl) {
|
||||||
int seg;
|
int seg;
|
||||||
// n_shift is the a multiplier for lf_deltas
|
// n_shift is the a multiplier for lf_deltas
|
||||||
// the multiplier is 1 for when filter_lvl is between 0 and 31;
|
// the multiplier is 1 for when filter_lvl is between 0 and 31;
|
||||||
@@ -84,7 +83,7 @@ void vp9_loop_filter_frame_init(VP9_COMMON *cm, MACROBLOCKD *xd,
|
|||||||
|
|
||||||
// update limits if sharpness has changed
|
// update limits if sharpness has changed
|
||||||
if (cm->last_sharpness_level != cm->sharpness_level) {
|
if (cm->last_sharpness_level != cm->sharpness_level) {
|
||||||
vp9_loop_filter_update_sharpness(lfi, cm->sharpness_level);
|
update_sharpness(lfi, cm->sharpness_level);
|
||||||
cm->last_sharpness_level = cm->sharpness_level;
|
cm->last_sharpness_level = cm->sharpness_level;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,7 +354,7 @@ void vp9_loop_filter_frame(VP9_COMMON *cm, MACROBLOCKD *xd,
|
|||||||
int mi_row, mi_col;
|
int mi_row, mi_col;
|
||||||
|
|
||||||
// Initialize the loop filter for this frame.
|
// Initialize the loop filter for this frame.
|
||||||
vp9_loop_filter_frame_init(cm, xd, frame_filter_level);
|
loop_filter_frame_init(cm, xd, frame_filter_level);
|
||||||
|
|
||||||
for (mi_row = 0; mi_row < cm->mi_rows; mi_row += MI_BLOCK_SIZE) {
|
for (mi_row = 0; mi_row < cm->mi_rows; mi_row += MI_BLOCK_SIZE) {
|
||||||
MODE_INFO* const mi = cm->mi + mi_row * cm->mode_info_stride;
|
MODE_INFO* const mi = cm->mi + mi_row * cm->mode_info_stride;
|
||||||
|
@@ -68,20 +68,8 @@ struct macroblockd;
|
|||||||
|
|
||||||
void vp9_loop_filter_init(struct VP9Common *cm);
|
void vp9_loop_filter_init(struct VP9Common *cm);
|
||||||
|
|
||||||
void vp9_loop_filter_frame_init(struct VP9Common *cm,
|
|
||||||
struct macroblockd *mbd,
|
|
||||||
int default_filt_lvl);
|
|
||||||
|
|
||||||
void vp9_loop_filter_frame(struct VP9Common *cm,
|
void vp9_loop_filter_frame(struct VP9Common *cm,
|
||||||
struct macroblockd *mbd,
|
struct macroblockd *mbd,
|
||||||
int filter_level,
|
int filter_level,
|
||||||
int y_only);
|
int y_only);
|
||||||
|
|
||||||
void vp9_loop_filter_partial_frame(struct VP9Common *cm,
|
|
||||||
struct macroblockd *mbd,
|
|
||||||
int default_filt_lvl);
|
|
||||||
|
|
||||||
void vp9_loop_filter_update_sharpness(loop_filter_info_n *lfi,
|
|
||||||
int sharpness_lvl);
|
|
||||||
|
|
||||||
#endif // VP9_COMMON_VP9_LOOPFILTER_H_
|
#endif // VP9_COMMON_VP9_LOOPFILTER_H_
|
||||||
|
Reference in New Issue
Block a user