1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/internal.h: Move avpriv_find_start_code() to startcode.h

This is by definition the appropriate place for it.
Remove all the now unnecessary libavcodec/internal.h inclusions;
also remove other unnecessary headers from the affected files.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-02-04 15:43:14 +01:00
parent 27f22f3383
commit 70a90fb73e
21 changed files with 24 additions and 37 deletions

View File

@ -32,6 +32,7 @@
#include "cavs.h"
#include "internal.h"
#include "mpeg12data.h"
#include "startcode.h"
static const uint8_t mv_scan[4] = {
MV_FWD_X0, MV_FWD_X1,

View File

@ -21,7 +21,7 @@
#include "cbs.h"
#include "cbs_internal.h"
#include "cbs_mpeg2.h"
#include "internal.h"
#include "startcode.h"
#define HEADER(name) do { \

View File

@ -18,8 +18,6 @@
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
@ -31,6 +29,7 @@
#include "h2645_parse.h"
#include "h264.h"
#include "hevc.h"
#include "startcode.h"
#include "vc1_common.h"
typedef struct ExtractExtradataContext {

View File

@ -27,7 +27,6 @@
#define UNCHECKED_BITSTREAM_READER 1
#include <assert.h>
#include <stdint.h>
#include "libavutil/avutil.h"
@ -46,9 +45,9 @@
#include "h264_ps.h"
#include "h2645_parse.h"
#include "h264data.h"
#include "internal.h"
#include "mpegutils.h"
#include "parser.h"
#include "startcode.h"
typedef struct H264ParseContext {
ParseContext pc;

View File

@ -285,10 +285,6 @@ int ff_thread_can_start_frame(AVCodecContext *avctx);
int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx);
const uint8_t *avpriv_find_start_code(const uint8_t *p,
const uint8_t *end,
uint32_t *state);
int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec);
/**

View File

@ -29,18 +29,14 @@
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/timecode.h"
#include "libavutil/thread.h"
#include "internal.h"
#include "avcodec.h"
#include "mpegvideo.h"
#include "error_resilience.h"
#include "mpeg12.h"
#include "mpeg12data.h"
#include "mpegvideodata.h"
#include "bytestream.h"
#include "thread.h"
#include "startcode.h"
static const uint8_t table_mb_ptype[7][2] = {
{ 3, 5 }, // 0x01 MB_INTRA

View File

@ -34,14 +34,11 @@
#include "libavutil/mem_internal.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timecode.h"
#include "libavutil/video_enc_params.h"
#include "avcodec.h"
#include "bytestream.h"
#include "error_resilience.h"
#include "hwconfig.h"
#include "idctdsp.h"
#include "internal.h"
#include "mpeg_er.h"
#include "mpeg12.h"
#include "mpeg12data.h"
@ -49,6 +46,7 @@
#include "mpegvideo.h"
#include "mpegvideodata.h"
#include "profiles.h"
#include "startcode.h"
#include "thread.h"
#include "xvmc_internal.h"

View File

@ -21,8 +21,8 @@
#include "bsf.h"
#include "bsf_internal.h"
#include "internal.h"
#include "mpeg4video.h"
#include "startcode.h"
typedef struct UnpackBFramesBSFContext {
AVBufferRef *b_frame_ref;

View File

@ -23,7 +23,7 @@
#include "parser.h"
#include "mpeg12.h"
#include "mpeg12data.h"
#include "internal.h"
#include "startcode.h"
struct MpvParseContext {
ParseContext pc;

View File

@ -26,7 +26,7 @@
#include "bsf_internal.h"
#include "h264.h"
#include "hevc.h"
#include "internal.h"
#include "startcode.h"
#include "vc1_common.h"
enum RemoveFreq {

View File

@ -27,6 +27,10 @@
#include <stdint.h>
const uint8_t *avpriv_find_start_code(const uint8_t *p,
const uint8_t *end,
uint32_t *state);
int ff_startcode_find_candidate_c(const uint8_t *buf, int size);
#endif /* AVCODEC_STARTCODE_H */

View File

@ -27,7 +27,6 @@
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
@ -40,12 +39,9 @@
#include "thread.h"
#include "internal.h"
#include "put_bits.h"
#include "raw.h"
#include "startcode.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdatomic.h>
#include <limits.h>
#include <float.h>
void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size)
{

View File

@ -26,7 +26,7 @@
#include <stdint.h>
#include "libavutil/attributes.h"
#include "internal.h"
#include "startcode.h"
/** Markers used in VC-1 AP frame data */
//@{

View File

@ -36,7 +36,7 @@
#include "riff.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/exif.h"
#include "libavcodec/internal.h"
#include "libavcodec/startcode.h"
typedef struct AVIStream {
int64_t frame_offset; /* current frame (video) or byte (audio) counter

View File

@ -22,7 +22,7 @@
#include "avformat.h"
#include "rawdec.h"
#include "libavcodec/internal.h"
#include "libavcodec/startcode.h"
#include "libavutil/intreadwrite.h"
#define AVS2_ISSQH(x) ((x) == 0xB0)

View File

@ -22,7 +22,7 @@
*/
#include "libavcodec/avs3.h"
#include "libavcodec/internal.h"
#include "libavcodec/startcode.h"
#include "avformat.h"
#include "rawdec.h"

View File

@ -19,9 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavcodec/startcode.h"
#include "avformat.h"
#include "rawdec.h"
#include "libavcodec/internal.h"
#define CAVS_SEQ_START_CODE 0x000001b0
#define CAVS_PIC_I_START_CODE 0x000001b3

View File

@ -28,7 +28,7 @@
#include "libavutil/opt.h"
#include "libavcodec/ac3_parser_internal.h"
#include "libavcodec/internal.h"
#include "libavcodec/startcode.h"
#include "avformat.h"
#include "avio_internal.h"

View File

@ -24,7 +24,7 @@
#include "rawdec.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/internal.h"
#include "libavcodec/startcode.h"
#define SEQ_START_CODE 0x000001b3
#define GOP_START_CODE 0x000001b8

View File

@ -48,12 +48,10 @@
#include "libavutil/mastering_display_metadata.h"
#include "libavutil/pixdesc.h"
#include "libavutil/time_internal.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/dv_profile.h"
#include "libavcodec/h264_ps.h"
#include "libavcodec/golomb.h"
#include "libavcodec/internal.h"
#include "libavcodec/h264.h"
#include "libavcodec/packet_internal.h"
#include "libavcodec/startcode.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"

View File

@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavcodec/internal.h"
#include "libavcodec/startcode.h"
#include "avformat.h"
#include "rtpenc.h"