Revision fe1b62fb libavcodec/mpegvideo.c

View differences:

libavcodec/mpegvideo.c
3998 3998
    }
3999 3999
}
4000 4000

  
4001
extern const AVOption common_options[2];
4002
static const AVOption mpeg4_options[] =
4003
{
4004
    AVOPTION_CODEC_INT("bitrate", "desired video bitrate", bit_rate, 4, 240000000, 800000),
4005
    AVOPTION_CODEC_FLAG("vhq", "very high quality", flags, CODEC_FLAG_HQ, 0),
4006
    AVOPTION_CODEC_INT("ratetol", "number of bits the bitstream is allowed to diverge from the reference"
4007
		       "the reference can be CBR (for CBR pass1) or VBR (for pass2)",
4008
		       bit_rate_tolerance, 4, 240000000, 8000),
4009
    AVOPTION_CODEC_INT("qmin", "minimum quantizer", qmin, 1, 31, 2),
4010
    AVOPTION_CODEC_INT("qmax", "maximum quantizer", qmax, 1, 31, 31),
4011
    AVOPTION_CODEC_STRING("rc_eq", "rate control equation",
4012
			  rc_eq, "tex^qComp,option1,options2", 0),
4013
    AVOPTION_CODEC_INT("rc_minrate", "rate control minimum bitrate",
4014
		       rc_min_rate, 4, 24000000, 0),
4015
    AVOPTION_CODEC_INT("rc_maxrate", "rate control maximum bitrate",
4016
		       rc_max_rate, 4, 24000000, 0),
4017
    AVOPTION_CODEC_FLAG("psnr", "calculate PSNR of compressed frames",
4018
		        flags, CODEC_FLAG_PSNR, 0),
4019
    AVOPTION_CODEC_RCOVERRIDE("rc_override", "ratecontrol override (=startframe,endframe,qscale,quality_factor)",
4020
			      rc_override),
4021
    AVOPTION_SUB(common_options),
4022
    AVOPTION_END()
4023
};
4024

  
4001 4025
AVCodec mpeg1video_encoder = {
4002 4026
    "mpeg1video",
4003 4027
    CODEC_TYPE_VIDEO,
......
4048 4072
    MPV_encode_init,
4049 4073
    MPV_encode_picture,
4050 4074
    MPV_encode_end,
4075
    .options = mpeg4_options,
4051 4076
};
4052 4077

  
4053 4078
AVCodec msmpeg4v1_encoder = {

Also available in: Unified diff