projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce328b8
)
vp8e - force at least some change in over and under shoots
author
Paul Wilkins
<paulwilkins@google.com>
Wed, 29 Feb 2012 20:32:46 +0000
(12:32 -0800)
committer
Jim Bankoski
<jimbankoski@google.com>
Thu, 1 Mar 2012 18:35:22 +0000
(10:35 -0800)
Change-Id: Ie1796f272dc33bf5a1c8ac990da625961d272aa9
vp8/encoder/ratectrl.c
patch
|
blob
|
history
diff --git
a/vp8/encoder/ratectrl.c
b/vp8/encoder/ratectrl.c
index f4ed30026e77ef5bec20f845a35a5e2b915d1f29..bf84035aa7823e6dceaee1722303011ad983bde8 100644
(file)
--- a/
vp8/encoder/ratectrl.c
+++ b/
vp8/encoder/ratectrl.c
@@
-1532,6
+1532,15
@@
void vp8_compute_frame_size_bounds(VP8_COMP *cpi, int *frame_under_shoot_limit,
}
}
}
+
+ // For very small rate targets where the fractional adjustment
+ // (eg * 7/8) may be tiny make sure there is at least a minimum
+ // range.
+ *frame_over_shoot_limit += 200;
+ *frame_under_shoot_limit -= 200;
+ if ( *frame_under_shoot_limit < 0 )
+ *frame_under_shoot_limit = 0;
+
}
}