mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
video/out: don't access aspdat in VOs
vo->aspdat is basically an outdated version of vo->params, plus some weirdness. Get rid of it, which will allow further cleanups and which will make multithreading easier (less state to care about). Also, simplify some VO code by using mp_image_set_attributes() instead of caring about display size, colorspace, etc. manually. Add the function osd_res_from_image_params(), which is often needed in the case OSD renders into an image.
This commit is contained in:
@@ -200,6 +200,9 @@ void osd_draw_on_image_p(struct osd_state *osd, struct mp_osd_res res,
|
||||
double video_pts, int draw_flags,
|
||||
struct mp_image_pool *pool, struct mp_image *dest);
|
||||
|
||||
struct mp_image_params;
|
||||
struct mp_osd_res osd_res_from_image_params(const struct mp_image_params *p);
|
||||
|
||||
void osd_object_get_scale_factor(struct osd_state *osd, int obj,
|
||||
double *sw, double *sh);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user