History

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

James Almer committed 6 years ago

Commit 827d6fe1 parent 71f19bf27 files · +443 −220Browse files

Showing the changes to libavcodec/vaapi_encode.h (1 of 27 files). Show all

Unified · Split

libavcodec/vaapi_encode.h+2−1
@@ -328,6 +328,8 @@ typedef struct VAAPIEncodeContext { · 327 unmodified lines
328 // If the driver does not support ROI then warn the first time we328 // 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
333enum {335enum {
@@ -419,7 +421,6 @@ typedef struct VAAPIEncodeType { · 85 unmodified lines
419} VAAPIEncodeType;421} VAAPIEncodeType;
420 422
421 423
422int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame);
423int ff_vaapi_encode_receive_packet(AVCodecContext *avctx, AVPacket *pkt);424int ff_vaapi_encode_receive_packet(AVCodecContext *avctx, AVPacket *pkt);
424 425
425int ff_vaapi_encode_init(AVCodecContext *avctx);426int ff_vaapi_encode_init(AVCodecContext *avctx);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t