Bug 1878930 - s/RawBuffer/Span/: Remove RawBuffer and unused utils. r=gfx-reviewers...
[gecko.git] / media / ffvpx / libavcodec / avcodec_internal.h
blob9b93ff3d819ab2dbc137962b6d6b7108926b79fb
1 /*
2 * This file is part of FFmpeg.
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 * APIs internal to the generic codec layer.
22 * MUST NOT be included by individual encoders or decoders.
25 #ifndef AVCODEC_AVCODEC_INTERNAL_H
26 #define AVCODEC_AVCODEC_INTERNAL_H
28 struct AVCodecContext;
29 struct AVFrame;
31 /**
32 * avcodec_receive_frame() implementation for decoders.
34 int ff_decode_receive_frame(struct AVCodecContext *avctx, struct AVFrame *frame);
36 /**
37 * avcodec_receive_frame() implementation for encoders.
39 int ff_encode_receive_frame(struct AVCodecContext *avctx, struct AVFrame *frame);
42 * Perform encoder initialization and validation.
43 * Called when opening the encoder, before the FFCodec.init() call.
45 int ff_encode_preinit(struct AVCodecContext *avctx);
47 /**
48 * Perform decoder initialization and validation.
49 * Called when opening the decoder, before the FFCodec.init() call.
51 int ff_decode_preinit(struct AVCodecContext *avctx);
53 void ff_decode_flush_buffers(struct AVCodecContext *avctx);
54 void ff_encode_flush_buffers(struct AVCodecContext *avctx);
56 struct AVCodecInternal *ff_decode_internal_alloc(void);
57 struct AVCodecInternal *ff_encode_internal_alloc(void);
59 #endif // AVCODEC_AVCODEC_INTERNAL_H