]> git.sesse.net Git - ffmpeg/commit
avcodec/encode: restructure the core encoding code
authorJames Almer <jamrial@gmail.com>
Tue, 9 Jun 2020 21:31:32 +0000 (18:31 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 18 Jun 2020 20:11:37 +0000 (17:11 -0300)
commit827d6fe73d2f5472c1c2128eb14fab6a4db29032
tree7bc2bdec4590e7b4adb268e34007e42b857d2967
parent71f19bf5e31ec4039ef0f9e22b157657c57e2cb9
avcodec/encode: restructure the core encoding code

This commit follows the same logic as 061a0c14bb, but for the encode API: The
new public encoding API will no longer be a wrapper around the old deprecated
one, and the internal API used by the encoders now consists of a single
receive_packet() callback that pulls frames as required.

amf encoders adapted by James Almer
librav1e encoder adapted by James Almer
nvidia encoders adapted by James Almer
MediaFoundation encoders adapted by James Almer
vaapi encoders adapted by Linjie Fu
v4l2_m2m encoders adapted by Andriy Gelman

Signed-off-by: James Almer <jamrial@gmail.com>
27 files changed:
libavcodec/amfenc.c
libavcodec/amfenc.h
libavcodec/amfenc_h264.c
libavcodec/amfenc_hevc.c
libavcodec/codec.h
libavcodec/encode.c
libavcodec/encode.h [new file with mode: 0644]
libavcodec/internal.h
libavcodec/librav1e.c
libavcodec/mfenc.c
libavcodec/nvenc.c
libavcodec/nvenc.h
libavcodec/nvenc_h264.c
libavcodec/nvenc_hevc.c
libavcodec/utils.c
libavcodec/v4l2_m2m.c
libavcodec/v4l2_m2m.h
libavcodec/v4l2_m2m_enc.c
libavcodec/vaapi_encode.c
libavcodec/vaapi_encode.h
libavcodec/vaapi_encode_h264.c
libavcodec/vaapi_encode_h265.c
libavcodec/vaapi_encode_mjpeg.c
libavcodec/vaapi_encode_mpeg2.c
libavcodec/vaapi_encode_vp8.c
libavcodec/vaapi_encode_vp9.c
libavcodec/version.h