mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
a232f564d3
This commit creates the struct and passes it to some functions that needs to access OSD state but does not yet move much data from globals to it. vf_expand accesses the OSD state for rendering purposes outside of the normal OSD draw time. The way this currently works is suboptimal, but I did not attempt to clean it up now. To keep things working the same way vf_expand needs to know the address of the state object to be able to access the data even in the functions that should normally not need it. For that purpose this commit adds a VFCTRL to tell vf_expand the address of the object.
27 lines
1006 B
C
27 lines
1006 B
C
#ifndef MPLAYER_OLD_VO_WRAPPER_H
|
|
#define MPLAYER_OLD_VO_WRAPPER_H
|
|
|
|
#include <stdint.h>
|
|
#include "video_out.h"
|
|
|
|
extern struct vo *global_vo;
|
|
extern struct osd_state *global_osd;
|
|
|
|
int old_vo_preinit(struct vo *vo, const char *);
|
|
int old_vo_config(struct vo *vo, uint32_t width, uint32_t height,
|
|
uint32_t d_width, uint32_t d_height,
|
|
uint32_t flags, char *title, uint32_t format);
|
|
int old_vo_control(struct vo *vo, uint32_t request, void *data);
|
|
int old_vo_draw_frame(struct vo *vo, uint8_t *src[]);
|
|
int old_vo_draw_slice(struct vo *vo, uint8_t *src[], int stride[],
|
|
int w, int h, int x, int y);
|
|
void old_vo_draw_osd(struct vo *vo, struct osd_state *osd);
|
|
void old_vo_flip_page(struct vo *vo);
|
|
void old_vo_check_events(struct vo *vo);
|
|
void old_vo_uninit(struct vo *vo);
|
|
|
|
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));
|
|
int vo_update_osd(int dxs, int dys);
|
|
|
|
#endif
|