summaryrefslogtreecommitdiff
path: root/libavcodec/decode.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-07-01 12:09:58 +0200
committerAnton Khirnov <anton@khirnov.net>2017-07-26 23:24:14 +0200
commit704311b2946d74a80f65906961cd9baaa18683a3 (patch)
tree38c3d0ede75e28e984d3dab414d97d2dff28106a /libavcodec/decode.h
parentbadf0951f54c1332e77455dc40398f3512540c1b (diff)
decode: add a per-frame private data for hwaccel use
This will be useful in the CUVID hwaccel. It should also eventually replace current decoder-specific mechanisms used by various other hwaccels.
Diffstat (limited to 'libavcodec/decode.h')
-rw-r--r--libavcodec/decode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/decode.h b/libavcodec/decode.h
index 72052f1de5..235f355f82 100644
--- a/libavcodec/decode.h
+++ b/libavcodec/decode.h
@@ -49,6 +49,12 @@ typedef struct FrameDecodeData {
int (*post_process)(void *logctx, AVFrame *frame);
void *post_process_opaque;
void (*post_process_opaque_free)(void *opaque);
+
+ /**
+ * Per-frame private data for hwaccels.
+ */
+ void *hwaccel_priv;
+ void (*hwaccel_priv_free)(void *priv);
} FrameDecodeData;
/**