chromium/third_party/ffmpeg/libavcodec/packet.c

/*
 * AVPacket functions for libavcodec
 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
 *
 * 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
 */

#include <string.h>

#include "libavutil/avassert.h"
#include "libavutil/avutil.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "libavutil/rational.h"

#include "defs.h"
#include "packet.h"
#include "packet_internal.h"

#if FF_API_INIT_PACKET
void av_init_packet(AVPacket *pkt)
{}
#endif

static void get_packet_defaults(AVPacket *pkt)
{}

AVPacket *av_packet_alloc(void)
{}

void av_packet_free(AVPacket **pkt)
{}

static int packet_alloc(AVBufferRef **buf, int size)
{}

int av_new_packet(AVPacket *pkt, int size)
{}

void av_shrink_packet(AVPacket *pkt, int size)
{}

int av_grow_packet(AVPacket *pkt, int grow_by)
{}

int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size)
{}

void av_packet_free_side_data(AVPacket *pkt)
{}

int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
                            uint8_t *data, size_t size)
{}


uint8_t *av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
                                 size_t size)
{}

uint8_t *av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type,
                                 size_t *size)
{}

const char *av_packet_side_data_name(enum AVPacketSideDataType type)
{}

uint8_t *av_packet_pack_dictionary(AVDictionary *dict, size_t *size)
{}

int av_packet_unpack_dictionary(const uint8_t *data, size_t size,
                                AVDictionary **dict)
{}

int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
                               size_t size)
{}

int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
{}

void av_packet_unref(AVPacket *pkt)
{}

int av_packet_ref(AVPacket *dst, const AVPacket *src)
{}

AVPacket *av_packet_clone(const AVPacket *src)
{}

void av_packet_move_ref(AVPacket *dst, AVPacket *src)
{}

int av_packet_make_refcounted(AVPacket *pkt)
{}

int av_packet_make_writable(AVPacket *pkt)
{}

void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb)
{}

int avpriv_packet_list_put(PacketList *packet_buffer,
                           AVPacket      *pkt,
                           int (*copy)(AVPacket *dst, const AVPacket *src),
                           int flags)
{}

int avpriv_packet_list_get(PacketList *pkt_buffer,
                           AVPacket      *pkt)
{}

void avpriv_packet_list_free(PacketList *pkt_buf)
{}

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)
{}

const AVPacketSideData *av_packet_side_data_get(const AVPacketSideData *sd, int nb_sd,
                                                enum AVPacketSideDataType type)
{}

static AVPacketSideData *packet_side_data_add(AVPacketSideData **psd, int *pnb_sd,
                                              enum AVPacketSideDataType type,
                                              void *data, size_t size)
{}

AVPacketSideData *av_packet_side_data_add(AVPacketSideData **psd, int *pnb_sd,
                                          enum AVPacketSideDataType type,
                                          void *data, size_t size, int flags)
{}

AVPacketSideData *av_packet_side_data_new(AVPacketSideData **psd, int *pnb_sd,
                                          enum AVPacketSideDataType type,
                                          size_t size, int flags)
{}

void av_packet_side_data_remove(AVPacketSideData *sd, int *pnb_sd,
                                enum AVPacketSideDataType type)
{}

void av_packet_side_data_free(AVPacketSideData **psd, int *pnb_sd)
{}