Logo Search packages:      
Sourcecode: blender version File versions

ratecontrol.c File Reference


Detailed Description

Rate control for video encoders.

Definition in file ratecontrol.c.

#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include <assert.h>

Go to the source code of this file.

Defines

#define M_E   2.718281828

Functions

static void adaptive_quantization (MpegEncContext *s, double q)
static double bits2qp (RateControlEntry *rce, double bits)
void ff_get_2pass_fcode (MpegEncContext *s)
int ff_rate_control_init (MpegEncContext *s)
void ff_rate_control_uninit (MpegEncContext *s)
float ff_rate_estimate_qscale (MpegEncContext *s, int dry_run)
int ff_vbv_update (MpegEncContext *s, int frame_size)
void ff_write_pass1_stats (MpegEncContext *s)
static double get_diff_limited_q (MpegEncContext *s, RateControlEntry *rce, double q)
static void get_qminmax (int *qmin_ret, int *qmax_ret, MpegEncContext *s, int pict_type)
static double get_qscale (MpegEncContext *s, RateControlEntry *rce, double rate_factor, int frame_num)
static int init_pass2 (MpegEncContext *s)
static double modify_qscale (MpegEncContext *s, RateControlEntry *rce, double q, int frame_num)
static double predict_size (Predictor *p, double q, double var)
static double qp2bits (RateControlEntry *rce, double qp)
static void update_predictor (Predictor *p, double q, double var, double size)


Generated by  Doxygen 1.6.0   Back to index