aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/encode.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-06-20 12:29:50 +0200
committerAnton Khirnov <anton@khirnov.net>2023-07-07 12:07:23 +0200
commit5e7b5b0090bdf68e0897fe55ee657fdccc0cbca2 (patch)
treeb17d0a7ab1deb513fcb36c650dfd1426ed87a339 /libavcodec/encode.h
parent83c0f7b046d0efbfa4ac08b51e3c1500071a857f (diff)
downloadffmpeg-5e7b5b0090bdf68e0897fe55ee657fdccc0cbca2.tar.gz
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.
Diffstat (limited to 'libavcodec/encode.h')
-rw-r--r--libavcodec/encode.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/libavcodec/encode.h b/libavcodec/encode.h
index 26a3304045..dfaab7c976 100644
--- a/libavcodec/encode.h
+++ b/libavcodec/encode.h
@@ -27,11 +27,6 @@
#include "packet.h"
/**
- * avcodec_receive_frame() implementation for encoders.
- */
-int ff_encode_receive_frame(AVCodecContext *avctx, AVFrame *frame);
-
-/**
* Called by encoders to get the next frame for encoding.
*
* @param frame An empty frame to be filled with data.
@@ -75,12 +70,6 @@ int ff_alloc_packet(AVCodecContext *avctx, AVPacket *avpkt, int64_t size);
int ff_encode_reordered_opaque(AVCodecContext *avctx,
AVPacket *pkt, const AVFrame *frame);
-/*
- * Perform encoder initialization and validation.
- * Called when opening the encoder, before the FFCodec.init() call.
- */
-int ff_encode_preinit(AVCodecContext *avctx);
-
int ff_encode_encode_cb(AVCodecContext *avctx, AVPacket *avpkt,
AVFrame *frame, int *got_packet);