1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - DivX 4.0 Compatibility API - |
5 |
|
* |
6 |
|
* This file is part of XviD, a free MPEG-4 video encoder/decoder |
7 |
|
* |
8 |
|
* This program is free software; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
10 |
|
* the Free Software Foundation; either version 2 of the License, or |
11 |
|
* (at your option) any later version. |
12 |
|
* |
13 |
|
* This program is distributed in the hope that it will be useful, |
14 |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
* GNU General Public License for more details. |
17 |
|
* |
18 |
|
* You should have received a copy of the GNU General Public License |
19 |
|
* along with this program; if not, write to the Free Software |
20 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
|
* |
22 |
|
* $Id: divx4.h,v 1.7 2003-02-17 22:55:02 edgomez Exp $ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
#ifndef _DIVX4_H_ |
#ifndef _DIVX4_H_ |
27 |
#define _DIVX4_H_ |
#define _DIVX4_H_ |
28 |
|
|
29 |
#ifdef __cplusplus |
#ifdef __cplusplus |
30 |
extern "C" |
extern "C" { |
|
{ |
|
|
#endif |
|
|
|
|
|
#if ((! defined(ARCH_IS_BIG_ENDIAN)) && (! defined (WIN32)) && (! defined (LINUX)) && (! defined (BEOS))) |
|
|
#define ARCH_IS_BIG_ENDIAN |
|
31 |
#endif |
#endif |
32 |
|
|
33 |
|
/***************************************************************************** |
34 |
/********************************************************************************* |
* Decoder part |
35 |
* Decoder part * |
****************************************************************************/ |
|
*********************************************************************************/ |
|
36 |
|
|
37 |
/* decore commands */ |
/* decore commands */ |
38 |
#define DEC_OPT_MEMORY_REQS 0 |
#define DEC_OPT_MEMORY_REQS 0 |
152 |
|
|
153 |
|
|
154 |
|
|
155 |
/********************************************************************************* |
/***************************************************************************** |
156 |
* Encoder part * |
* Encoder part |
157 |
*********************************************************************************/ |
****************************************************************************/ |
158 |
|
|
159 |
/** |
/** |
160 |
Structure passed as an argument when creating encoder. |
Structure passed as an argument when creating encoder. |
228 |
ENC_RESULT; |
ENC_RESULT; |
229 |
|
|
230 |
/* the prototype of the encore() - main encode engine entrance */ |
/* the prototype of the encore() - main encode engine entrance */ |
231 |
int encore(void *handle, /* handle - the handle of the calling entity, must be unique */ |
int encore(void *handle, /* handle - the handle of the calling entity, must be unique/ |
|
|
|
232 |
int enc_opt, /* enc_opt - the option for encoding, see below */ |
int enc_opt, /* enc_opt - the option for encoding, see below */ |
|
|
|
233 |
void *param1, /* param1 - the parameter 1 (its actually meaning depends on enc_opt */ |
void *param1, /* param1 - the parameter 1 (its actually meaning depends on enc_opt */ |
|
|
|
234 |
void *param2); /* param2 - the parameter 2 (its actually meaning depends on enc_opt */ |
void *param2); /* param2 - the parameter 2 (its actually meaning depends on enc_opt */ |
235 |
|
|
236 |
/* encore options (the enc_opt parameter of encore()) */ |
/* encore options (the enc_opt parameter of encore()) */ |