Commit 021e244a authored by JackyChen's avatar JackyChen Committed by Gerrit Code Review
Browse files

Merge "Use bit_depth in VP9Common as the flag of highbit."

parents 00d22119 b363cedc
...@@ -637,12 +637,6 @@ int vp9_post_proc_frame(struct VP9Common *cm, ...@@ -637,12 +637,6 @@ int vp9_post_proc_frame(struct VP9Common *cm,
YV12_BUFFER_CONFIG *const ppbuf = &cm->post_proc_buffer; YV12_BUFFER_CONFIG *const ppbuf = &cm->post_proc_buffer;
struct postproc_state *const ppstate = &cm->postproc_state; 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) if (!cm->frame_to_show)
return -1; return -1;
...@@ -701,7 +695,7 @@ int vp9_post_proc_frame(struct VP9Common *cm, ...@@ -701,7 +695,7 @@ int vp9_post_proc_frame(struct VP9Common *cm,
"Failed to allocate post-processing buffer"); "Failed to allocate post-processing buffer");
if ((flags & VP9D_MFQE) && cm->current_video_frame >= 2 && 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->postproc_state.last_base_qindex <= last_q_thresh &&
cm->base_qindex - cm->postproc_state.last_base_qindex >= q_diff_thresh) { cm->base_qindex - cm->postproc_state.last_base_qindex >= q_diff_thresh) {
vp9_mfqe(cm); vp9_mfqe(cm);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment