summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-21 22:12:30 +0100
committerwm4 <wm4@nowhere>2015-01-21 22:12:30 +0100
commitb2149f7fe102f7d00beb2051e179160e47cbcbc6 (patch)
tree4fc5226f63eb71a167bb2cff0848011c0cca26e4 /video/vaapi.h
parenta1ed13869c1586897c323ebf65cfd3975092ffad (diff)
downloadmpv-b2149f7fe102f7d00beb2051e179160e47cbcbc6.tar.bz2
mpv-b2149f7fe102f7d00beb2051e179160e47cbcbc6.tar.xz
vaapi: minor simplification
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/vaapi.h b/video/vaapi.h
index 86a9919e27..8a6ba766e5 100644
--- a/video/vaapi.h
+++ b/video/vaapi.h
@@ -83,8 +83,6 @@ struct mp_vaapi_ctx {
pthread_mutex_t lock;
};
-struct va_image_formats;
-
bool check_va_status(struct mp_log *log, VAStatus status, const char *msg);
#define CHECK_VA_STATUS(ctx, msg) check_va_status((ctx)->log, status, msg)
@@ -99,7 +97,7 @@ 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(const struct va_image_formats *formats, 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);