comparison libmpcodecs/dec_video.c @ 5005:24d5713afe2f

old temp vars removed, in-codecs equalizer support added, error message if -vfm N/A
author arpi
date Sat, 09 Mar 2002 21:33:17 +0000
parents fa002f25631e
children 568ca851a05b
comparison
equal deleted inserted replaced
5004:ce6b500c22ae 5005:24d5713afe2f
26 26
27 #include "stheader.h" 27 #include "stheader.h"
28 #include "vd.h" 28 #include "vd.h"
29 29
30 #include "dec_video.h" 30 #include "dec_video.h"
31
32 // ===================================================================
33 // temp hack:
34
35 #ifdef FF_POSTPROCESS
36 #ifndef MBC
37 #define MBC 48
38 #define MBR 36
39 #endif
40 int quant_store[MBR+1][MBC+1]; // [Review]
41 #endif
42
43 //int avcodec_inited=0;
44 31
45 // =================================================================== 32 // ===================================================================
46 33
47 extern int benchmark; 34 extern int benchmark;
48 extern double video_time_usage; 35 extern double video_time_usage;
121 return 1; 108 return 1;
122 } 109 }
123 } 110 }
124 } 111 }
125 try_sw_control: 112 try_sw_control:
126 113 if(mpvdec) return mpvdec->control(sh_video,VDCTRL_SET_EQUALIZER,item,(int)value);
127
128 return 0; 114 return 0;
129 } 115 }
130 116
131 void uninit_video(sh_video_t *sh_video){ 117 void uninit_video(sh_video_t *sh_video){
132 if(!sh_video->inited) return; 118 if(!sh_video->inited) return;
146 132
147 for (i=0; mpcodecs_vd_drivers[i] != NULL; i++) 133 for (i=0; mpcodecs_vd_drivers[i] != NULL; i++)
148 if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver){ 134 if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver){
149 mpvdec=mpcodecs_vd_drivers[i]; break; 135 mpvdec=mpcodecs_vd_drivers[i]; break;
150 } 136 }
151 if(!mpvdec) return 0; // no such driver 137 if(!mpvdec){
138 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Requested video codec family [%s] (vfm=%d) not available (enable it at compile time!)\n",
139 sh_video->codec->name, sh_video->codec->driver);
140 return 0; // no such driver
141 }
152 142
153 printf("Selecting Video Decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name); 143 printf("Selecting Video Decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name);
154 144
155 if(!mpvdec->init(sh_video)){ 145 if(!mpvdec->init(sh_video)){
156 printf("VDecoder init failed :(\n"); 146 printf("VDecoder init failed :(\n");