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.22 2002-06-23 19:48:06 edgomez Exp $ |
* $Id: xvid.c,v 1.26 2002-07-09 01:09:33 chenm001 Exp $ |
40 |
* |
* |
41 |
****************************************************************************/ |
****************************************************************************/ |
42 |
|
|
87 |
/* Inform the client the core build - unused because we're still alpha */ |
/* Inform the client the core build - unused because we're still alpha */ |
88 |
init_param->core_build = 1000; |
init_param->core_build = 1000; |
89 |
|
|
90 |
|
printf("init_param->cpu_flags %x\n",init_param->cpu_flags);//NIC |
91 |
|
|
92 |
if ((init_param->cpu_flags & XVID_CPU_CHKONLY)) |
if ((init_param->cpu_flags & XVID_CPU_CHKONLY)) |
93 |
{ |
{ |
94 |
init_param->cpu_flags = check_cpu_features(); |
//init_param->cpu_flags = check_cpu_features();//nic |
95 |
return XVID_ERR_OK; |
return XVID_ERR_OK; |
96 |
} |
} |
97 |
|
|
100 |
cpu_flags = init_param->cpu_flags; |
cpu_flags = init_param->cpu_flags; |
101 |
} else { |
} else { |
102 |
|
|
103 |
#ifdef ARCH_X86 |
//cpu_flags = check_cpu_features();//nic |
|
cpu_flags = check_cpu_features(); |
|
|
#else |
|
|
cpu_flags = 0; |
|
|
#endif |
|
104 |
init_param->cpu_flags = cpu_flags; |
init_param->cpu_flags = cpu_flags; |
105 |
} |
} |
106 |
|
|
343 |
return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1); |
return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1); |
344 |
|
|
345 |
case XVID_DEC_CREATE: |
case XVID_DEC_CREATE: |
346 |
return decoder_create((XVID_DEC_PARAM *) param1); |
/* *************************************************************************** |
347 |
|
NIC uso il secondo parametro 'param2' ma in realta` non so bene per cosa e` |
348 |
|
stato pensato ..... e quindi in futuro potrebbe essere un problema |
349 |
|
*************************************************************************** */ |
350 |
|
if(param2!=NULL) |
351 |
|
return IM1_decoder_create((XVID_DEC_PARAM *) param1,(XVID_DEC_FRAME *) param2); |
352 |
|
else |
353 |
|
return decoder_create((XVID_DEC_PARAM *) param1); //NIC commentata |
354 |
|
|
355 |
case XVID_DEC_DESTROY: |
case XVID_DEC_DESTROY: |
356 |
return decoder_destroy((DECODER *) handle); |
return decoder_destroy((DECODER *) handle); |