summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-08-29 01:10:30 +0200
committerwm4 <wm4@nowhere>2015-09-09 18:09:25 +0200
commitdeebc55014074fef121c1df6b117e9c0bf97d516 (patch)
treea69b532d4e17dd8ecf03ecec94cbfb74f2696620 /video/out/gl_video.h
parent944fa1214a14baf24f629f41ce6c05965028ae1a (diff)
downloadmpv-deebc55014074fef121c1df6b117e9c0bf97d516.tar.bz2
mpv-deebc55014074fef121c1df6b117e9c0bf97d516.tar.xz
vo_opengl: move gl_* files to their own subdir
This is mainly just to keep things a bit more organized and separated inside the codebase.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h117
1 files changed, 0 insertions, 117 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h
deleted file mode 100644
index 443cb76787..0000000000
--- a/video/out/gl_video.h
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * This file is part of mpv.
- *
- * mpv is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * mpv is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with mpv. If not, see <http://www.gnu.org/licenses/>.
- */
-#ifndef MP_GL_VIDEO_H
-#define MP_GL_VIDEO_H
-
-#include <stdbool.h>
-
-#include "options/m_option.h"
-#include "sub/osd.h"
-#include "gl_common.h"
-
-struct lut3d {
- uint16_t *data;
- int size[3];
-};
-
-struct scaler_fun {
- char *name;
- float params[2];
- float blur;
-};
-
-struct scaler_config {
- struct scaler_fun kernel;
- struct scaler_fun window;
- float radius;
- float antiring;
- int clamp;
-};
-
-struct gl_video_opts {
- int dumb_mode;
- struct scaler_config scaler[4];
- float gamma;
- int gamma_auto;
- int target_prim;
- int target_trc;
- int linear_scaling;
- int fancy_downscaling;
- int sigmoid_upscaling;
- float sigmoid_center;
- float sigmoid_slope;
- int scaler_resizes_only;
- int pbo;
- int dither_depth;
- int dither_algo;
- int dither_size;
- int temporal_dither;
- int temporal_dither_period;
- int fbo_format;
- int alpha_mode;
- int chroma_location;
- int use_rectangle;
- struct m_color background;
- int interpolation;
- int blend_subs;
- char *source_shader;
- char *scale_shader;
- char **pre_shaders;
- char **post_shaders;
-};
-
-extern const struct m_sub_options gl_video_conf;
-extern const struct gl_video_opts gl_video_opts_hq_def;
-extern const struct gl_video_opts gl_video_opts_def;
-
-struct gl_video;
-struct vo_frame;
-
-struct gl_video *gl_video_init(GL *gl, struct mp_log *log, struct mpv_global *g);
-void gl_video_uninit(struct gl_video *p);
-void gl_video_set_osd_source(struct gl_video *p, struct osd_state *osd);
-void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts);
-bool gl_video_check_format(struct gl_video *p, int mp_format);
-void gl_video_config(struct gl_video *p, struct mp_image_params *params);
-void gl_video_set_output_depth(struct gl_video *p, int r, int g, int b);
-void gl_video_set_lut3d(struct gl_video *p, struct lut3d *lut3d);
-void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame, int fbo);
-void gl_video_resize(struct gl_video *p, int vp_w, int vp_h,
- struct mp_rect *src, struct mp_rect *dst,
- struct mp_osd_res *osd);
-struct mp_csp_equalizer;
-struct mp_csp_equalizer *gl_video_eq_ptr(struct gl_video *p);
-void gl_video_eq_update(struct gl_video *p);
-
-void gl_video_set_debug(struct gl_video *p, bool enable);
-
-float gl_video_scale_ambient_lux(float lmin, float lmax,
- float rmin, float rmax, float lux);
-void gl_video_set_ambient_lux(struct gl_video *p, int lux);
-
-void gl_video_set_gl_state(struct gl_video *p);
-void gl_video_unset_gl_state(struct gl_video *p);
-void gl_video_reset(struct gl_video *p);
-bool gl_video_showing_interpolated_frame(struct gl_video *p);
-
-struct gl_hwdec;
-void gl_video_set_hwdec(struct gl_video *p, struct gl_hwdec *hwdec);
-
-struct vo;
-void gl_video_configure_queue(struct gl_video *p, struct vo *vo);
-
-#endif