1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/flv.h: Split header into encoder-only and decoder-only headers

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2022-02-01 07:45:23 +01:00
parent 876d0afe1f
commit f78ffe382c
8 changed files with 36 additions and 16 deletions

View File

@@ -20,7 +20,7 @@
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
#include "flv.h" #include "flvdec.h"
#include "h263dec.h" #include "h263dec.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#include "mpegvideodata.h" #include "mpegvideodata.h"

28
libavcodec/flvdec.h Normal file
View File

@@ -0,0 +1,28 @@
/*
* FLV decoder header.
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVCODEC_FLVDEC_H
#define AVCODEC_FLVDEC_H
#include "mpegvideo.h"
int ff_flv_decode_picture_header(MpegEncContext *s);
#endif /* AVCODEC_FLVDEC_H */

View File

@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "flv.h" #include "flvenc.h"
#include "h263data.h" #include "h263data.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#include "mpegvideodata.h" #include "mpegvideodata.h"

View File

@@ -1,5 +1,5 @@
/* /*
* FLV specific private header. * FLV encoder header.
* *
* This file is part of FFmpeg. * This file is part of FFmpeg.
* *
@@ -18,10 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef AVCODEC_FLV_H #ifndef AVCODEC_FLVENC_H
#define AVCODEC_FLV_H #define AVCODEC_FLVENC_H
#include "get_bits.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#include "put_bits.h" #include "put_bits.h"
@@ -29,6 +28,4 @@ void ff_flv_encode_picture_header(MpegEncContext *s, int picture_number);
void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level, int run, void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level, int run,
int last); int last);
int ff_flv_decode_picture_header(MpegEncContext *s);
#endif /* AVCODEC_FLV_H */ #endif /* AVCODEC_FLV_H */

View File

@@ -27,11 +27,9 @@
#define UNCHECKED_BITSTREAM_READER 1 #define UNCHECKED_BITSTREAM_READER 1
#include "libavutil/video_enc_params.h"
#include "avcodec.h" #include "avcodec.h"
#include "error_resilience.h" #include "error_resilience.h"
#include "flv.h" #include "flvdec.h"
#include "h263.h" #include "h263.h"
#include "h263dec.h" #include "h263dec.h"
#if FF_API_FLAG_TRUNCATED #if FF_API_FLAG_TRUNCATED

View File

@@ -28,7 +28,6 @@
*/ */
#define UNCHECKED_BITSTREAM_READER 1 #define UNCHECKED_BITSTREAM_READER 1
#include <limits.h>
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/imgutils.h" #include "libavutil/imgutils.h"
@@ -43,7 +42,6 @@
#include "mathops.h" #include "mathops.h"
#include "mpegutils.h" #include "mpegutils.h"
#include "unary.h" #include "unary.h"
#include "flv.h"
#include "rv10.h" #include "rv10.h"
#include "mpeg4video.h" #include "mpeg4video.h"
#include "mpegvideodata.h" #include "mpegvideodata.h"

View File

@@ -34,12 +34,12 @@
#include "avcodec.h" #include "avcodec.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#include "mpegvideodata.h" #include "mpegvideodata.h"
#include "flvenc.h"
#include "h263.h" #include "h263.h"
#include "h263enc.h" #include "h263enc.h"
#include "h263data.h" #include "h263data.h"
#include "mathops.h" #include "mathops.h"
#include "mpegutils.h" #include "mpegutils.h"
#include "flv.h"
#include "internal.h" #include "internal.h"
/** /**

View File

@@ -61,9 +61,8 @@
#include "pixblockdsp.h" #include "pixblockdsp.h"
#include "qpeldsp.h" #include "qpeldsp.h"
#include "faandct.h" #include "faandct.h"
#include "thread.h"
#include "aandcttab.h" #include "aandcttab.h"
#include "flv.h" #include "flvenc.h"
#include "mpeg4video.h" #include "mpeg4video.h"
#include "mpeg4videodata.h" #include "mpeg4videodata.h"
#include "mpeg4videoenc.h" #include "mpeg4videoenc.h"