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 3 /* skip blocks having a coefficient sum below this value */ |
#define TOOSMALL_LIMIT 2 /* 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 |
|
|
105 |
|
|
106 |
start_timer(); |
start_timer(); |
107 |
pMB->field_dct = 0; |
pMB->field_dct = 0; |
108 |
if ((frame->global_flags & XVID_INTERLACING)) { |
if ((frame->global_flags & XVID_INTERLACING) && |
109 |
|
(x_pos>0) && (x_pos<pParam->mb_width-1) && |
110 |
|
(y_pos>0) && (y_pos<pParam->mb_height-1)) { |
111 |
pMB->field_dct = MBDecideFieldDCT(data); |
pMB->field_dct = MBDecideFieldDCT(data); |
112 |
} |
} |
113 |
stop_interlacing_timer(); |
stop_interlacing_timer(); |
185 |
|
|
186 |
start_timer(); |
start_timer(); |
187 |
pMB->field_dct = 0; |
pMB->field_dct = 0; |
188 |
if ((frame->global_flags & XVID_INTERLACING)) { |
if ((frame->global_flags & XVID_INTERLACING) && |
189 |
|
(x_pos>0) && (x_pos<pParam->mb_width-1) && |
190 |
|
(y_pos>0) && (y_pos<pParam->mb_height-1)) { |
191 |
pMB->field_dct = MBDecideFieldDCT(data); |
pMB->field_dct = MBDecideFieldDCT(data); |
192 |
} |
} |
193 |
stop_interlacing_timer(); |
stop_interlacing_timer(); |