50 |
* * |
* * |
51 |
******************************************************************************/ |
******************************************************************************/ |
52 |
|
|
53 |
|
#include "../global.h" |
54 |
#include "../encoder.h" |
#include "../encoder.h" |
55 |
#include "mbprediction.h" |
#include "mbprediction.h" |
56 |
#include "../utils/mbfunctions.h" |
#include "../utils/mbfunctions.h" |
57 |
#include "../bitstream/cbp.h" |
#include "../bitstream/cbp.h" |
58 |
|
|
59 |
|
|
|
#define ABS(X) (((X)>0)?(X):-(X)) |
|
|
#define DIV_DIV(A,B) ( (A) > 0 ? ((A)+((B)>>1))/(B) : ((A)-((B)>>1))/(B) ) |
|
|
|
|
|
|
|
60 |
static int __inline |
static int __inline |
61 |
rescale(int predict_quant, |
rescale(int predict_quant, |
62 |
int current_quant, |
int current_quant, |