ref: 21bb9e3a09c25703d04b5b67ae3a6b0190a4496d
parent: e56b1db67a7c9a58943f25f85a04289d8e3bf096
parent: 2bc3d47dd1fb65bd718116b4afb607c961a06872
author: Hui Su <[email protected]>
date: Tue Oct 16 16:58:45 EDT 2018
Merge "Fix a bug in ml_prune_rect_partition()"
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3303,7 +3303,12 @@
{
const int64_t none_rdcost = pc_tree->none.rdcost;
const VP9_COMMON *const cm = &cpi->common;
+#if CONFIG_VP9_HIGHBITDEPTH
+ const int dc_q =
+ vp9_dc_quant(cm->base_qindex, 0, cm->bit_depth) >> (x->e_mbd.bd - 8);
+#else
const int dc_q = vp9_dc_quant(cm->base_qindex, 0, cm->bit_depth);
+#endif // CONFIG_VP9_HIGHBITDEPTH
int feature_index = 0;
unsigned int block_var = 0;
unsigned int sub_block_var[4] = { 0 };