aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-28 13:37:28 +0200
committerLynne <dev@lynne.ee>2023-05-29 00:41:27 +0200
commit8b23644408ef4ea98184325d7a98f43c316143a1 (patch)
tree3099977f7c65f756eff5ea8e96549b838e567b57 /libavcodec/avcodec.h
parent3d2e1aa3242d6c4dc2b3a004b316921ce7e0ba79 (diff)
downloadffmpeg-8b23644408ef4ea98184325d7a98f43c316143a1.tar.gz
lavc/pthread_frame: add support for thread-safe hwaccels
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 06b1a120ab..dad443c818 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2253,6 +2253,12 @@ typedef struct AVHWAccel {
* that avctx->hwaccel_priv_data is invalid.
*/
int (*frame_params)(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx);
+
+ /**
+ * Copy necessary context variables from a previous thread context to the current one.
+ * For thread-safe hwaccels only.
+ */
+ int (*update_thread_context)(AVCodecContext *dst, const AVCodecContext *src);
} AVHWAccel;
/**