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 |
52 |
uint32_t mb_width; |
uint32_t mb_width; |
53 |
uint32_t mb_height; |
uint32_t mb_height; |
54 |
|
|
55 |
|
/* frame rate increment & base */ |
56 |
|
uint32_t fincr; |
57 |
|
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 |
72 |
|
|
73 |
HINTINFO * hint; |
HINTINFO * hint; |
74 |
|
|
75 |
|
#ifdef BFRAMES |
76 |
|
uint32_t m_seconds; |
77 |
|
uint32_t m_ticks; |
78 |
|
#endif |
79 |
|
|
80 |
} MBParam; |
} MBParam; |
81 |
|
|
82 |
|
|
91 |
uint32_t fcode; |
uint32_t fcode; |
92 |
uint32_t bcode; |
uint32_t bcode; |
93 |
|
|
94 |
uint32_t tick; |
#ifdef BFRAMES |
95 |
|
uint32_t seconds; |
96 |
|
uint32_t ticks; |
97 |
|
#endif |
98 |
|
|
99 |
IMAGE image; |
IMAGE image; |
100 |
|
|
138 |
IMAGE vInterHV; |
IMAGE vInterHV; |
139 |
IMAGE vInterHVf; |
IMAGE vInterHVf; |
140 |
|
|
141 |
|
#ifdef BFRAMES |
142 |
|
/* constants */ |
143 |
|
int bquant_ratio; |
144 |
|
/* vars */ |
145 |
|
int bframenum_head; |
146 |
|
int bframenum_tail; |
147 |
|
int flush_bframes; |
148 |
|
|
149 |
|
FRAMEINFO ** bframes; |
150 |
|
IMAGE f_refh; |
151 |
|
IMAGE f_refv; |
152 |
|
IMAGE f_refhv; |
153 |
|
#endif |
154 |
Statistics sStat; |
Statistics sStat; |
155 |
|
RateControl rate_control; |
156 |
} |
} |
157 |
Encoder; |
Encoder; |
158 |
|
|