[cvs] / xvidcore / src / xvid.c Repository:
ViewVC logotype

Diff of /xvidcore/src/xvid.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12, Wed Apr 17 10:54:19 2002 UTC revision 1.15, Wed Jun 12 20:38:40 2002 UTC
# Line 55  Line 55 
55  #include "utils/timer.h"  #include "utils/timer.h"
56  #include "bitstream/mbcoding.h"  #include "bitstream/mbcoding.h"
57    
58  int xvid_init(void *handle, int opt, void *param1, void *param2)  int
59    xvid_init(void *handle,
60                      int opt,
61                      void *param1,
62                      void *param2)
63  {  {
64          int cpu_flags;          int cpu_flags;
65          XVID_INIT_PARAM *init_param;          XVID_INIT_PARAM *init_param;
# Line 196  Line 200 
200          }          }
201    
202          if((cpu_flags & XVID_CPU_SSE2) > 0) {          if((cpu_flags & XVID_CPU_SSE2) > 0) {
203  //              calc_cbp = calc_cbp_sse2;  #ifdef EXPERIMENTAL_SSE2_CODE
204  //              sad16 = sad16_sse2;                  quant_intra = quant_intra_sse2;
205  //              quant_inter = quant_inter_sse2;                  dequant_intra = dequant_intra_sse2;
206  //              dequant_inter = dequant_inter_sse2;                  quant_inter = quant_inter_sse2;
207                    dequant_inter = dequant_inter_sse2;
208    
209                    calc_cbp = calc_cbp_sse2;
210                    sad16 = sad16_sse2;
211                    dev16 = dev16_sse2;
212                    idct = idct_sse2;
213                    fdct = fdct_sse2;
214    #endif
215          }          }
   
216  #endif  #endif
217  #ifdef ARCH_PPC  #ifdef ARCH_PPC
218  #ifdef ARCH_PPC_ALTIVEC  #ifdef ARCH_PPC_ALTIVEC
# Line 226  Line 237 
237          return XVID_ERR_OK;          return XVID_ERR_OK;
238  }  }
239    
240  int xvid_decore(void * handle, int opt, void * param1, void * param2)  int
241  {  xvid_decore(void *handle,
242          switch (opt)                          int opt,
243                            void *param1,
244                            void *param2)
245          {          {
246            switch (opt) {
247          case XVID_DEC_DECODE :          case XVID_DEC_DECODE :
248          return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1);          return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1);
249    
# Line 245  Line 259 
259  }  }
260    
261    
262  int xvid_encore(void * handle, int opt, void * param1, void * param2)  int
263  {  xvid_encore(void *handle,
264          switch (opt)                          int opt,
265                            void *param1,
266                            void *param2)
267          {          {
268            switch (opt) {
269          case XVID_ENC_ENCODE :          case XVID_ENC_ENCODE :
270          return encoder_encode((Encoder *) handle, (XVID_ENC_FRAME *) param1, (XVID_ENC_STATS *) param2);                  return encoder_encode((Encoder *) handle, (XVID_ENC_FRAME *) param1,
271                                                              (XVID_ENC_STATS *) param2);
272    
273          case XVID_ENC_CREATE :          case XVID_ENC_CREATE :
274          return encoder_create((XVID_ENC_PARAM *) param1);          return encoder_create((XVID_ENC_PARAM *) param1);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.15

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4