D:/opendownloadmanager/ODM-1.x/Include.Add/ffmpeg/avformat.h File Reference

#include <time.h>
#include <stdio.h>
#include "avcodec.h"
#include "avio.h"
#include "rtp.h"
#include "rtsp.h"

Go to the source code of this file.

Classes

struct  AVPacket
struct  AVFrac
struct  AVProbeData
struct  AVFormatParameters
struct  AVOutputFormat
struct  AVInputFormat
struct  AVIndexEntry
struct  AVStream
struct  AVFormatContext
struct  AVPacketList

Defines

#define LIBAVFORMAT_VERSION_INT   ((51<<16)+(8<<8)+0)
#define LIBAVFORMAT_VERSION   51.8.0
#define LIBAVFORMAT_BUILD   LIBAVFORMAT_VERSION_INT
#define LIBAVFORMAT_IDENT   "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
#define PKT_FLAG_KEY   0x0001
#define AVPROBE_SCORE_MAX   100
#define AVFMT_NOFILE   0x0001
#define AVFMT_NEEDNUMBER   0x0002
#define AVFMT_SHOW_IDS   0x0008
#define AVFMT_RAWPICTURE   0x0020
#define AVFMT_GLOBALHEADER   0x0040
#define AVFMT_NOTIMESTAMPS   0x0080
#define AVINDEX_KEYFRAME   0x0001
#define MAX_REORDER_DELAY   4
#define AVFMTCTX_NOHEADER   0x0001
#define MAX_STREAMS   20
#define AVFMT_NOOUTPUTLOOP   -1
#define AVFMT_INFINITEOUTPUTLOOP   0
#define AVFMT_FLAG_GENPTS   0x0001
#define AVFMT_FLAG_IGNIDX   0x0002
#define AVERROR_UNKNOWN   (-1)
#define AVERROR_IO   (-2)
#define AVERROR_NUMEXPECTED   (-3)
#define AVERROR_INVALIDDATA   (-4)
#define AVERROR_NOMEM   (-5)
#define AVERROR_NOFMT   (-6)
#define AVERROR_NOTSUPP   (-7)
#define AVSEEK_FLAG_BACKWARD   1
#define AVSEEK_FLAG_BYTE   2
#define AVSEEK_FLAG_ANY   4
#define FFM_PACKET_SIZE   4096

Typedefs

typedef struct AVFrac attribute_deprecated

Functions

void av_destruct_packet_nofree (AVPacket *pkt)
void av_destruct_packet (AVPacket *pkt)
static void av_init_packet (AVPacket *pkt)
int av_new_packet (AVPacket *pkt, int size)
int av_get_packet (ByteIOContext *s, AVPacket *pkt, int size)
int av_dup_packet (AVPacket *pkt)
static void av_free_packet (AVPacket *pkt)
enum CodecID av_guess_image2_codec (const char *filename)
void av_register_input_format (AVInputFormat *format)
void av_register_output_format (AVOutputFormat *format)
AVOutputFormatguess_stream_format (const char *short_name, const char *filename, const char *mime_type)
AVOutputFormatguess_format (const char *short_name, const char *filename, const char *mime_type)
enum CodecID av_guess_codec (AVOutputFormat *fmt, const char *short_name, const char *filename, const char *mime_type, enum CodecType type)
void av_hex_dump (FILE *f, uint8_t *buf, int size)
void av_pkt_dump (FILE *f, AVPacket *pkt, int dump_payload)
void av_register_all (void)
enum CodecID av_codec_get_id (const struct AVCodecTag **tags, unsigned int tag)
unsigned int av_codec_get_tag (const struct AVCodecTag **tags, enum CodecID id)
AVInputFormatav_find_input_format (const char *short_name)
AVInputFormatav_probe_input_format (AVProbeData *pd, int is_opened)
int av_open_input_stream (AVFormatContext **ic_ptr, ByteIOContext *pb, const char *filename, AVInputFormat *fmt, AVFormatParameters *ap)
int av_open_input_file (AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, int buf_size, AVFormatParameters *ap)
AVFormatContextav_alloc_format_context (void)
int av_find_stream_info (AVFormatContext *ic)
int av_read_packet (AVFormatContext *s, AVPacket *pkt)
int av_read_frame (AVFormatContext *s, AVPacket *pkt)
int av_seek_frame (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
int av_read_play (AVFormatContext *s)
int av_read_pause (AVFormatContext *s)
void av_close_input_file (AVFormatContext *s)
AVStreamav_new_stream (AVFormatContext *s, int id)
void av_set_pts_info (AVStream *s, int pts_wrap_bits, int pts_num, int pts_den)
int av_find_default_stream_index (AVFormatContext *s)
int av_index_search_timestamp (AVStream *st, int64_t timestamp, int flags)
int av_add_index_entry (AVStream *st, int64_t pos, int64_t timestamp, int size, int distance, int flags)
int av_seek_frame_binary (AVFormatContext *s, int stream_index, int64_t target_ts, int flags)
void av_update_cur_dts (AVFormatContext *s, AVStream *ref_st, int64_t timestamp)
int64_t av_gen_search (AVFormatContext *s, int stream_index, int64_t target_ts, int64_t pos_min, int64_t pos_max, int64_t pos_limit, int64_t ts_min, int64_t ts_max, int flags, int64_t *ts_ret, int64_t(*read_timestamp)(struct AVFormatContext *, int, int64_t *, int64_t))
int av_set_parameters (AVFormatContext *s, AVFormatParameters *ap)
int av_write_header (AVFormatContext *s)
int av_write_frame (AVFormatContext *s, AVPacket *pkt)
int av_interleaved_write_frame (AVFormatContext *s, AVPacket *pkt)
int av_interleave_packet_per_dts (AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)
int av_write_trailer (AVFormatContext *s)
void dump_format (AVFormatContext *ic, int index, const char *url, int is_output)
int parse_image_size (int *width_ptr, int *height_ptr, const char *str)
int parse_frame_rate (int *frame_rate, int *frame_rate_base, const char *arg)
int64_t parse_date (const char *datestr, int duration)
int64_t av_gettime (void)
offset_t ffm_read_write_index (int fd)
void ffm_write_write_index (int fd, offset_t pos)
void ffm_set_write_index (AVFormatContext *s, offset_t pos, offset_t file_size)
int find_info_tag (char *arg, int arg_size, const char *tag1, const char *info)
int av_get_frame_filename (char *buf, int buf_size, const char *path, int number)
int av_filename_number_test (const char *filename)
int video_grab_init (void)
int audio_init (void)
int dv1394_init (void)
int dc1394_init (void)

Variables

AVInputFormatfirst_iformat
AVOutputFormatfirst_oformat


Define Documentation

#define AVERROR_INVALIDDATA   (-4)

Definition at line 342 of file avformat.h.

#define AVERROR_IO   (-2)

Definition at line 340 of file avformat.h.

#define AVERROR_NOFMT   (-6)

Definition at line 344 of file avformat.h.

#define AVERROR_NOMEM   (-5)

Definition at line 343 of file avformat.h.

#define AVERROR_NOTSUPP   (-7)

Definition at line 345 of file avformat.h.

#define AVERROR_NUMEXPECTED   (-3)

Definition at line 341 of file avformat.h.

#define AVERROR_UNKNOWN   (-1)

Definition at line 339 of file avformat.h.

#define AVFMT_FLAG_GENPTS   0x0001

Definition at line 285 of file avformat.h.

#define AVFMT_FLAG_IGNIDX   0x0002

Definition at line 286 of file avformat.h.

#define AVFMT_GLOBALHEADER   0x0040

Definition at line 101 of file avformat.h.

Referenced by new_audio_stream(), and new_video_stream().

#define AVFMT_INFINITEOUTPUTLOOP   0

Definition at line 280 of file avformat.h.

#define AVFMT_NEEDNUMBER   0x0002

Definition at line 98 of file avformat.h.

Referenced by opt_output_file().

#define AVFMT_NOFILE   0x0001

Definition at line 97 of file avformat.h.

Referenced by ConvertMediaFile(), and opt_output_file().

#define AVFMT_NOOUTPUTLOOP   -1

Definition at line 279 of file avformat.h.

Referenced by vmsMediaConverterJob::vmsMediaConverterJob().

#define AVFMT_NOTIMESTAMPS   0x0080

Definition at line 102 of file avformat.h.

#define AVFMT_RAWPICTURE   0x0020

Definition at line 100 of file avformat.h.

Referenced by do_video_out(), and output_packet().

#define AVFMT_SHOW_IDS   0x0008

Definition at line 99 of file avformat.h.

#define AVFMTCTX_NOHEADER   0x0001

Definition at line 225 of file avformat.h.

#define AVINDEX_KEYFRAME   0x0001

Definition at line 172 of file avformat.h.

#define AVPROBE_SCORE_MAX   100

Definition at line 77 of file avformat.h.

#define AVSEEK_FLAG_ANY   4

Definition at line 360 of file avformat.h.

#define AVSEEK_FLAG_BACKWARD   1

Definition at line 358 of file avformat.h.

Referenced by opt_input_file().

#define AVSEEK_FLAG_BYTE   2

Definition at line 359 of file avformat.h.

#define FFM_PACKET_SIZE   4096

Definition at line 388 of file avformat.h.

#define LIBAVFORMAT_BUILD   LIBAVFORMAT_VERSION_INT

Definition at line 14 of file avformat.h.

#define LIBAVFORMAT_IDENT   "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)

Definition at line 16 of file avformat.h.

#define LIBAVFORMAT_VERSION   51.8.0

Definition at line 13 of file avformat.h.

#define LIBAVFORMAT_VERSION_INT   ((51<<16)+(8<<8)+0)

Definition at line 12 of file avformat.h.

#define MAX_REORDER_DELAY   4

Definition at line 221 of file avformat.h.

#define MAX_STREAMS   20

Definition at line 227 of file avformat.h.

#define PKT_FLAG_KEY   0x0001

Definition at line 36 of file avformat.h.

Referenced by do_audio_out(), do_video_out(), output_packet(), and write_frame().


Typedef Documentation

typedef struct AVFrac attribute_deprecated


Function Documentation

int audio_init ( void   ) 

int av_add_index_entry ( AVStream st,
int64_t  pos,
int64_t  timestamp,
int  size,
int  distance,
int  flags 
)

AVFormatContext* av_alloc_format_context ( void   ) 

void av_close_input_file ( AVFormatContext s  ) 

Referenced by ConvertMediaFile().

enum CodecID av_codec_get_id ( const struct AVCodecTag **  tags,
unsigned int  tag 
)

unsigned int av_codec_get_tag ( const struct AVCodecTag **  tags,
enum CodecID  id 
)

void av_destruct_packet ( AVPacket pkt  ) 

Referenced by output_packet(), and write_frame().

void av_destruct_packet_nofree ( AVPacket pkt  ) 

Referenced by av_init_packet().

int av_dup_packet ( AVPacket pkt  ) 

int av_filename_number_test ( const char *  filename  ) 

Referenced by opt_output_file().

int av_find_default_stream_index ( AVFormatContext s  ) 

AVInputFormat* av_find_input_format ( const char *  short_name  ) 

Referenced by opt_format().

int av_find_stream_info ( AVFormatContext ic  ) 

Referenced by opt_input_file().

static void av_free_packet ( AVPacket pkt  )  [inline, static]

Definition at line 56 of file avformat.h.

References AVPacket::destruct.

Referenced by av_encode(), output_packet(), and write_frame().

int64_t av_gen_search ( AVFormatContext s,
int  stream_index,
int64_t  target_ts,
int64_t  pos_min,
int64_t  pos_max,
int64_t  pos_limit,
int64_t  ts_min,
int64_t  ts_max,
int  flags,
int64_t ts_ret,
int64_t(*)(struct AVFormatContext *, int, int64_t *, int64_t read_timestamp 
)

int av_get_frame_filename ( char *  buf,
int  buf_size,
const char *  path,
int  number 
)

int av_get_packet ( ByteIOContext s,
AVPacket pkt,
int  size 
)

int64_t av_gettime ( void   ) 

Referenced by av_encode(), and output_packet().

enum CodecID av_guess_codec ( AVOutputFormat fmt,
const char *  short_name,
const char *  filename,
const char *  mime_type,
enum CodecType  type 
)

enum CodecID av_guess_image2_codec ( const char *  filename  ) 

void av_hex_dump ( FILE *  f,
uint8_t buf,
int  size 
)

int av_index_search_timestamp ( AVStream st,
int64_t  timestamp,
int  flags 
)

static void av_init_packet ( AVPacket pkt  )  [inline, static]

int av_interleave_packet_per_dts ( AVFormatContext s,
AVPacket out,
AVPacket pkt,
int  flush 
)

int av_interleaved_write_frame ( AVFormatContext s,
AVPacket pkt 
)

Referenced by write_frame().

int av_new_packet ( AVPacket pkt,
int  size 
)

AVStream* av_new_stream ( AVFormatContext s,
int  id 
)

int av_open_input_file ( AVFormatContext **  ic_ptr,
const char *  filename,
AVInputFormat fmt,
int  buf_size,
AVFormatParameters ap 
)

Referenced by opt_input_file().

int av_open_input_stream ( AVFormatContext **  ic_ptr,
ByteIOContext pb,
const char *  filename,
AVInputFormat fmt,
AVFormatParameters ap 
)

void av_pkt_dump ( FILE *  f,
AVPacket pkt,
int  dump_payload 
)

AVInputFormat* av_probe_input_format ( AVProbeData pd,
int  is_opened 
)

int av_read_frame ( AVFormatContext s,
AVPacket pkt 
)

Referenced by av_encode().

int av_read_packet ( AVFormatContext s,
AVPacket pkt 
)

int av_read_pause ( AVFormatContext s  ) 

int av_read_play ( AVFormatContext s  ) 

void av_register_all ( void   ) 

Referenced by Initialize().

void av_register_input_format ( AVInputFormat format  ) 

void av_register_output_format ( AVOutputFormat format  ) 

int av_seek_frame ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)

Referenced by opt_input_file().

int av_seek_frame_binary ( AVFormatContext s,
int  stream_index,
int64_t  target_ts,
int  flags 
)

int av_set_parameters ( AVFormatContext s,
AVFormatParameters ap 
)

Referenced by opt_output_file().

void av_set_pts_info ( AVStream s,
int  pts_wrap_bits,
int  pts_num,
int  pts_den 
)

void av_update_cur_dts ( AVFormatContext s,
AVStream ref_st,
int64_t  timestamp 
)

int av_write_frame ( AVFormatContext s,
AVPacket pkt 
)

int av_write_header ( AVFormatContext s  ) 

Referenced by av_encode().

int av_write_trailer ( AVFormatContext s  ) 

Referenced by av_encode().

int dc1394_init ( void   ) 

void dump_format ( AVFormatContext ic,
int  index,
const char *  url,
int  is_output 
)

int dv1394_init ( void   ) 

offset_t ffm_read_write_index ( int  fd  ) 

void ffm_set_write_index ( AVFormatContext s,
offset_t  pos,
offset_t  file_size 
)

void ffm_write_write_index ( int  fd,
offset_t  pos 
)

int find_info_tag ( char *  arg,
int  arg_size,
const char *  tag1,
const char *  info 
)

AVOutputFormat* guess_format ( const char *  short_name,
const char *  filename,
const char *  mime_type 
)

Referenced by opt_format(), and opt_output_file().

AVOutputFormat* guess_stream_format ( const char *  short_name,
const char *  filename,
const char *  mime_type 
)

int64_t parse_date ( const char *  datestr,
int  duration 
)

int parse_frame_rate ( int *  frame_rate,
int *  frame_rate_base,
const char *  arg 
)

int parse_image_size ( int *  width_ptr,
int *  height_ptr,
const char *  str 
)

int video_grab_init ( void   ) 


Variable Documentation


Generated on Sun May 25 00:19:59 2008 by  doxygen 1.5.6