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

Signed-off-by: James Almer <jamrial@gmail.com>
pull/339/head
James Almer 5 years ago
parent cca8f53a8e
commit 6e1903938b
  1. 1
      libavcodec/avpacket.c
  2. 1
      libavcodec/dnxhdenc.c
  3. 4
      libavcodec/internal.h
  4. 1
      libavcodec/libaomenc.c
  5. 1
      libavcodec/libvpxenc.c
  6. 1
      libavcodec/libx264.c
  7. 1
      libavcodec/libx265.c
  8. 1
      libavcodec/libxavs.c
  9. 1
      libavcodec/libxvid.c
  10. 1
      libavcodec/mpegvideo_enc.c
  11. 1
      libavcodec/nvenc.c
  12. 30
      libavcodec/packet_internal.h
  13. 1
      libavcodec/qsvenc.c
  14. 1
      libavcodec/snowenc.c
  15. 1
      libavcodec/svq1enc.c

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

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

@ -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
*

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

@ -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"

@ -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

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

@ -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"

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

@ -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"

@ -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)

@ -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

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

@ -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"

@ -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"

Loading…
Cancel
Save