diff options
author | Yaowu Xu <yaowu@google.com> | 2018-11-07 11:20:32 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2018-11-07 11:33:07 -0800 |
commit | 5c96d3b82b985df06b586296ecac7ee5ba390b3d (patch) | |
tree | 3488c1f183a98fb91b2a3085cca81f4a74774fbf /vp9/encoder/vp9_rd.h | |
parent | ec12c265e970b220b914587aaf7f26871860e538 (diff) | |
download | libvpx-5c96d3b82b985df06b586296ecac7ee5ba390b3d.tar.gz libvpx-5c96d3b82b985df06b586296ecac7ee5ba390b3d.tar.bz2 libvpx-5c96d3b82b985df06b586296ecac7ee5ba390b3d.zip |
Simplify rdmult computation
Recognizing that max dc_quant used in rdmult computation is 21387 and
21387 * 21387 * 88 / 24 is still within the range of int32_t, this
commit simplifies the computation with minor cleanups.
Change-Id: I2ac7e8315d103c0bb39b70c312c87c0fda47b4f9
Diffstat (limited to 'vp9/encoder/vp9_rd.h')
-rw-r--r-- | vp9/encoder/vp9_rd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_rd.h b/vp9/encoder/vp9_rd.h index a1a98bd91..fa85f2176 100644 --- a/vp9/encoder/vp9_rd.h +++ b/vp9/encoder/vp9_rd.h @@ -134,8 +134,7 @@ struct TileDataEnc; struct VP9_COMP; struct macroblock; -int64_t vp9_compute_rd_mult_based_on_qindex(const struct VP9_COMP *cpi, - int qindex); +int vp9_compute_rd_mult_based_on_qindex(const struct VP9_COMP *cpi, int qindex); int vp9_compute_rd_mult(const struct VP9_COMP *cpi, int qindex); |