diff options
author | Lynne <dev@lynne.ee> | 2023-01-06 03:32:56 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2023-05-29 00:41:57 +0200 |
commit | 6733a1a456b1720ec58f83c21352d54406229102 (patch) | |
tree | 3e8e888e06eb1cf6181274729ca2cf271f9fe1c6 /libavcodec/avcodec.h | |
parent | be07145109074e128bd7a8255d81a2b9fdcdf10b (diff) | |
download | ffmpeg-6733a1a456b1720ec58f83c21352d54406229102.tar.gz |
avcodec: add AVHWAccel.flush callback
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 82c9aaab53..84e29a02db 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2267,6 +2267,11 @@ typedef struct AVHWAccel { * @param data the per-frame hardware accelerator private data to be freed. */ void (*free_frame_priv)(void *hwctx, uint8_t *data); + + /** + * Callback to flush the hwaccel state. + */ + void (*flush)(AVCodecContext *avctx); } AVHWAccel; /** |