Revision 40c5fa26 libavcodec/mpegvideo.c

View differences:

libavcodec/mpegvideo.c
6399 6399
    }
6400 6400
}
6401 6401

  
6402
static const AVOption mpeg4_options[] =
6403
{
6404
    AVOPTION_CODEC_INT("bitrate", "desired video bitrate", bit_rate, 4, 240000000, 800000),
6405
    AVOPTION_CODEC_INT("ratetol", "number of bits the bitstream is allowed to diverge from the reference"
6406
		       "the reference can be CBR (for CBR pass1) or VBR (for pass2)",
6407
		       bit_rate_tolerance, 4, 240000000, 8000),
6408
    AVOPTION_CODEC_INT("qmin", "minimum quantizer", qmin, 1, 31, 2),
6409
    AVOPTION_CODEC_INT("qmax", "maximum quantizer", qmax, 1, 31, 31),
6410
    AVOPTION_CODEC_STRING("rc_eq", "rate control equation",
6411
			  rc_eq, "tex^qComp,option1,options2", 0),
6412
    AVOPTION_CODEC_INT("rc_minrate", "rate control minimum bitrate",
6413
		       rc_min_rate, 4, 24000000, 0),
6414
    AVOPTION_CODEC_INT("rc_maxrate", "rate control maximum bitrate",
6415
		       rc_max_rate, 4, 24000000, 0),
6416
    AVOPTION_CODEC_DOUBLE("rc_buf_aggresivity", "rate control buffer aggresivity",
6417
			  rc_buffer_aggressivity, 4, 24000000, 0),
6418
    AVOPTION_CODEC_DOUBLE("rc_initial_cplx", "initial complexity for pass1 ratecontrol",
6419
			  rc_initial_cplx, 0., 9999999., 0),
6420
    AVOPTION_CODEC_DOUBLE("i_quant_factor", "qscale factor between p and i frames",
6421
			  i_quant_factor, 0., 0., 0),
6422
    AVOPTION_CODEC_DOUBLE("i_quant_offset", "qscale offset between p and i frames",
6423
			  i_quant_factor, -999999., 999999., 0),
6424
    AVOPTION_CODEC_INT("dct_algo", "dct alghorithm",
6425
		       dct_algo, 0, 5, 0), // fixme - "Auto,FastInt,Int,MMX,MLib,Altivec"
6426
    AVOPTION_CODEC_DOUBLE("lumi_masking", "luminance masking",
6427
			  lumi_masking, 0., 999999., 0),
6428
    AVOPTION_CODEC_DOUBLE("temporal_cplx_masking", "temporary complexity masking",
6429
			  temporal_cplx_masking, 0., 999999., 0),
6430
    AVOPTION_CODEC_DOUBLE("spatial_cplx_masking", "spatial complexity masking",
6431
			  spatial_cplx_masking, 0., 999999., 0),
6432
    AVOPTION_CODEC_DOUBLE("p_masking", "p block masking",
6433
			  p_masking, 0., 999999., 0),
6434
    AVOPTION_CODEC_DOUBLE("dark_masking", "darkness masking",
6435
			  dark_masking, 0., 999999., 0),
6436
    AVOPTION_CODEC_INT("idct_algo", "idct alghorithm",
6437
		       idct_algo, 0, 8, 0), // fixme - "Auto,Int,Simple,SimpleMMX,LibMPEG2MMX,PS2,MLib,ARM,Altivec"
6438

  
6439
    AVOPTION_CODEC_INT("mb_qmin", "minimum MB quantizer",
6440
		       mb_qmin, 0, 8, 0),
6441
    AVOPTION_CODEC_INT("mb_qmax", "maximum MB quantizer",
6442
		       mb_qmin, 0, 8, 0),
6443

  
6444
    AVOPTION_CODEC_INT("me_cmp", "ME compare function",
6445
		       me_cmp, 0, 24000000, 0),
6446
    AVOPTION_CODEC_INT("me_sub_cmp", "subpixel ME compare function",
6447
		       me_sub_cmp, 0, 24000000, 0),
6448

  
6449

  
6450
    AVOPTION_CODEC_INT("dia_size", "ME diamond size & shape",
6451
		       dia_size, 0, 24000000, 0),
6452
    AVOPTION_CODEC_INT("last_predictor_count", "amount of previous MV predictors",
6453
		       last_predictor_count, 0, 24000000, 0),
6454

  
6455
    AVOPTION_CODEC_INT("pre_me", "pre pass for ME",
6456
		       pre_me, 0, 24000000, 0),
6457
    AVOPTION_CODEC_INT("me_pre_cmp", "ME pre pass compare function",
6458
		       me_pre_cmp, 0, 24000000, 0),
6459

  
6460
    AVOPTION_CODEC_INT("me_range", "maximum ME search range",
6461
		       me_range, 0, 24000000, 0),
6462
    AVOPTION_CODEC_INT("pre_dia_size", "ME pre pass diamod size & shape",
6463
		       pre_dia_size, 0, 24000000, 0),
6464
    AVOPTION_CODEC_INT("me_subpel_quality", "subpel ME quality",
6465
		       me_subpel_quality, 0, 24000000, 0),
6466
    AVOPTION_CODEC_INT("me_range", "maximum ME search range",
6467
		       me_range, 0, 24000000, 0),
6468
    AVOPTION_CODEC_FLAG("psnr", "calculate PSNR of compressed frames",
6469
		        flags, CODEC_FLAG_PSNR, 0),
6470
    AVOPTION_CODEC_RCOVERRIDE("rc_override", "ratecontrol override (=startframe,endframe,qscale,quality_factor)",
6471
			      rc_override),
6472
    AVOPTION_SUB(avoptions_common),
6473
    AVOPTION_END()
6474
};
6475

  
6476 6402
#ifdef CONFIG_ENCODERS
6477 6403
AVCodec h263_encoder = {
6478 6404
    "h263",
......
6538 6464
    MPV_encode_picture,
6539 6465
    MPV_encode_end,
6540 6466
    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
6541
    .options = mpeg4_options,
6542 6467
    .capabilities= CODEC_CAP_DELAY,
6543 6468
};
6544 6469

  
......
6551 6476
    MPV_encode_picture,
6552 6477
    MPV_encode_end,
6553 6478
    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
6554
    .options = mpeg4_options,
6555 6479
};
6556 6480

  
6557 6481
AVCodec msmpeg4v2_encoder = {
......
6563 6487
    MPV_encode_picture,
6564 6488
    MPV_encode_end,
6565 6489
    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
6566
    .options = mpeg4_options,
6567 6490
};
6568 6491

  
6569 6492
AVCodec msmpeg4v3_encoder = {
......
6575 6498
    MPV_encode_picture,
6576 6499
    MPV_encode_end,
6577 6500
    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
6578
    .options = mpeg4_options,
6579 6501
};
6580 6502

  
6581 6503
AVCodec wmv1_encoder = {
......
6587 6509
    MPV_encode_picture,
6588 6510
    MPV_encode_end,
6589 6511
    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
6590
    .options = mpeg4_options,
6591 6512
};
6592 6513

  
6593 6514
AVCodec mjpeg_encoder = {

Also available in: Unified diff