summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-09-29 18:32:56 +0200
committerwm4 <wm4@nowhere>2017-09-29 18:32:56 +0200
commit6a69e897ffff9c654563a6f449e5e66ace3a58a4 (patch)
tree5621ec91e92f6e6362320fabf1252c6bf49a9516 /video/vaapi.h
parent3ca5977c1ebc6efdbe93344e17dcd628c095f49c (diff)
downloadmpv-6a69e897ffff9c654563a6f449e5e66ace3a58a4.tar.bz2
mpv-6a69e897ffff9c654563a6f449e5e66ace3a58a4.tar.xz
vaapi: move legacy code to vo_vaapi.c
Done for license reasons. vo_vaapi.c is turned into some kind of dumpster fire, and we'll remove it as soon as I'm mentally ready for unkind users to complain about removal of this old POS.
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/video/vaapi.h b/video/vaapi.h
index 58f8ee96f0..fe082653a1 100644
--- a/video/vaapi.h
+++ b/video/vaapi.h
@@ -26,16 +26,11 @@
#include "mp_image.h"
#include "hwdec.h"
-struct mp_image_pool;
-struct mp_log;
-
struct mp_vaapi_ctx {
struct mp_hwdec_ctx hwctx;
struct mp_log *log;
VADisplay display;
struct AVBufferRef *av_device_ref; // AVVAAPIDeviceContext*
- struct va_image_formats *image_formats;
- bool gpu_memcpy_message;
// Internal, for va_create_standalone()
void *native_ctx;
void (*destroy_native_ctx)(void *native_ctx);
@@ -50,23 +45,7 @@ int va_get_colorspace_flag(enum mp_csp csp);
struct mp_vaapi_ctx * va_initialize(VADisplay *display, struct mp_log *plog, bool probing);
void va_destroy(struct mp_vaapi_ctx *ctx);
-enum mp_imgfmt va_fourcc_to_imgfmt(uint32_t fourcc);
-uint32_t va_fourcc_from_imgfmt(int imgfmt);
-VAImageFormat * va_image_format_from_imgfmt(struct mp_vaapi_ctx *ctx, int imgfmt);
-bool va_image_map(struct mp_vaapi_ctx *ctx, VAImage *image, struct mp_image *mpi);
-bool va_image_unmap(struct mp_vaapi_ctx *ctx, VAImage *image);
-
-void va_pool_set_allocator(struct mp_image_pool *pool, struct mp_vaapi_ctx *ctx,
- int rt_format);
-
VASurfaceID va_surface_id(struct mp_image *mpi);
-struct mp_image *va_surface_download(struct mp_image *src,
- struct mp_image_pool *pool);
-
-int va_surface_alloc_imgfmt(struct mp_image *img, int imgfmt);
-int va_surface_upload(struct mp_image *va_dst, struct mp_image *sw_src);
-
-void va_surface_init_subformat(struct mp_image *mpi);
bool va_guess_if_emulated(struct mp_vaapi_ctx *ctx);