Mercurial > mplayer.hg
comparison libvo/vosub_vidix.c @ 4739:a2df307ed979
Screenshot on the fly
author | nick |
---|---|
date | Sun, 17 Feb 2002 10:21:00 +0000 |
parents | 227365bd93c7 |
children | d3a52470594c |
comparison
equal
deleted
inserted
replaced
4738:77519b9ac057 | 4739:a2df307ed979 |
---|---|
41 | 41 |
42 static vidix_capability_t vidix_cap; | 42 static vidix_capability_t vidix_cap; |
43 static vidix_playback_t vidix_play; | 43 static vidix_playback_t vidix_play; |
44 static vidix_fourcc_t vidix_fourcc; | 44 static vidix_fourcc_t vidix_fourcc; |
45 static vo_functions_t * vo_server; | 45 static vo_functions_t * vo_server; |
46 static uint32_t (*server_control)(uint32_t request, void *data, ...); | |
47 | |
46 | 48 |
47 static int vidix_get_bes_da(bes_da_t *); | 49 static int vidix_get_bes_da(bes_da_t *); |
48 static int vidix_get_video_eq(vidix_video_eq_t *info); | 50 static int vidix_get_video_eq(vidix_video_eq_t *info); |
49 static int vidix_set_video_eq(const vidix_video_eq_t *info); | 51 static int vidix_set_video_eq(const vidix_video_eq_t *info); |
50 static int vidix_get_num_fx(unsigned *info); | 52 static int vidix_get_num_fx(unsigned *info); |
633 case VOCTRL_QUERY_VAA: | 635 case VOCTRL_QUERY_VAA: |
634 vidix_query_vaa((vo_vaa_t*)data); | 636 vidix_query_vaa((vo_vaa_t*)data); |
635 return VO_TRUE; | 637 return VO_TRUE; |
636 case VOCTRL_QUERY_FORMAT: | 638 case VOCTRL_QUERY_FORMAT: |
637 return vidix_query_fourcc(*((uint32_t*)data)); | 639 return vidix_query_fourcc(*((uint32_t*)data)); |
640 case VOCTRL_SCREENSHOT: | |
641 return (*server_control)(request,data); | |
638 } | 642 } |
639 return VO_NOTIMPL; | 643 return VO_NOTIMPL; |
640 } | 644 } |
641 | 645 |
642 int vidix_preinit(const char *drvname,void *server) | 646 int vidix_preinit(const char *drvname,void *server) |
666 /* we are able to tune up this stuff depend on fourcc format */ | 670 /* we are able to tune up this stuff depend on fourcc format */ |
667 ((vo_functions_t *)server)->draw_slice=vidix_draw_slice; | 671 ((vo_functions_t *)server)->draw_slice=vidix_draw_slice; |
668 ((vo_functions_t *)server)->draw_frame=vidix_draw_frame; | 672 ((vo_functions_t *)server)->draw_frame=vidix_draw_frame; |
669 ((vo_functions_t *)server)->flip_page=vidix_flip_page; | 673 ((vo_functions_t *)server)->flip_page=vidix_flip_page; |
670 ((vo_functions_t *)server)->draw_osd=vidix_draw_osd; | 674 ((vo_functions_t *)server)->draw_osd=vidix_draw_osd; |
675 server_control = ((vo_functions_t *)server)->control; | |
671 ((vo_functions_t *)server)->control=vidix_control; | 676 ((vo_functions_t *)server)->control=vidix_control; |
672 vo_server = server; | 677 vo_server = server; |
673 return 0; | 678 return 0; |
674 } | 679 } |