diff options
author | Niklas Haas <git@haasn.xyz> | 2021-04-18 11:48:35 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2021-11-03 14:09:27 +0100 |
commit | 432581b60485433d5497d461730960fa3a2af402 (patch) | |
tree | 2500cf6d6f2e1abd9d3e8256c1843f9beb8a39c0 /video/out/gpu/context.h | |
parent | 5512f53722a46dd7b4844ca8f7e47b5fed2d7259 (diff) | |
download | mpv-432581b60485433d5497d461730960fa3a2af402.tar.bz2 mpv-432581b60485433d5497d461730960fa3a2af402.tar.xz |
vo_gpu: lift ra_ctx_* opts to a global struct
So I can re-use them for vo_gpu_next.
Diffstat (limited to 'video/out/gpu/context.h')
-rw-r--r-- | video/out/gpu/context.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/video/out/gpu/context.h b/video/out/gpu/context.h index ca71150f54..7ad37f0d61 100644 --- a/video/out/gpu/context.h +++ b/video/out/gpu/context.h @@ -11,8 +11,12 @@ struct ra_ctx_opts { int want_alpha; // create an alpha framebuffer if possible int debug; // enable debugging layers/callbacks etc. bool probing; // the backend was auto-probed + char *context_name; // filter by `ra_ctx_fns.name` + char *context_type; // filter by `ra_ctx_fns.type` }; +extern const struct m_sub_options ra_ctx_conf; + struct ra_ctx { struct vo *vo; struct ra *ra; @@ -95,16 +99,5 @@ struct ra_swapchain_fns { // Create and destroy a ra_ctx. This also takes care of creating and destroying // the underlying `struct ra`, and perhaps the underlying VO backend. -struct ra_ctx *ra_ctx_create(struct vo *vo, const char *context_type, - const char *context_name, struct ra_ctx_opts opts); +struct ra_ctx *ra_ctx_create(struct vo *vo, struct ra_ctx_opts opts); void ra_ctx_destroy(struct ra_ctx **ctx); - -struct m_option; -int ra_ctx_api_help(struct mp_log *log, const struct m_option *opt, - struct bstr name); -int ra_ctx_validate_api(struct mp_log *log, const struct m_option *opt, - struct bstr name, const char **value); -int ra_ctx_context_help(struct mp_log *log, const struct m_option *opt, - struct bstr name); -int ra_ctx_validate_context(struct mp_log *log, const struct m_option *opt, - struct bstr name, const char **value); |