mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
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>
This commit is contained in:
parent
71f19bf5e3
commit
827d6fe73d
27 changed files with 449 additions and 226 deletions
|
|
@ -328,6 +328,8 @@ typedef struct VAAPIEncodeContext {
|
|||
// If the driver does not support ROI then warn the first time we
|
||||
// encounter a frame with ROI side data.
|
||||
int roi_warned;
|
||||
|
||||
AVFrame *frame;
|
||||
} VAAPIEncodeContext;
|
||||
|
||||
enum {
|
||||
|
|
@ -419,7 +421,6 @@ typedef struct VAAPIEncodeType {
|
|||
} VAAPIEncodeType;
|
||||
|
||||
|
||||
int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame);
|
||||
int ff_vaapi_encode_receive_packet(AVCodecContext *avctx, AVPacket *pkt);
|
||||
|
||||
int ff_vaapi_encode_init(AVCodecContext *avctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue