AVOutputFormat Struct Reference

#include <avformat.h>

Data Fields

const char * name
const char * long_name
 Descriptive name for the format, meant to be more human-readable than name.
const char * mime_type
const char * extensions
 comma-separated filename extensions
int priv_data_size
 size of private data so that it can be allocated in the wrapper
enum CodecID audio_codec
 default audio codec
enum CodecID video_codec
 default video codec
int(* write_header )(struct AVFormatContext *)
int(* write_packet )(struct AVFormatContext *, AVPacket *pkt)
int(* write_trailer )(struct AVFormatContext *)
int flags
 can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_RAWPICTURE, AVFMT_GLOBALHEADER, AVFMT_NOTIMESTAMPS, AVFMT_VARIABLE_FPS, AVFMT_NODIMENSIONS, AVFMT_NOSTREAMS
int(* set_parameters )(struct AVFormatContext *, AVFormatParameters *)
 Currently only used to set pixel format if not YUV420P.
int(* interleave_packet )(struct AVFormatContext *, AVPacket *out, AVPacket *in, int flush)
struct AVCodecTag *const * codec_tag
 List of supported codec_id-codec_tag pairs, ordered by "better choice first".
enum CodecID subtitle_codec
 default subtitle codec
const AVClasspriv_class
 AVClass for the private context.
int(* query_codec )(enum CodecID id, int std_compliance)
 Test if the given codec can be stored in this container.
struct AVOutputFormatnext

Detailed Description

Examples:
libavformat/output-example.c.

Definition at line 388 of file avformat.h.

Field Documentation

enum CodecID AVOutputFormat::audio_codec

default audio codec

Examples:
libavformat/output-example.c.

Definition at line 403 of file avformat.h.

Referenced by av_guess_codec(), avformat_query_codec(), main(), opt_output_file(), and parse_ffconfig().

struct AVCodecTag* const* AVOutputFormat::codec_tag

List of supported codec_id-codec_tag pairs, ordered by "better choice first".

The arrays are all terminated by CODEC_ID_NONE.

Definition at line 425 of file avformat.h.

Referenced by avformat_query_codec(), avformat_write_header(), transcode(), transcode_init(), and validate_codec_tag().

const char* AVOutputFormat::extensions

comma-separated filename extensions

Definition at line 397 of file avformat.h.

Referenced by av_guess_format().

int AVOutputFormat::flags
int(* AVOutputFormat::interleave_packet)(struct AVFormatContext *, AVPacket *out, AVPacket *in, int flush)

Definition at line 418 of file avformat.h.

Referenced by interleave_packet().

const char* AVOutputFormat::long_name

Descriptive name for the format, meant to be more human-readable than name.

You should use the NULL_IF_CONFIG_SMALL() macro to define it.

Definition at line 395 of file avformat.h.

Referenced by show_formats().

const char* AVOutputFormat::mime_type

Definition at line 396 of file avformat.h.

Referenced by av_guess_format(), and http_parse_request().

struct AVOutputFormat* AVOutputFormat::next

Definition at line 444 of file avformat.h.

Referenced by av_oformat_next(), and av_register_output_format().

const AVClass* AVOutputFormat::priv_class
int AVOutputFormat::priv_data_size

size of private data so that it can be allocated in the wrapper

Definition at line 401 of file avformat.h.

Referenced by avformat_write_header(), and segment_start().

int(* AVOutputFormat::query_codec)(enum CodecID id, int std_compliance)

Test if the given codec can be stored in this container.

Returns
1 if the codec is supported, 0 if it is not. A negative number if unknown.

Definition at line 441 of file avformat.h.

Referenced by avformat_query_codec().

int(* AVOutputFormat::set_parameters)(struct AVFormatContext *, AVFormatParameters *)

Currently only used to set pixel format if not YUV420P.

Definition at line 417 of file avformat.h.

enum CodecID AVOutputFormat::subtitle_codec

default subtitle codec

Definition at line 427 of file avformat.h.

Referenced by av_guess_codec(), avformat_query_codec(), and opt_output_file().

enum CodecID AVOutputFormat::video_codec

default video codec

Examples:
libavformat/output-example.c.

Definition at line 404 of file avformat.h.

Referenced by av_guess_codec(), avformat_query_codec(), main(), opt_output_file(), and parse_ffconfig().

int(* AVOutputFormat::write_header)(struct AVFormatContext *)

Definition at line 405 of file avformat.h.

Referenced by avformat_write_header(), and segment_start().

int(* AVOutputFormat::write_packet)(struct AVFormatContext *, AVPacket *pkt)
int(* AVOutputFormat::write_trailer)(struct AVFormatContext *)

Definition at line 407 of file avformat.h.

Referenced by av_write_trailer(), and segment_end().


The documentation for this struct was generated from the following file: