Commit 6e190393 authored by James Almer's avatar James Almer

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

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent cca8f53a
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "bytestream.h" #include "bytestream.h"
#include "internal.h" #include "internal.h"
#include "packet.h" #include "packet.h"
#include "packet_internal.h"
void av_init_packet(AVPacket *pkt) void av_init_packet(AVPacket *pkt)
{ {
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "internal.h" #include "internal.h"
#include "mpegvideo.h" #include "mpegvideo.h"
#include "pixblockdsp.h" #include "pixblockdsp.h"
#include "packet_internal.h"
#include "profiles.h" #include "profiles.h"
#include "dnxhdenc.h" #include "dnxhdenc.h"
......
...@@ -358,10 +358,6 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame); ...@@ -358,10 +358,6 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame);
*/ */
AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx); 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 * Check AVFrame for A53 side data and allocate and fill SEI message with A53 info
* *
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "av1.h" #include "av1.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"
#include "packet_internal.h"
#include "profiles.h" #include "profiles.h"
/* /*
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "internal.h" #include "internal.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "libvpx.h" #include "libvpx.h"
#include "packet_internal.h"
#include "profiles.h" #include "profiles.h"
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/base64.h" #include "libavutil/base64.h"
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"
#include "packet_internal.h"
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define X264_API_IMPORTS 1 #define X264_API_IMPORTS 1
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"
#include "packet_internal.h"
typedef struct libx265Context { typedef struct libx265Context {
const AVClass *class; const AVClass *class;
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <xavs.h> #include <xavs.h>
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"
#include "packet_internal.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include "internal.h" #include "internal.h"
#include "libxvid.h" #include "libxvid.h"
#include "mpegutils.h" #include "mpegutils.h"
#include "packet_internal.h"
#if HAVE_UNISTD_H #if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
#include "bytestream.h" #include "bytestream.h"
#include "wmv2.h" #include "wmv2.h"
#include "rv10.h" #include "rv10.h"
#include "packet_internal.h"
#include "libxvid.h" #include "libxvid.h"
#include <limits.h> #include <limits.h>
#include "sp5x.h" #include "sp5x.h"
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "internal.h" #include "internal.h"
#include "packet_internal.h"
#define CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x) #define CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x)
......
/*
* 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
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"
#include "packet_internal.h"
#include "qsv.h" #include "qsv.h"
#include "qsv_internal.h" #include "qsv_internal.h"
#include "qsvenc.h" #include "qsvenc.h"
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"
#include "packet_internal.h"
#include "snow_dwt.h" #include "snow_dwt.h"
#include "snow.h" #include "snow.h"
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "h263.h" #include "h263.h"
#include "internal.h" #include "internal.h"
#include "mpegutils.h" #include "mpegutils.h"
#include "packet_internal.h"
#include "svq1.h" #include "svq1.h"
#include "svq1enc.h" #include "svq1enc.h"
#include "svq1enc_cb.h" #include "svq1enc_cb.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment