Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1059:890b9fb44e84 libavcodec
* still unfinished code for Options
* demo code - awating more comments
author | kabi |
---|---|
date | Mon, 10 Feb 2003 09:40:23 +0000 |
parents | e5a9dbf597d4 |
children | b32afefe7d33 |
comparison
equal
deleted
inserted
replaced
1058:3c3da6edc9a1 | 1059:890b9fb44e84 |
---|---|
3996 case S_TYPE: return 'S'; | 3996 case S_TYPE: return 'S'; |
3997 default: return '?'; | 3997 default: return '?'; |
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 AVCodec mpeg1video_encoder = { | 4025 AVCodec mpeg1video_encoder = { |
4002 "mpeg1video", | 4026 "mpeg1video", |
4003 CODEC_TYPE_VIDEO, | 4027 CODEC_TYPE_VIDEO, |
4004 CODEC_ID_MPEG1VIDEO, | 4028 CODEC_ID_MPEG1VIDEO, |
4005 sizeof(MpegEncContext), | 4029 sizeof(MpegEncContext), |
4046 CODEC_ID_MPEG4, | 4070 CODEC_ID_MPEG4, |
4047 sizeof(MpegEncContext), | 4071 sizeof(MpegEncContext), |
4048 MPV_encode_init, | 4072 MPV_encode_init, |
4049 MPV_encode_picture, | 4073 MPV_encode_picture, |
4050 MPV_encode_end, | 4074 MPV_encode_end, |
4075 .options = mpeg4_options, | |
4051 }; | 4076 }; |
4052 | 4077 |
4053 AVCodec msmpeg4v1_encoder = { | 4078 AVCodec msmpeg4v1_encoder = { |
4054 "msmpeg4v1", | 4079 "msmpeg4v1", |
4055 CODEC_TYPE_VIDEO, | 4080 CODEC_TYPE_VIDEO, |