42 |
* * |
* * |
43 |
* Revision history: * |
* Revision history: * |
44 |
* * |
* * |
45 |
* 29.03.2002 interlacing speedup - used transfer strides instead of |
* 29.03.2002 interlacing speedup - used transfer strides instead of * |
46 |
* manual field-to-frame conversion |
* manual field-to-frame conversion * |
47 |
* 26.03.2002 interlacing support - moved transfers outside loops |
* 26.03.2002 interlacing support - moved transfers outside loops * |
48 |
* 22.12.2001 get_dc_scaler() moved to common.h |
* 22.12.2001 get_dc_scaler() moved to common.h * |
49 |
* 19.11.2001 introduced coefficient thresholding (Isibaar) * |
* 19.11.2001 introduced coefficient thresholding (Isibaar) * |
50 |
* 17.11.2001 initial version * |
* 17.11.2001 initial version * |
51 |
* * |
* * |
68 |
#define MIN(X, Y) ((X)<(Y)?(X):(Y)) |
#define MIN(X, Y) ((X)<(Y)?(X):(Y)) |
69 |
#define MAX(X, Y) ((X)>(Y)?(X):(Y)) |
#define MAX(X, Y) ((X)>(Y)?(X):(Y)) |
70 |
|
|
71 |
#define TOOSMALL_LIMIT 1 /* skip blocks having a coefficient sum below this value */ |
#define TOOSMALL_LIMIT 3 /* skip blocks having a coefficient sum below this value */ |
72 |
|
|
73 |
/* this isnt pretty, but its better than 20 ifdefs */ |
/* this isnt pretty, but its better than 20 ifdefs */ |
74 |
|
|
207 |
stop_quant_timer(); |
stop_quant_timer(); |
208 |
} |
} |
209 |
|
|
210 |
if (sum >= TOOSMALL_LIMIT) { // skip block ? |
if ((sum >= TOOSMALL_LIMIT) || (qcoeff[i*64] != 0) || |
211 |
|
(qcoeff[i*64+1] != 0) || (qcoeff[i*64+8] != 0)) { |
212 |
|
|
213 |
if (pParam->m_quant_type == H263_QUANT) { |
if (pParam->m_quant_type == H263_QUANT) { |
214 |
start_timer(); |
start_timer(); |