summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-15 15:07:02 +0200
committerwm4 <wm4@nowhere>2016-04-15 15:07:02 +0200
commitbbaedfd0c5d59a22762c80c96406d5887f8ca488 (patch)
tree1ecfc2a57a46bbdb374a5fe43b3295530d76723d /video/mp_image.h
parent607ba5f235b62ab485b9fd4a1073bca9c1b25263 (diff)
downloadmpv-bbaedfd0c5d59a22762c80c96406d5887f8ca488.tar.bz2
mpv-bbaedfd0c5d59a22762c80c96406d5887f8ca488.tar.xz
mp_image: pass through AVHWFramesContext
In both directions.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index c00c78a459..c96674b290 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -100,6 +100,8 @@ typedef struct mp_image {
// All mp_* functions manage this automatically; do not mess with it.
// (See also AVFrame.buf.)
struct AVBufferRef *bufs[MP_MAX_PLANES];
+ // Points to AVHWFramesContext* (same as AVFrame.hw_frames_ctx)
+ struct AVBufferRef *hwctx;
} mp_image_t;
int mp_chroma_div_up(int size, int shift);