--- xvid.c 2002/06/23 19:48:06 1.22 +++ xvid.c 2002/07/09 01:44:44 1.28 @@ -36,7 +36,7 @@ * - 22.12.2001 API change: added xvid_init() - Isibaar * - 16.12.2001 inital version; (c)2001 peter ross * - * $Id: xvid.c,v 1.22 2002/06/23 19:48:06 edgomez Exp $ + * $Id: xvid.c,v 1.28 2002/07/09 01:44:44 chenm001 Exp $ * ****************************************************************************/ @@ -87,9 +87,11 @@ /* Inform the client the core build - unused because we're still alpha */ init_param->core_build = 1000; + printf("init_param->cpu_flags %x\n",init_param->cpu_flags);//NIC + if ((init_param->cpu_flags & XVID_CPU_CHKONLY)) { - init_param->cpu_flags = check_cpu_features(); + //init_param->cpu_flags = check_cpu_features();//nic return XVID_ERR_OK; } @@ -98,11 +100,7 @@ cpu_flags = init_param->cpu_flags; } else { -#ifdef ARCH_X86 - cpu_flags = check_cpu_features(); -#else - cpu_flags = 0; -#endif + //cpu_flags = check_cpu_features();//nic init_param->cpu_flags = cpu_flags; } @@ -345,7 +343,14 @@ return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1); case XVID_DEC_CREATE: - return decoder_create((XVID_DEC_PARAM *) param1); + /* *************************************************************************** + NIC uso il secondo parametro 'param2' ma in realta` non so bene per cosa e` + stato pensato ..... e quindi in futuro potrebbe essere un problema + *************************************************************************** */ + if(param2!=NULL) + return IM1_decoder_create((XVID_DEC_PARAM *) param1,(XVID_DEC_FRAME *) param2); + else + return decoder_create((XVID_DEC_PARAM *) param1); //NIC commentata case XVID_DEC_DESTROY: return decoder_destroy((DECODER *) handle);