3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Native API implementation - |
* - Native API implementation - |
5 |
* |
* |
6 |
|
* Copyright(C) 2001-2002 Peter Ross <pross@cs.rmit.edu.au> |
7 |
|
* |
8 |
* This program is an implementation of a part of one or more MPEG-4 |
* This program is an implementation of a part of one or more MPEG-4 |
9 |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
10 |
* to use this software module in hardware or software products are |
* to use this software module in hardware or software products are |
30 |
* |
* |
31 |
****************************************************************************/ |
****************************************************************************/ |
32 |
|
|
|
/***************************************************************************** |
|
|
* |
|
|
* History |
|
|
* |
|
|
* - 23.06.2002 added XVID_CPU_CHKONLY |
|
|
* - 17.03.2002 Added interpolate8x8_halfpel_hv_xmm |
|
|
* - 22.12.2001 API change: added xvid_init() - Isibaar |
|
|
* - 16.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
|
|
* |
|
|
* $Id: xvid.c,v 1.33 2002-07-23 12:59:57 suxen_drol Exp $ |
|
|
* |
|
|
****************************************************************************/ |
|
|
|
|
33 |
#include "xvid.h" |
#include "xvid.h" |
34 |
#include "decoder.h" |
#include "decoder.h" |
35 |
#include "encoder.h" |
#include "encoder.h" |
70 |
|
|
71 |
|
|
72 |
/* |
/* |
73 |
calls the funcptr, and returns whether SIGILL (illegal instruction) was signalled |
* Calls the funcptr, and returns whether SIGILL (illegal instruction) was signalled |
74 |
return values: |
* Return values: |
75 |
-1 : could not determine |
* -1 : could not determine |
76 |
0 : SIGILL was *not* signalled |
* 0 : SIGILL was *not* signalled |
77 |
1 : SIGILL was signalled |
* 1 : SIGILL was signalled |
78 |
*/ |
*/ |
79 |
|
|
80 |
int |
int |
462 |
{ |
{ |
463 |
switch (opt) { |
switch (opt) { |
464 |
case XVID_ENC_ENCODE: |
case XVID_ENC_ENCODE: |
|
#ifdef BFRAMES |
|
|
if (((Encoder *) handle)->mbParam.max_bframes >= 0) |
|
|
return encoder_encode_bframes((Encoder *) handle, (XVID_ENC_FRAME *) param1, |
|
|
(XVID_ENC_STATS *) param2); |
|
|
else |
|
|
#endif |
|
465 |
return encoder_encode((Encoder *) handle, (XVID_ENC_FRAME *) param1, |
return encoder_encode((Encoder *) handle, (XVID_ENC_FRAME *) param1, |
466 |
(XVID_ENC_STATS *) param2); |
(XVID_ENC_STATS *) param2); |
467 |
|
|