comparison dec_video.c @ 1309:598e3047ce13

Add some preliminary support for non-x86 architectures to mplayer
author jkeil
date Thu, 12 Jul 2001 15:35:52 +0000
parents 200c03672178
children b12e1817bcc2
comparison
equal deleted inserted replaced
1308:ffd63a75700c 1309:598e3047ce13
74 74
75 int init_video(sh_video_t *sh_video){ 75 int init_video(sh_video_t *sh_video){
76 unsigned int out_fmt=sh_video->codec->outfmt[sh_video->outfmtidx]; 76 unsigned int out_fmt=sh_video->codec->outfmt[sh_video->outfmtidx];
77 77
78 switch(sh_video->codec->driver){ 78 switch(sh_video->codec->driver){
79 #ifdef ARCH_X86
79 case 2: { 80 case 2: {
80 if(!init_video_codec(sh_video,0)) { 81 if(!init_video_codec(sh_video,0)) {
81 // GUI_MSG( mplUnknowError ) 82 // GUI_MSG( mplUnknowError )
82 // exit(1); 83 // exit(1);
83 return 0; 84 return 0;
140 141
141 if(verbose) printf("INFO: Win32/DShow video codec init OK!\n"); 142 if(verbose) printf("INFO: Win32/DShow video codec init OK!\n");
142 break; 143 break;
143 #endif 144 #endif
144 } 145 }
146 #else /* !ARCH_X86 */
147 case 2:
148 case 4:
149 case 6:
150 fprintf(stderr,"MPlayer does not support win32 codecs on non-x86 platforms!\n");
151 return 0;
152 #endif /* !ARCH_X86 */
145 case 3: { // OpenDivX 153 case 3: { // OpenDivX
146 if(verbose) printf("OpenDivX video codec\n"); 154 if(verbose) printf("OpenDivX video codec\n");
147 { DEC_PARAM dec_param; 155 { DEC_PARAM dec_param;
148 DEC_SET dec_set; 156 DEC_SET dec_set;
149 #ifdef NEW_DECORE 157 #ifdef NEW_DECORE
317 325
318 break; 326 break;
319 } 327 }
320 #endif 328 #endif
321 case 6: 329 case 6:
322 case 2: { 330 case 2:
331 #ifdef ARCH_X86
332 {
323 HRESULT ret; 333 HRESULT ret;
324 unsigned int t=GetTimer(); 334 unsigned int t=GetTimer();
325 unsigned int t2; 335 unsigned int t2;
326 336
327 if(in_size){ 337 if(in_size){
366 t2=GetTimer()-t2;vout_time_usage+=t2*0.000001f; 376 t2=GetTimer()-t2;vout_time_usage+=t2*0.000001f;
367 blit_frame=1; 377 blit_frame=1;
368 } 378 }
369 break; 379 break;
370 } 380 }
381 #else
382 printf("Win32 video codec unavailable on non-x86 CPU -> force nosound :(\n");
383 break;
384 #endif
371 case 1: { 385 case 1: {
372 int in_frame=0; 386 int in_frame=0;
373 int t=0; 387 int t=0;
374 float newfps; 388 float newfps;
375 389