mirror of
https://github.com/mpv-player/mpv
synced 2025-02-19 22:36:55 +00:00
video/out: remove VOFLAG_FLIPPING
I think this used to be quite important, because the ancient VfW support
in MPlayer used to output flipped frames. This code has been dead in mpv
for quite some time (because VfW decoders were removed, and the --flip
option was dropped too), so get rid of it.
(cherry picked from commit e185887ba0
)
This commit is contained in:
parent
8c3a92d6cb
commit
275694a002
@ -128,7 +128,6 @@ struct voctrl_get_equalizer_args {
|
||||
#define VO_NOTAVAIL -2
|
||||
#define VO_NOTIMPL -3
|
||||
|
||||
#define VOFLAG_FLIPPING 0x08
|
||||
#define VOFLAG_HIDDEN 0x10 //< Use to create a hidden window
|
||||
#define VOFLAG_GL_DEBUG 0x40 // Hint to request debug OpenGL context
|
||||
#define VOFLAG_ALPHA 0x80 // Hint to request alpha framebuffer
|
||||
|
@ -76,8 +76,6 @@ struct gl_priv {
|
||||
|
||||
char *backend;
|
||||
|
||||
int vo_flipped;
|
||||
|
||||
bool frame_started;
|
||||
|
||||
int frames_rendered;
|
||||
@ -176,9 +174,6 @@ static void draw_image_timed(struct vo *vo, mp_image_t *mpi,
|
||||
struct gl_priv *p = vo->priv;
|
||||
GL *gl = p->gl;
|
||||
|
||||
if (p->vo_flipped)
|
||||
mp_image_vflip(mpi);
|
||||
|
||||
mpgl_lock(p->glctx);
|
||||
|
||||
if (mpi)
|
||||
@ -242,8 +237,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags)
|
||||
|
||||
gl_video_config(p->renderer, params);
|
||||
|
||||
p->vo_flipped = !!(flags & VOFLAG_FLIPPING);
|
||||
|
||||
mpgl_unlock(p->glctx);
|
||||
|
||||
return 0;
|
||||
|
@ -97,7 +97,6 @@ struct vdpctx {
|
||||
int flip_offset_window;
|
||||
int flip_offset_fs;
|
||||
int64_t flip_offset_us;
|
||||
bool flip;
|
||||
|
||||
VdpRect src_rect_vid;
|
||||
VdpRect out_rect_vid;
|
||||
@ -237,8 +236,8 @@ static void resize(struct vo *vo)
|
||||
vc->out_rect_vid.y1 = dst_rect.y1;
|
||||
vc->src_rect_vid.x0 = src_rect.x0;
|
||||
vc->src_rect_vid.x1 = src_rect.x1;
|
||||
vc->src_rect_vid.y0 = vc->flip ? src_rect.y1 : src_rect.y0;
|
||||
vc->src_rect_vid.y1 = vc->flip ? src_rect.y0 : src_rect.y1;
|
||||
vc->src_rect_vid.y0 = src_rect.y0;
|
||||
vc->src_rect_vid.y1 = src_rect.y1;
|
||||
|
||||
vc->flip_offset_us = vo->opts->fullscreen ?
|
||||
1000LL * vc->flip_offset_fs :
|
||||
@ -420,7 +419,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags)
|
||||
if (!check_preemption(vo))
|
||||
return -1;
|
||||
|
||||
vc->flip = flags & VOFLAG_FLIPPING;
|
||||
vc->image_format = params->imgfmt;
|
||||
vc->vid_width = params->w;
|
||||
vc->vid_height = params->h;
|
||||
|
Loading…
Reference in New Issue
Block a user