22 #include "libavutil/intreadwrite.h"
23 #include "libavutil/intfloat.h"
24 #include "libavutil/avassert.h"
25 #include "libavutil/parseutils.h"
61 int64_t dts,
int header)
248 if (pkt->
pts != pkt->
dts) {
int mpeg_quant
0-> h263 quant 1-> mpeg quant
int dct_algo
DCT algorithm, see FF_DCT_* below.
float qblur
amount of qscale smoothing over time (0.0-1.0)
int max_b_frames
maximum number of B-frames between non-B-frames Note: The output will be delayed by max_b_frames+1 re...
AVDictionaryEntry * av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
AVCodecContext * codec
Codec context associated with this stream.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int frame_skip_cmp
frame skip comparison function
float i_quant_offset
qscale offset between P and I-frames
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
int scenechange_threshold
scene change detection threshold 0 is default, larger means fewer detected scene changes.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
static void write_header_chunk(AVIOContext *pb, AVIOContext *dpb, unsigned id)
int bit_rate_tolerance
number of bits the bitstream is allowed to diverge from the reference.
static void ffm_write_data(AVFormatContext *s, const uint8_t *buf, int size, int64_t dts, int header)
#define FRAME_HEADER_SIZE
int me_range
maximum motion estimation search range in subpel units If 0 then no limit.
#define CODEC_FLAG_GLOBAL_HEADER
Place global headers in extradata instead of every keyframe.
float b_quant_factor
qscale factor between IP and B-frames If > 0 then the last P-frame quantizer will be used (q= lastp_q...
int me_cmp
motion estimation comparison function
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
void * priv_data
Format private data.
int qmax
maximum quantizer
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int rc_max_rate
maximum bitrate
float i_quant_factor
qscale factor between P and I-frames If > 0 then the last p frame quantizer will be used (q= lastp_q*...
int flags
A combination of AV_PKT_FLAG values.
int rc_buffer_size
decoder bitstream buffer size
static int ffm_write_trailer(AVFormatContext *s)
int intra_dc_precision
precision of the intra DC coefficient - 8
unsigned int nb_streams
A list of all streams in the file.
static void flush_packet(AVFormatContext *s)
int refs
number of reference frames
int bit_rate
the average bitrate
static int ffm_write_header(AVFormatContext *s)
int width
picture width / height.
const char * rc_eq
rate control equation
static int write_trailer(AVFormatContext *s1)
int mb_decision
macroblock decision mode
int max_qdiff
maximum quantizer difference between frames
int thread_count
thread count is used to decide how many independent tasks should be passed to execute() ...
int frame_size
Number of samples per channel in an audio frame.
enum AVMediaType codec_type
int sample_rate
samples per second
main external API structure.
int qmin
minimum quantizer
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVIOContext * pb
I/O context.
#define MKTAG(a, b, c, d)
float rc_buffer_aggressivity
int av_parse_time(int64_t *timeval, const char *timestr, int duration)
Parse timestr and return in *time a corresponding number of microseconds.
float b_quant_offset
qscale offset between IP and B-frames
#define MKBETAG(a, b, c, d)
float qcompress
amount of qscale change between easy & hard scenes (0.0-1.0)
#define av_assert1(cond)
assert() equivalent, that does not lie in speed critical code.
AVOutputFormat ff_ffm_muxer
int gop_size
the number of pictures in a group of pictures, or 0 for intra_only
uint8_t packet[FFM_PACKET_SIZE]
int channels
number of audio channels
static void write_header(FFV1Context *f)
static av_always_inline uint64_t av_double2int(double f)
Reinterpret a double as a 64-bit integer.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
#define av_assert0(cond)
assert() equivalent, that is always enabled.
int me_method
Motion estimation algorithm used for video coding.
int rc_min_rate
minimum bitrate
This structure stores compressed data.
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
int me_subpel_quality
subpel ME quality
int strict_std_compliance
strictly follow the standard (MPEG4, ...).
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
int keyint_min
minimum GOP size