Commit 53888035 authored by Dmitry Kovalev's avatar Dmitry Kovalev Committed by Gerrit Code Review
Browse files

Merge "Moving #defines to *.c from *.h."

parents 2cba07c6 04227473
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
#include "vp9/encoder/vp9_extend.h" #include "vp9/encoder/vp9_extend.h"
#include "vp9/encoder/vp9_lookahead.h" #include "vp9/encoder/vp9_lookahead.h"
// The max of past frames we want to keep in the queue.
#define MAX_PRE_FRAMES 1
struct lookahead_ctx { struct lookahead_ctx {
unsigned int max_sz; /* Absolute size of the queue */ unsigned int max_sz; /* Absolute size of the queue */
unsigned int sz; /* Number of buffers currently in the queue */ unsigned int sz; /* Number of buffers currently in the queue */
......
...@@ -20,9 +20,6 @@ extern "C" { ...@@ -20,9 +20,6 @@ extern "C" {
#define MAX_LAG_BUFFERS 25 #define MAX_LAG_BUFFERS 25
// The max of past frames we want to keep in the queue.
#define MAX_PRE_FRAMES 1
struct lookahead_entry { struct lookahead_entry {
YV12_BUFFER_CONFIG img; YV12_BUFFER_CONFIG img;
int64_t ts_start; int64_t ts_start;
......
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#define MIN_BPB_FACTOR 0.005 #define MIN_BPB_FACTOR 0.005
#define MAX_BPB_FACTOR 50 #define MAX_BPB_FACTOR 50
#define FRAME_OVERHEAD_BITS 200
// Tables relating active max Q to active min Q // Tables relating active max Q to active min Q
static int kf_low_motion_minq[QINDEX_RANGE]; static int kf_low_motion_minq[QINDEX_RANGE];
static int kf_high_motion_minq[QINDEX_RANGE]; static int kf_high_motion_minq[QINDEX_RANGE];
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
extern "C" { extern "C" {
#endif #endif
#define FRAME_OVERHEAD_BITS 200
// Bits Per MB at different Q (Multiplied by 512) // Bits Per MB at different Q (Multiplied by 512)
#define BPER_MB_NORMBITS 9 #define BPER_MB_NORMBITS 9
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment