FFmpeg
Data Structures | Macros | Functions
avformat_internal.h File Reference
#include <stdint.h>
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  FormatContextInternal
 
struct  FFStreamGroup
 

Macros

#define RELATIVE_TS_BASE   (INT64_MAX - (1LL << 48))
 

Functions

static av_always_inline FormatContextInternalff_fc_internal (AVFormatContext *s)
 
static av_always_inline int is_relative (int64_t ts)
 
int64_t ff_wrap_timestamp (const AVStream *st, int64_t timestamp)
 Wrap a given time stamp, if there is an indication for an overflow. More...
 
static av_always_inline FFStreamGroupffstreamgroup (AVStreamGroup *stg)
 
static const av_always_inline FFStreamGroupcffstreamgroup (const AVStreamGroup *stg)
 
void ff_flush_packet_queue (AVFormatContext *s)
 
const struct AVCodecff_find_decoder (AVFormatContext *s, const AVStream *st, enum AVCodecID codec_id)
 
void ff_free_stream (AVStream **st)
 Frees a stream without modifying the corresponding AVFormatContext. More...
 
void ff_free_stream_group (AVStreamGroup **pstg)
 Frees a stream group without modifying the corresponding AVFormatContext. More...
 
int ff_is_intra_only (enum AVCodecID id)
 
void avpriv_register_devices (const struct FFOutputFormat *const o[], const struct FFInputFormat *const i[])
 

Macro Definition Documentation

◆ RELATIVE_TS_BASE

#define RELATIVE_TS_BASE   (INT64_MAX - (1LL << 48))

Definition at line 112 of file avformat_internal.h.

Function Documentation

◆ ff_fc_internal()

static av_always_inline FormatContextInternal* ff_fc_internal ( AVFormatContext s)
static

◆ is_relative()

static av_always_inline int is_relative ( int64_t  ts)
static

◆ ff_wrap_timestamp()

int64_t ff_wrap_timestamp ( const AVStream st,
int64_t  timestamp 
)

Wrap a given time stamp, if there is an indication for an overflow.

Parameters
ststream
timestampthe time stamp to wrap
Returns
resulting time stamp

Definition at line 68 of file demux.c.

Referenced by av_add_index_entry(), and read_timestamp().

◆ ffstreamgroup()

static av_always_inline FFStreamGroup* ffstreamgroup ( AVStreamGroup stg)
static

Definition at line 137 of file avformat_internal.h.

◆ cffstreamgroup()

static const av_always_inline FFStreamGroup* cffstreamgroup ( const AVStreamGroup stg)
static

Definition at line 142 of file avformat_internal.h.

Referenced by avformat_stream_group_add_stream().

◆ ff_flush_packet_queue()

void ff_flush_packet_queue ( AVFormatContext s)

◆ ff_find_decoder()

const struct AVCodec* ff_find_decoder ( AVFormatContext s,
const AVStream st,
enum AVCodecID  codec_id 
)

Definition at line 894 of file avformat.c.

Referenced by av_find_best_stream(), and find_probe_decoder().

◆ ff_free_stream()

void ff_free_stream ( AVStream **  st)

Frees a stream without modifying the corresponding AVFormatContext.

Must only be called if the latter doesn't matter or if the stream is not yet attached to an AVFormatContext.

Definition at line 45 of file avformat.c.

Referenced by avformat_free_context(), avformat_new_stream(), and ff_remove_stream().

◆ ff_free_stream_group()

void ff_free_stream_group ( AVStreamGroup **  pstg)

Frees a stream group without modifying the corresponding AVFormatContext.

Must only be called if the latter doesn't matter or if the stream is not yet attached to an AVFormatContext.

Definition at line 84 of file avformat.c.

Referenced by avformat_free_context(), avformat_stream_group_create(), and ff_remove_stream_group().

◆ ff_is_intra_only()

int ff_is_intra_only ( enum AVCodecID  id)

Definition at line 940 of file avformat.c.

Referenced by compute_pkt_fields(), and init_muxer().

◆ avpriv_register_devices()

void avpriv_register_devices ( const struct FFOutputFormat *const  o[],
const struct FFInputFormat *const  i[] 
)