diff options
author | Philip Langdale <philipl@overt.org> | 2019-12-20 15:34:33 -0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2020-01-08 19:20:36 -0800 |
commit | 3ea705767720033754e8d85566460390191ae27d (patch) | |
tree | 6a1e3ecef1311a5eb427e1ed42124f371208e9c5 /libavcodec/nvenc.h | |
parent | 94cdf82d53fe9be260dc6106634a9f9b218211bd (diff) | |
download | ffmpeg-3ea705767720033754e8d85566460390191ae27d.tar.gz |
nvenc: implement flush to help allow an encoder to be re-used
It can be useful to re-use an encoder instance when doing segmented
encodings, and this requires flushing the encoder at the start of
each segment.
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index a269bd97bb..c44c81e675 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -214,6 +214,8 @@ int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt); int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet); +void ff_nvenc_encode_flush(AVCodecContext *avctx); + extern const enum AVPixelFormat ff_nvenc_pix_fmts[]; #endif /* AVCODEC_NVENC_H */ |