31 |
* |
* |
32 |
* History |
* History |
33 |
* |
* |
34 |
|
* - 23.06.2002 added XVID_CPU_CHKONLY |
35 |
* - 17.03.2002 Added interpolate8x8_halfpel_hv_xmm |
* - 17.03.2002 Added interpolate8x8_halfpel_hv_xmm |
36 |
* - 22.12.2001 API change: added xvid_init() - Isibaar |
* - 22.12.2001 API change: added xvid_init() - Isibaar |
37 |
* - 16.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
* - 16.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
38 |
* |
* |
39 |
* $Id: xvid.c,v 1.20 2002-06-21 16:12:47 suxen_drol Exp $ |
* $Id: xvid.c,v 1.21 2002-06-23 03:58:32 suxen_drol Exp $ |
40 |
* |
* |
41 |
****************************************************************************/ |
****************************************************************************/ |
42 |
|
|
81 |
|
|
82 |
init_param = (XVID_INIT_PARAM *) param1; |
init_param = (XVID_INIT_PARAM *) param1; |
83 |
|
|
84 |
|
/* Inform the client the API version */ |
85 |
|
init_param->api_version = API_VERSION; |
86 |
|
|
87 |
|
/* Inform the client the core build - unused because we're still alpha */ |
88 |
|
init_param->core_build = 1000; |
89 |
|
|
90 |
|
if ((init_param->cpu_flags & XVID_CPU_CHKONLY)) |
91 |
|
{ |
92 |
|
init_param->cpu_flags = check_cpu_features(); |
93 |
|
return XVID_ERR_OK; |
94 |
|
} |
95 |
|
|
96 |
/* Do we have to force CPU features ? */ |
/* Do we have to force CPU features ? */ |
97 |
if ((init_param->cpu_flags & XVID_CPU_FORCE) > 0) { |
if ((init_param->cpu_flags & XVID_CPU_FORCE) > 0) { |
98 |
cpu_flags = init_param->cpu_flags; |
cpu_flags = init_param->cpu_flags; |
319 |
#endif |
#endif |
320 |
#endif |
#endif |
321 |
|
|
|
/* Inform the client the API version */ |
|
|
init_param->api_version = API_VERSION; |
|
|
|
|
|
/* Inform the client the core build - unused because we're still alpha */ |
|
|
init_param->core_build = 1000; |
|
|
|
|
322 |
return XVID_ERR_OK; |
return XVID_ERR_OK; |
323 |
} |
} |
324 |
|
|