19 |
#include "portab.h" |
#include "portab.h" |
20 |
#include "global.h" |
#include "global.h" |
21 |
#include "image/image.h" |
#include "image/image.h" |
22 |
|
#include "utils/ratecontrol.h" |
23 |
|
|
24 |
#define H263_QUANT 0 |
#define H263_QUANT 0 |
25 |
#define MPEG4_QUANT 1 |
#define MPEG4_QUANT 1 |
56 |
uint32_t fincr; |
uint32_t fincr; |
57 |
uint32_t fbase; |
uint32_t fbase; |
58 |
|
|
59 |
|
#ifdef BFRAMES |
60 |
|
int max_bframes; |
61 |
|
#endif |
62 |
|
|
63 |
/* rounding type; alternate 0-1 after each interframe */ |
/* rounding type; alternate 0-1 after each interframe */ |
64 |
/* 1 <= fixed_code <= 4 |
/* 1 <= fixed_code <= 4 |
65 |
automatically adjusted using motion vector statistics inside |
automatically adjusted using motion vector statistics inside |
140 |
|
|
141 |
#ifdef BFRAMES |
#ifdef BFRAMES |
142 |
/* constants */ |
/* constants */ |
|
int max_bframes; |
|
143 |
int bquant_ratio; |
int bquant_ratio; |
144 |
/* vars */ |
/* vars */ |
145 |
int bframenum_head; |
int bframenum_head; |
152 |
IMAGE f_refhv; |
IMAGE f_refhv; |
153 |
#endif |
#endif |
154 |
Statistics sStat; |
Statistics sStat; |
155 |
|
RateControl rate_control; |
156 |
} |
} |
157 |
Encoder; |
Encoder; |
158 |
|
|