@ -47,11 +47,11 @@ static const AVOption avcodec_options[] = {
" to minimum/maximum bitrate. Lowering tolerance too much has an adverse effect on quality. " ,
OFFSET ( bit_rate_tolerance ) , AV_OPT_TYPE_INT , { . i64 = AV_CODEC_DEFAULT_BITRATE * 20 } , 1 , INT_MAX , V | E } ,
{ " flags " , NULL , OFFSET ( flags ) , AV_OPT_TYPE_FLAGS , { . i64 = DEFAULT } , 0 , UINT_MAX , V | A | E | D , " flags " } ,
{ " unaligned " , " allow decoders to produce unaligned output " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_UNALIGNED } , INT_MIN , INT_MAX , V | D , " flags " } ,
{ " mv4 " , " use four motion vectors per macroblock (MPEG-4) " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_4MV } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " qpel " , " use 1/4-pel motion compensation " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_QPEL } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " loop " , " use loop filter " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_LOOP_FILTER } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " qscale " , " use fixed qscale " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_QSCALE } , INT_MIN , INT_MAX , 0 , " flags " } ,
{ " unaligned " , " allow decoders to produce unaligned output " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_UNALIGNED } , INT_MIN , INT_MAX , V | D , " flags " } ,
{ " mv4 " , " use four motion vectors per macroblock (MPEG-4) " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_4MV } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " qpel " , " use 1/4-pel motion compensation " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_QPEL } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " loop " , " use loop filter " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_LOOP_FILTER } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " qscale " , " use fixed qscale " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_QSCALE } , INT_MIN , INT_MAX , 0 , " flags " } ,
# if FF_API_GMC
{ " gmc " , " use gmc " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_GMC } , INT_MIN , INT_MAX , V | E , " flags " } ,
# endif
@ -61,29 +61,29 @@ static const AVOption avcodec_options[] = {
# if FF_API_INPUT_PRESERVED
{ " input_preserved " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_INPUT_PRESERVED } , INT_MIN , INT_MAX , 0 , " flags " } ,
# endif
{ " pass1 " , " use internal 2-pass ratecontrol in first pass mode " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_PASS1 } , INT_MIN , INT_MAX , 0 , " flags " } ,
{ " pass2 " , " use internal 2-pass ratecontrol in second pass mode " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_PASS2 } , INT_MIN , INT_MAX , 0 , " flags " } ,
{ " gray " , " only decode/encode grayscale " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_GRAY } , INT_MIN , INT_MAX , V | E | D , " flags " } ,
{ " pass1 " , " use internal 2-pass ratecontrol in first pass mode " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_PASS1 } , INT_MIN , INT_MAX , 0 , " flags " } ,
{ " pass2 " , " use internal 2-pass ratecontrol in second pass mode " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_PASS2 } , INT_MIN , INT_MAX , 0 , " flags " } ,
{ " gray " , " only decode/encode grayscale " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_GRAY } , INT_MIN , INT_MAX , V | E | D , " flags " } ,
# if FF_API_EMU_EDGE
{ " emu_edge " , " do not draw edges " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_EMU_EDGE } , INT_MIN , INT_MAX , 0 , " flags " } ,
# endif
{ " psnr " , " error[?] variables will be set during encoding " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_PSNR } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " truncated " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_TRUNCATED } , INT_MIN , INT_MAX , 0 , " flags " } ,
{ " psnr " , " error[?] variables will be set during encoding " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_PSNR } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " truncated " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_TRUNCATED } , INT_MIN , INT_MAX , 0 , " flags " } ,
# if FF_API_NORMALIZE_AQP
{ " naq " , " normalize adaptive quantization " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_NORMALIZE_AQP } , INT_MIN , INT_MAX , V | E , " flags " } ,
# endif
{ " ildct " , " use interlaced DCT " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_INTERLACED_DCT } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " low_delay " , " force low delay " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_LOW_DELAY } , INT_MIN , INT_MAX , V | D | E , " flags " } ,
{ " global_header " , " place global headers in extradata instead of every keyframe " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_GLOBAL_HEADER } , INT_MIN , INT_MAX , V | A | E , " flags " } ,
{ " bitexact " , " use only bitexact functions (except (I)DCT) " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_BITEXACT } , INT_MIN , INT_MAX , A | V | S | D | E , " flags " } ,
{ " aic " , " H.263 advanced intra coding / MPEG-4 AC prediction " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_AC_PRED } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " ilme " , " interlaced motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_INTERLACED_ME } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " cgop " , " closed GOP " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_CLOSED_GOP } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " output_corrupt " , " Output even potentially corrupted frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_OUTPUT_CORRUPT } , INT_MIN , INT_MAX , V | D , " flags " } ,
{ " fast " , " allow non-spec-compliant speedup tricks " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_FAST } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
{ " noout " , " skip bitstream encoding " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_NO_OUTPUT } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
{ " ignorecrop " , " ignore cropping information from sps " , 1 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_IGNORE_CROP } , INT_MIN , INT_MAX , V | D , " flags2 " } ,
{ " local_header " , " place global headers at every keyframe instead of in extradata " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_LOCAL_HEADER } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
{ " ildct " , " use interlaced DCT " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_INTERLACED_DCT } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " low_delay " , " force low delay " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_LOW_DELAY } , INT_MIN , INT_MAX , V | D | E , " flags " } ,
{ " global_header " , " place global headers in extradata instead of every keyframe " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_GLOBAL_HEADER } , INT_MIN , INT_MAX , V | A | E , " flags " } ,
{ " bitexact " , " use only bitexact functions (except (I)DCT) " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_BITEXACT } , INT_MIN , INT_MAX , A | V | S | D | E , " flags " } ,
{ " aic " , " H.263 advanced intra coding / MPEG-4 AC prediction " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_AC_PRED } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " ilme " , " interlaced motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_INTERLACED_ME } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " cgop " , " closed GOP " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_CLOSED_GOP } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " output_corrupt " , " Output even potentially corrupted frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG_OUTPUT_CORRUPT } , INT_MIN , INT_MAX , V | D , " flags " } ,
{ " fast " , " allow non-spec-compliant speedup tricks " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG2_FAST } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
{ " noout " , " skip bitstream encoding " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG2_NO_OUTPUT } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
{ " ignorecrop " , " ignore cropping information from sps " , 1 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG2_IGNORE_CROP } , INT_MIN , INT_MAX , V | D , " flags2 " } ,
{ " local_header " , " place global headers at every keyframe instead of in extradata " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_ CODEC_FLAG2_LOCAL_HEADER } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
# if FF_API_MOTION_EST
{ " me_method " , " set motion estimation method " , OFFSET ( me_method ) , AV_OPT_TYPE_INT , { . i64 = ME_EPZS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " zero " , " zero motion estimation (fastest) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_ZERO } , INT_MIN , INT_MAX , V | E , " me_method " } ,