Mercurial > mplayer.hg
comparison libvo/vosub_vidix.c @ 4234:0ec1d81c8f94
sorry, i really wanted to add vidix_start and stop as int, to detect if something went into the wrong way (also implement check in vo_xvidix)
author | alex |
---|---|
date | Fri, 18 Jan 2002 10:41:31 +0000 |
parents | c7a8f3125805 |
children | a7d6ea555c2e |
comparison
equal
deleted
inserted
replaced
4233:ef2abfbbd1df | 4234:0ec1d81c8f94 |
---|---|
162 extern int vo_gamma_green_intense; | 162 extern int vo_gamma_green_intense; |
163 extern int vo_gamma_blue_intense; | 163 extern int vo_gamma_blue_intense; |
164 | 164 |
165 vidix_video_eq_t vid_eq; | 165 vidix_video_eq_t vid_eq; |
166 | 166 |
167 void vidix_start(void) | 167 int vidix_start(void) |
168 { | 168 { |
169 int err; | 169 int err; |
170 | 170 |
171 if(verbose > 1) | 171 if(verbose > 1) |
172 { | 172 { |
186 ,vo_gamma_blue_intense); | 186 ,vo_gamma_blue_intense); |
187 } | 187 } |
188 if((err=vdlPlaybackOn(vidix_handler))!=0) | 188 if((err=vdlPlaybackOn(vidix_handler))!=0) |
189 { | 189 { |
190 printf("vosub_vidix: Can't start playback: %s\n",strerror(err)); | 190 printf("vosub_vidix: Can't start playback: %s\n",strerror(err)); |
191 return; | 191 return -1; |
192 } | 192 } |
193 vid_eq.brightness = vo_gamma_brightness; | 193 vid_eq.brightness = vo_gamma_brightness; |
194 vid_eq.saturation = vo_gamma_saturation; | 194 vid_eq.saturation = vo_gamma_saturation; |
195 vid_eq.contrast = vo_gamma_contrast; | 195 vid_eq.contrast = vo_gamma_contrast; |
196 vid_eq.hue = vo_gamma_hue; | 196 vid_eq.hue = vo_gamma_hue; |
197 vid_eq.red_intense = vo_gamma_red_intense; | 197 vid_eq.red_intense = vo_gamma_red_intense; |
198 vid_eq.green_intense = vo_gamma_green_intense; | 198 vid_eq.green_intense = vo_gamma_green_intense; |
199 vid_eq.blue_intense = vo_gamma_blue_intense; | 199 vid_eq.blue_intense = vo_gamma_blue_intense; |
200 vid_eq.flags = VEQ_FLG_ITU_R_BT_601; | 200 vid_eq.flags = VEQ_FLG_ITU_R_BT_601; |
201 vdlPlaybackSetEq(vidix_handler,&vid_eq); | 201 vdlPlaybackSetEq(vidix_handler,&vid_eq); |
202 return; | 202 return 0; |
203 } | 203 } |
204 | 204 |
205 void vidix_stop(void) | 205 int vidix_stop(void) |
206 { | 206 { |
207 int err; | 207 int err; |
208 if((err=vdlPlaybackOff(vidix_handler))!=0) | 208 if((err=vdlPlaybackOff(vidix_handler))!=0) |
209 { | 209 { |
210 printf("vosub_vidix: Can't stop playback: %s\n",strerror(err)); | 210 printf("vosub_vidix: Can't stop playback: %s\n",strerror(err)); |
211 } | 211 return -1; |
212 } | |
213 return 0; | |
212 } | 214 } |
213 | 215 |
214 void vidix_term( void ) | 216 void vidix_term( void ) |
215 { | 217 { |
216 if(verbose > 1) printf("vosub_vidix: vidix_term() was called\n"); | 218 if(verbose > 1) printf("vosub_vidix: vidix_term() was called\n"); |