summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_ratectrl.h
diff options
context:
space:
mode:
authorGuillaume Martres <smarter3@gmail.com>2014-04-05 21:57:14 +0200
committerGuillaume Martres <smarter3@gmail.com>2014-04-07 18:21:40 +0200
commitded9e191445c599f4fcc5d75ccf26a8b4c33532e (patch)
tree4ff6bae5095f4a4d5d1388b9e577e9467863d9b2 /vp9/encoder/vp9_ratectrl.h
parentbda5352bae1904c8b6b3308cd2d7a59106810837 (diff)
downloadlibvpx-ded9e191445c599f4fcc5d75ccf26a8b4c33532e.tar
libvpx-ded9e191445c599f4fcc5d75ccf26a8b4c33532e.tar.gz
libvpx-ded9e191445c599f4fcc5d75ccf26a8b4c33532e.tar.bz2
libvpx-ded9e191445c599f4fcc5d75ccf26a8b4c33532e.zip
vp9_firstpass: Get rid of magic number in bits per MB calculation
Change-Id: Ib3886cb7cafc211581f4f9e7f76782d9d1984434
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.h')
-rw-r--r--vp9/encoder/vp9_ratectrl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_ratectrl.h b/vp9/encoder/vp9_ratectrl.h
index f2d128c2d..1d8ba6692 100644
--- a/vp9/encoder/vp9_ratectrl.h
+++ b/vp9/encoder/vp9_ratectrl.h
@@ -22,6 +22,9 @@ extern "C" {
#define FRAME_OVERHEAD_BITS 200
+// Bits Per MB at different Q (Multiplied by 512)
+#define BPER_MB_NORMBITS 9
+
typedef struct {
// Rate targetting variables
int this_frame_target;