comparison libvo/vosub_vidix.c @ 4255:5a4a4b272d10

vidix_grkey_support checking for colorkeying
author alex
date Sat, 19 Jan 2002 16:58:33 +0000
parents a7d6ea555c2e
children 178c84b1090e
comparison
equal deleted inserted replaced
4254:f04c49aa2408 4255:5a4a4b272d10
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 -1; 191 return -1;
192 } 192 }
193
193 vid_eq.brightness = vo_gamma_brightness; 194 vid_eq.brightness = vo_gamma_brightness;
194 vid_eq.saturation = vo_gamma_saturation; 195 vid_eq.saturation = vo_gamma_saturation;
195 vid_eq.contrast = vo_gamma_contrast; 196 vid_eq.contrast = vo_gamma_contrast;
196 vid_eq.hue = vo_gamma_hue; 197 vid_eq.hue = vo_gamma_hue;
197 vid_eq.red_intense = vo_gamma_red_intense; 198 vid_eq.red_intense = vo_gamma_red_intense;
371 vidix_fourcc.fourcc = format; 372 vidix_fourcc.fourcc = format;
372 vdlQueryFourcc(vidix_handler,&vidix_fourcc); 373 vdlQueryFourcc(vidix_handler,&vidix_fourcc);
373 return vidix_fourcc.depth != VID_DEPTH_NONE; 374 return vidix_fourcc.depth != VID_DEPTH_NONE;
374 } 375 }
375 376
377 int vidix_grkey_support(void)
378 {
379 return (vidix_fourcc.flags & VID_CAP_COLORKEY);
380 }
381
376 int vidix_grkey_get(vidix_grkey_t *gr_key) 382 int vidix_grkey_get(vidix_grkey_t *gr_key)
377 { 383 {
378 return(vdlGetGrKeys(vidix_handler, gr_key)); 384 return(vdlGetGrKeys(vidix_handler, gr_key));
379 } 385 }
380 386