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
Showing the changes to libavcodec/vaapi_encode.h (1 of 27 files). Show all
Unified · Split
| @@ -328,6 +328,8 @@ typedef struct VAAPIEncodeContext { · 327 unmodified lines | |||
| 328 | // If the driver does not support ROI then warn the first time we | 328 | // If the driver does not support ROI then warn the first time we |
| 329 | // encounter a frame with ROI side data. | 329 | // encounter a frame with ROI side data. |
| 330 | int roi_warned; | 330 | int roi_warned; |
| 331 | |||
| 332 | AVFrame *frame; | ||
| 331 | } VAAPIEncodeContext; | 333 | } VAAPIEncodeContext; |
| 332 | 334 | ||
| 333 | enum { | 335 | enum { |
| @@ -419,7 +421,6 @@ typedef struct VAAPIEncodeType { · 85 unmodified lines | |||
| 419 | } VAAPIEncodeType; | 421 | } VAAPIEncodeType; |
| 420 | 422 | ||
| 421 | 423 | ||
| 422 | int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame); | ||
| 423 | int ff_vaapi_encode_receive_packet(AVCodecContext *avctx, AVPacket *pkt); | 424 | int ff_vaapi_encode_receive_packet(AVCodecContext *avctx, AVPacket *pkt); |
| 424 | 425 | ||
| 425 | int ff_vaapi_encode_init(AVCodecContext *avctx); | 426 | int ff_vaapi_encode_init(AVCodecContext *avctx); |