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.
Showing the changes to libavcodec/decode.h (1 of 6 files). Show all
Unified · Split
| @@ -53,11 +53,6 @@ typedef struct FrameDecodeData { · 52 unmodified lines | ||
| 53 | 53 | void (*hwaccel_priv_free)(void *priv); |
| 54 | 54 | } FrameDecodeData; |
| 55 | 55 | |
| 56 | −/** | |
| 57 | − * avcodec_receive_frame() implementation for decoders. | |
| 58 | − */ | |
| 59 | −int ff_decode_receive_frame(AVCodecContext *avctx, AVFrame *frame); | |
| 60 | − | |
| 61 | 56 | /** |
| 62 | 57 | * Called by decoders to get the next packet for decoding. |
| 63 | 58 | * |
| @@ -99,12 +94,6 @@ int ff_attach_decode_data(AVFrame *frame); · 35 unmodified lines | ||
| 99 | 94 | */ |
| 100 | 95 | int ff_copy_palette(void *dst, const AVPacket *src, void *logctx); |
| 101 | 96 | |
| 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 | − | |
| 108 | 97 | /** |
| 109 | 98 | * Check that the provided frame dimensions are valid and set them on the codec |
| 110 | 99 | * context. |