17 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
* |
* |
20 |
* $Id: xvid.c,v 1.45.2.1 2003-02-22 08:49:44 suxen_drol Exp $ |
* $Id: xvid.c,v 1.45.2.4 2003-05-17 13:26:42 suxen_drol Exp $ |
21 |
* |
* |
22 |
****************************************************************************/ |
****************************************************************************/ |
23 |
|
|
45 |
#include "utils/timer.h" |
#include "utils/timer.h" |
46 |
#include "bitstream/mbcoding.h" |
#include "bitstream/mbcoding.h" |
47 |
|
|
48 |
|
#if defined(_DEBUG) |
49 |
|
unsigned int xvid_debug = 0; /* xvid debug mask */ |
50 |
|
#endif |
51 |
|
|
52 |
#if defined(ARCH_IS_IA32) |
#if defined(ARCH_IS_IA32) |
53 |
|
|
54 |
#if defined(_MSC_VER) |
#if defined(_MSC_VER) |
536 |
} |
} |
537 |
#endif |
#endif |
538 |
|
|
539 |
|
#if defined(_DEBUG) |
540 |
|
xvid_debug = init->debug; |
541 |
|
#endif |
542 |
|
|
543 |
return 0; |
return 0; |
544 |
} |
} |
545 |
|
|
648 |
{ |
{ |
649 |
int i, diff = 0; |
int i, diff = 0; |
650 |
for (i = 0; i < size; i++) |
for (i = 0; i < size; i++) |
651 |
diff += ABS(blockA[i]-blockB[i]); |
diff += abs(blockA[i]-blockB[i]); |
652 |
return diff; |
return diff; |
653 |
} |
} |
654 |
|
|
1063 |
(xvid_enc_stats_t *) param2); |
(xvid_enc_stats_t *) param2); |
1064 |
|
|
1065 |
case XVID_ENC_CREATE: |
case XVID_ENC_CREATE: |
1066 |
return enc_create((xvid_enc_create_t *) param1, (xvid_enc_rc_t*)param2); |
return enc_create((xvid_enc_create_t *) param1); |
1067 |
|
|
1068 |
case XVID_ENC_DESTROY: |
case XVID_ENC_DESTROY: |
1069 |
return enc_destroy((Encoder *) handle); |
return enc_destroy((Encoder *) handle); |