summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2021-11-07 11:02:28 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2021-11-08 18:24:11 +0100
commit3cf614736802695b47b7691ec25dccfd869c47fb (patch)
tree82e8aa9dca57bec232031b26446b0ff22bd5ad4d
parentff0864d5f07d31c808014dbf1791ed3ec14644a8 (diff)
downloadmpv-3cf614736802695b47b7691ec25dccfd869c47fb.tar.bz2
mpv-3cf614736802695b47b7691ec25dccfd869c47fb.tar.xz
vo_gpu_next: drop PL_API_VER checks
These are no longer needed with the minimum version bump.
-rw-r--r--video/out/vo_gpu_next.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index 0760a070ef..64ff4eb1da 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -413,9 +413,7 @@ static bool map_frame(pl_gpu gpu, pl_tex *tex, const struct pl_source_frame *src
.data = mpi->icc_profile ? mpi->icc_profile->data : NULL,
.len = mpi->icc_profile ? mpi->icc_profile->size : 0,
},
-#if PL_API_VER >= 162
.rotation = mpi->params.rotate / 90,
-#endif
};
enum pl_chroma_location chroma = mp_chroma_to_pl(mpi->params.chroma_location);
@@ -672,13 +670,11 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
p->src.x0, p->src.y0, p->src.x1, p->src.y1,
};
-#if PL_API_VER >= 162
// mpv gives us transposed rects, libplacebo expects untransposed
if (img->rotation % PL_ROTATION_180) {
MPSWAP(float, img->crop.x0, img->crop.y0);
MPSWAP(float, img->crop.x1, img->crop.y1);
}
-#endif
}
}
@@ -1163,9 +1159,7 @@ static void update_render_options(struct priv *p)
p->params.skip_anti_aliasing = !opts->correct_downscaling;
p->params.disable_linear_scaling = !opts->linear_downscaling && !opts->linear_upscaling;
p->params.disable_fbos = opts->dumb_mode == 1;
-#if PL_API_VER >= 164
p->params.blend_against_tiles = opts->alpha_mode == ALPHA_BLEND_TILES;
-#endif
// Map scaler options as best we can
p->params.upscaler = map_scaler(p, SCALER_SCALE);
@@ -1255,9 +1249,7 @@ const struct m_opt_choice_alternatives lut_types[] = {
const struct vo_driver video_out_gpu_next = {
.description = "Video output based on libplacebo",
.name = "gpu-next",
-#if PL_API_VER >= 162
.caps = VO_CAP_ROTATE90,
-#endif
.preinit = preinit,
.query_format = query_format,
.reconfig = reconfig,