vo_corevideo: Avoid some code duplication.
[mplayer/glamo.git] / libvo / old_vo_wrapper.h
blob250a1187fe3be62a4f24f611d2060c5eb216f03f
1 #ifndef MPLAYER_OLD_VO_WRAPPER_H
2 #define MPLAYER_OLD_VO_WRAPPER_H
4 #include <stdint.h>
5 #include "video_out.h"
7 extern struct vo *global_vo;
8 extern struct osd_state *global_osd;
10 int old_vo_preinit(struct vo *vo, const char *);
11 int old_vo_config(struct vo *vo, uint32_t width, uint32_t height,
12 uint32_t d_width, uint32_t d_height,
13 uint32_t flags, char *title, uint32_t format);
14 int old_vo_control(struct vo *vo, uint32_t request, void *data);
15 int old_vo_draw_frame(struct vo *vo, uint8_t *src[]);
16 int old_vo_draw_slice(struct vo *vo, uint8_t *src[], int stride[],
17 int w, int h, int x, int y);
18 void old_vo_draw_osd(struct vo *vo, struct osd_state *osd);
19 void old_vo_flip_page(struct vo *vo);
20 void old_vo_check_events(struct vo *vo);
21 void old_vo_uninit(struct vo *vo);
23 void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
24 void vo_draw_text_ext(int dxs, int dys, int left_border, int top_border,
25 int right_border, int bottom_border, int orig_w, int orig_h,
26 void (*draw_alpha)(int x0, int y0, int w,int h,unsigned char* src, unsigned char *srca, int stride));
27 int vo_update_osd(int dxs, int dys);
29 #endif