From b363cedcd13f39680439d927c9261fd1c53ea1a7 Mon Sep 17 00:00:00 2001 From: JackyChen Date: Tue, 16 Dec 2014 14:17:14 -0800 Subject: [PATCH] Use bit_depth in VP9Common as the flag of highbit. Change-Id: I881aefbe68f9c10bb4629a2a5ee1e42a225d5ab7 --- vp9/common/vp9_postproc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vp9/common/vp9_postproc.c b/vp9/common/vp9_postproc.c index 6b316751b..f6052158a 100644 --- a/vp9/common/vp9_postproc.c +++ b/vp9/common/vp9_postproc.c @@ -637,12 +637,6 @@ int vp9_post_proc_frame(struct VP9Common *cm, YV12_BUFFER_CONFIG *const ppbuf = &cm->post_proc_buffer; struct postproc_state *const ppstate = &cm->postproc_state; -#if CONFIG_VP9_HIGHBITDEPTH - const int flag_highbit = 1; -#else - const int flag_highbit = 0; -#endif - if (!cm->frame_to_show) return -1; @@ -699,7 +693,7 @@ int vp9_post_proc_frame(struct VP9Common *cm, "Failed to allocate post-processing buffer"); if ((flags & VP9D_MFQE) && cm->current_video_frame >= 2 && - cm->postproc_state.last_frame_valid && !flag_highbit && + cm->postproc_state.last_frame_valid && cm->bit_depth == 8 && cm->postproc_state.last_base_qindex <= last_q_thresh && cm->base_qindex - cm->postproc_state.last_base_qindex >= q_diff_thresh) { vp9_mfqe(cm); -- 2.40.0