1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avcodec/internal: move packet related functions to their own header

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2020-06-02 18:38:33 -03:00
parent cca8f53a8e
commit 6e1903938b
15 changed files with 43 additions and 4 deletions

View File

@ -30,6 +30,7 @@
#include "bytestream.h"
#include "internal.h"
#include "packet.h"
#include "packet_internal.h"
void av_init_packet(AVPacket *pkt)
{

View File

@ -33,6 +33,7 @@
#include "internal.h"
#include "mpegvideo.h"
#include "pixblockdsp.h"
#include "packet_internal.h"
#include "profiles.h"
#include "dnxhdenc.h"

View File

@ -358,10 +358,6 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame);
*/
AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx);
int ff_side_data_set_encoder_stats(AVPacket *pkt, int quality, int64_t *error, int error_count, int pict_type);
int ff_side_data_set_prft(AVPacket *pkt, int64_t timestamp);
/**
* Check AVFrame for A53 side data and allocate and fill SEI message with A53 info
*

View File

@ -37,6 +37,7 @@
#include "av1.h"
#include "avcodec.h"
#include "internal.h"
#include "packet_internal.h"
#include "profiles.h"
/*

View File

@ -32,6 +32,7 @@
#include "internal.h"
#include "libavutil/avassert.h"
#include "libvpx.h"
#include "packet_internal.h"
#include "profiles.h"
#include "libavutil/avstring.h"
#include "libavutil/base64.h"

View File

@ -29,6 +29,7 @@
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
#include "packet_internal.h"
#if defined(_MSC_VER)
#define X264_API_IMPORTS 1

View File

@ -33,6 +33,7 @@
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"
#include "packet_internal.h"
typedef struct libx265Context {
const AVClass *class;

View File

@ -28,6 +28,7 @@
#include <xavs.h>
#include "avcodec.h"
#include "internal.h"
#include "packet_internal.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"

View File

@ -42,6 +42,7 @@
#include "internal.h"
#include "libxvid.h"
#include "mpegutils.h"
#include "packet_internal.h"
#if HAVE_UNISTD_H
#include <unistd.h>

View File

@ -63,6 +63,7 @@
#include "bytestream.h"
#include "wmv2.h"
#include "rv10.h"
#include "packet_internal.h"
#include "libxvid.h"
#include <limits.h>
#include "sp5x.h"

View File

@ -31,6 +31,7 @@
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "internal.h"
#include "packet_internal.h"
#define CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x)

View File

@ -0,0 +1,30 @@
/*
* 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_PACKET_INTERNAL_H
#define AVCODEC_PACKET_INTERNAL_H
#include <stdint.h>
#include "packet.h"
int ff_side_data_set_encoder_stats(AVPacket *pkt, int quality, int64_t *error, int error_count, int pict_type);
int ff_side_data_set_prft(AVPacket *pkt, int64_t timestamp);
#endif // AVCODEC_PACKET_INTERNAL_H

View File

@ -36,6 +36,7 @@
#include "avcodec.h"
#include "internal.h"
#include "packet_internal.h"
#include "qsv.h"
#include "qsv_internal.h"
#include "qsvenc.h"

View File

@ -25,6 +25,7 @@
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "internal.h"
#include "packet_internal.h"
#include "snow_dwt.h"
#include "snow.h"

View File

@ -33,6 +33,7 @@
#include "h263.h"
#include "internal.h"
#include "mpegutils.h"
#include "packet_internal.h"
#include "svq1.h"
#include "svq1enc.h"
#include "svq1enc_cb.h"