+
+ /**
+ * 0-> h263 quant 1-> mpeg quant
+ * encoding: set by user.
+ * decoding: unused
+ */
+ int mpeg_quant;
+
+ /**
+ * pass1 encoding statistics output buffer
+ * encoding: set by lavc
+ * decoding: unused
+ */
+ char *stats_out; /* encoding statistics output buffer */
+
+ /**
+ * pass2 encoding statistics input buffer.
+ * concatenated stuff from stats_out of pass1 should be placed here
+ * encoding: allocated/set/freed by user
+ * decoding: unused
+ */
+ char *stats_in;
+
+ /**
+ * ratecontrol qmin qmax limiting method
+ * 0-> clipping, 1-> use a nice continous function to limit qscale wthin qmin/qmax
+ * encoding: set by user.
+ * decoding: unused
+ */
+ float rc_qsquish;
+
+ float rc_qmod_amp;
+ int rc_qmod_freq;
+
+ /**
+ * ratecontrol override, see RcOverride
+ * encoding: allocated/set/freed by user.
+ * decoding: unused
+ */
+ RcOverride *rc_override;
+ int rc_override_count;
+
+ /**
+ * rate control equation
+ * encoding: set by user
+ * decoding: unused
+ */
+ char *rc_eq;
+
+ /**
+ * maximum bitrate
+ * encoding: set by user.
+ * decoding: unused
+ */
+ int rc_max_rate;
+
+ /**
+ * minimum bitrate
+ * encoding: set by user.
+ * decoding: unused
+ */
+ int rc_min_rate;
+
+ /**
+ * decoder bitstream buffer size
+ * encoding: set by user.
+ * decoding: unused
+ */
+ int rc_buffer_size;
+ float rc_buffer_aggressivity;
+
+ /**
+ * qscale factor between p and i frames
+ * encoding: set by user.
+ * decoding: unused
+ */
+ float i_quant_factor;
+
+ /**
+ * qscale offset between p and i frames
+ * if > 0 then the last p frame quantizer will be used (q= lastp_q*factor+offset)
+ * if < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset)
+ * encoding: set by user.
+ * decoding: unused
+ */
+ float i_quant_offset;
+
+ /**
+ * initial complexity for pass1 ratecontrol
+ * encoding: set by user.
+ * decoding: unused
+ */
+ float rc_initial_cplx;
+
+ /**
+ * custom aspect ratio, used if aspect_info==FF_ASPECT_EXTENDED
+ * encoding: set by user.
+ * decoding: set by lavc.
+ */
+ int aspected_width;
+ int aspected_height;
+
+ /**
+ * dct algorithm, see FF_DCT_* below
+ * encoding: set by user
+ * decoding: unused
+ */
+ int dct_algo;
+#define FF_DCT_AUTO 0
+#define FF_DCT_FASTINT 1
+#define FF_DCT_INT 2
+#define FF_DCT_MMX 3
+#define FF_DCT_MLIB 4
+
+ /**
+ * presentation timestamp in micro seconds (time when frame should be shown to user)
+ * if 0 then the frame_rate will be used as reference
+ * encoding: set by user
+ * decoding; set by lavc
+ */
+ long long int pts;
+
+ /**
+ * luminance masking (0-> disabled)
+ * encoding: set by user
+ * decoding: unused
+ */
+ float lumi_masking;
+
+ /**
+ * temporary complexity masking (0-> disabled)
+ * encoding: set by user
+ * decoding: unused
+ */
+ float temporal_cplx_masking;
+
+ /**
+ * spatial complexity masking (0-> disabled)
+ * encoding: set by user
+ * decoding: unused
+ */
+ float spatial_cplx_masking;
+
+ /**
+ * p block masking (0-> disabled)
+ * encoding: set by user
+ * decoding: unused
+ */
+ float p_masking;
+
+ /**
+ * darkness masking (0-> disabled)
+ * encoding: set by user
+ * decoding: unused
+ */
+ float dark_masking;
+
+ /**
+ * fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A')
+ * this is used to workaround some encoder bugs
+ * encoding: unused
+ * decoding: set by user, will be converted to upper case by lavc during init
+ */
+ int fourcc;
+
+ /**
+ * idct algorithm, see FF_IDCT_* below
+ * encoding: set by user
+ * decoding: set by user
+ */
+ int idct_algo;
+#define FF_IDCT_AUTO 0
+#define FF_IDCT_INT 1
+#define FF_IDCT_SIMPLE 2
+#define FF_IDCT_SIMPLEMMX 3
+#define FF_IDCT_LIBMPEG2MMX 4
+#define FF_IDCT_PS2 5
+#define FF_IDCT_MLIB 6
+#define FF_IDCT_ARM 7
+
+ /**
+ * slice count
+ * encoding: set by lavc
+ * decoding: set by user (or 0)
+ */
+ int slice_count;
+ /**
+ * slice offsets in the frame in bytes
+ * encoding: set/allocated by lavc
+ * decoding: set/allocated by user (or NULL)
+ */
+ int *slice_offset;
+
+ /**
+ * error concealment flags
+ * encoding: unused
+ * decoding: set by user
+ */
+ int error_concealment;
+#define FF_EC_GUESS_MVS 1
+#define FF_EC_DEBLOCK 2