History

lavc: add a header for internal generic-layer APIs

The goal is to distinguish between APIs provided by the generic layer to individual codecs and APIs internal to the generic layer. Start by moving ff_{decode,encode}_receive_frame() and ff_{decode,encode}_preinit() into this new header, as those functions are called from generic code and should not be visible to individual codecs.

Anton Khirnov committed 3 years ago

Commit 5e7b5b01 parent 83c0f7b6 files · +56 −22Browse files

Showing the changes to libavcodec/decode.h (1 of 6 files). Show all

Unified · Split

libavcodec/decode.h+0−11
@@ -53,11 +53,6 @@ typedef struct FrameDecodeData { · 52 unmodified lines
5353 void (*hwaccel_priv_free)(void *priv);
5454 } FrameDecodeData;
5555
56−/**
57− * avcodec_receive_frame() implementation for decoders.
58− */
59−int ff_decode_receive_frame(AVCodecContext *avctx, AVFrame *frame);
60−
6156 /**
6257 * Called by decoders to get the next packet for decoding.
6358 *
@@ -99,12 +94,6 @@ int ff_attach_decode_data(AVFrame *frame); · 35 unmodified lines
9994 */
10095 int ff_copy_palette(void *dst, const AVPacket *src, void *logctx);
10196
102−/**
103− * Perform decoder initialization and validation.
104− * Called when opening the decoder, before the FFCodec.init() call.
105− */
106−int ff_decode_preinit(AVCodecContext *avctx);
107−
10897 /**
10998 * Check that the provided frame dimensions are valid and set them on the codec
11099 * context.

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