Mercurial > mplayer.hg
comparison libvo/vo_fbdev.c @ 616:41d6eec69b60
clean up
author | pontscho |
---|---|
date | Tue, 24 Apr 2001 11:42:04 +0000 |
parents | 5eb28ba8a96a |
children | b105a9f2bbe7 |
comparison
equal
deleted
inserted
replaced
615:b96e45bcb178 | 616:41d6eec69b60 |
---|---|
994 static const vo_info_t *get_info(void) | 994 static const vo_info_t *get_info(void) |
995 { | 995 { |
996 return &vo_info; | 996 return &vo_info; |
997 } | 997 } |
998 | 998 |
999 extern void vo_draw_alpha_rgb32(int w, int h, unsigned char* src, | 999 #include "osd.h" |
1000 unsigned char *srca, int srcstride, unsigned char* dstbase, | |
1001 int dststride); | |
1002 extern void vo_draw_alpha_rgb24(int w, int h, unsigned char* src, | |
1003 unsigned char *srca, int srcstride, unsigned char* dstbase, | |
1004 int dststride); | |
1005 extern void vo_draw_alpha_rgb16(int w, int h, unsigned char* src, | |
1006 unsigned char *srca, int srcstride, unsigned char* dstbase, | |
1007 int dststride); | |
1008 extern void vo_draw_alpha_rgb15(int w, int h, unsigned char* src, | |
1009 unsigned char *srca, int srcstride, unsigned char* dstbase, | |
1010 int dststride); | |
1011 | 1000 |
1012 static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, | 1001 static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, |
1013 unsigned char *srca, int stride) | 1002 unsigned char *srca, int stride) |
1014 { | 1003 { |
1015 uint8_t *dst = next_frame + (in_width * y0 + x0) * fb_pixel_size; | 1004 uint8_t *dst = next_frame + (in_width * y0 + x0) * fb_pixel_size; |
1086 out_offset += fb_screen_width; | 1075 out_offset += fb_screen_width; |
1087 in_offset += in_width * fb_pixel_size; | 1076 in_offset += in_width * fb_pixel_size; |
1088 } | 1077 } |
1089 } | 1078 } |
1090 | 1079 |
1091 extern void vo_draw_text(int dxs, int dys, void (*draw_alpha)(int x0, int y0, | 1080 #include "sub.h" |
1092 int w, int h, unsigned char *src, unsigned char *srca, | |
1093 int stride)); | |
1094 | 1081 |
1095 static void flip_page(void) | 1082 static void flip_page(void) |
1096 { | 1083 { |
1097 vo_draw_text(in_width, in_height, draw_alpha); | 1084 vo_draw_text(in_width, in_height, draw_alpha); |
1098 check_events(); | 1085 check_events(); |