summaryrefslogtreecommitdiffstats
path: root/video/vaapi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-09-29 17:54:21 +0200
committerwm4 <wm4@nowhere>2017-09-29 18:17:51 +0200
commitd462a2a32139ea48b63d884d5e991584babbe76a (patch)
tree6120aeaea62e9262b4cc6d2ce9356a9e346a64a4 /video/vaapi.c
parent1f79b2652924cec703627edc92abff4d349aec26 (diff)
downloadmpv-d462a2a32139ea48b63d884d5e991584babbe76a.tar.bz2
mpv-d462a2a32139ea48b63d884d5e991584babbe76a.tar.xz
vf_vavpp: use libavutil hw frames API for frame pool and upload
Another step to get rid of the legacy crap in vaapi.c. (Most is still kept, because it's in use by vo_vaapi.c.)
Diffstat (limited to 'video/vaapi.c')
-rw-r--r--video/vaapi.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/video/vaapi.c b/video/vaapi.c
index f977b054e4..3bf63f3b54 100644
--- a/video/vaapi.c
+++ b/video/vaapi.c
@@ -287,27 +287,6 @@ static struct va_surface *va_surface_in_mp_image(struct mp_image *mpi)
(struct va_surface*)mpi->planes[0] : NULL;
}
-int va_surface_rt_format(struct mp_image *mpi)
-{
- struct va_surface *surface = va_surface_in_mp_image(mpi);
- return surface ? surface->rt_format : 0;
-}
-
-// Return the real size of the underlying surface. (HW decoding might allocate
-// padded surfaces for example.)
-void va_surface_get_uncropped_size(struct mp_image *mpi, int *out_w, int *out_h)
-{
- if (mpi->hwctx) {
- AVHWFramesContext *fctx = (void *)mpi->hwctx->data;
- *out_w = fctx->width;
- *out_h = fctx->height;
- } else {
- struct va_surface *s = va_surface_in_mp_image(mpi);
- *out_w = s ? s->w : 0;
- *out_h = s ? s->h : 0;
- }
-}
-
static void release_va_surface(void *arg)
{
struct va_surface *surface = arg;