summaryrefslogtreecommitdiff
path: root/vpx_dsp/vpx_dsp_common.h
diff options
context:
space:
mode:
authorDeepa K G <deepa.kg@ittiam.com>2019-05-17 16:05:06 +0530
committerDeepa K G <deepa.kg@ittiam.com>2019-05-21 12:15:43 +0530
commit869d82d656eaea8f0db1df6364af4d22875103f4 (patch)
treeb57f956517373845a12681503ce26e6549bc8edb /vpx_dsp/vpx_dsp_common.h
parentc87ff4a09ddf50152918c127eebf11e3a6ef7b1e (diff)
downloadlibvpx-869d82d656eaea8f0db1df6364af4d22875103f4.tar
libvpx-869d82d656eaea8f0db1df6364af4d22875103f4.tar.gz
libvpx-869d82d656eaea8f0db1df6364af4d22875103f4.tar.bz2
libvpx-869d82d656eaea8f0db1df6364af4d22875103f4.zip
Increase the bits allocated to key frame
Based on the spatial complexity, increase the bits allocated to key frame. Change-Id: I4f96990a13bcc3bdb7a22d50e67e2bd622f1ff7b
Diffstat (limited to 'vpx_dsp/vpx_dsp_common.h')
-rw-r--r--vpx_dsp/vpx_dsp_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vpx_dsp/vpx_dsp_common.h b/vpx_dsp/vpx_dsp_common.h
index f1fcf2df5..2de449546 100644
--- a/vpx_dsp/vpx_dsp_common.h
+++ b/vpx_dsp/vpx_dsp_common.h
@@ -57,6 +57,10 @@ static INLINE double fclamp(double value, double low, double high) {
return value < low ? low : (value > high ? high : value);
}
+static INLINE int64_t lclamp(int64_t value, int64_t low, int64_t high) {
+ return value < low ? low : (value > high ? high : value);
+}
+
static INLINE uint16_t clip_pixel_highbd(int val, int bd) {
switch (bd) {
case 8: