2012-03-14 15:18:20 +03:00
/*
2012-03-21 02:15:18 +03:00
* Copyright ( c ) 2001 Fabrice Bellard
* Copyright ( c ) 2002 - 2004 Michael Niedermayer < michaelni @ gmx . at >
2012-03-14 15:18:20 +03:00
*
2012-03-21 02:15:18 +03:00
* This file is part of FFmpeg .
2012-03-14 15:18:20 +03:00
*
2012-03-21 02:15:18 +03:00
* FFmpeg is free software ; you can redistribute it and / or
2012-03-14 15:18:20 +03:00
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your option ) any later version .
*
2012-03-21 02:15:18 +03:00
* FFmpeg is distributed in the hope that it will be useful ,
2012-03-14 15:18:20 +03:00
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
* Lesser General Public License for more details .
*
* You should have received a copy of the GNU Lesser General Public
2012-03-21 02:15:18 +03:00
* License along with FFmpeg ; if not , write to the Free Software
2012-03-14 15:18:20 +03:00
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA
*/
2012-12-09 15:35:21 +03:00
# ifndef AVCODEC_OPTIONS_TABLE_H
# define AVCODEC_OPTIONS_TABLE_H
2012-03-14 15:18:20 +03:00
2012-05-08 02:25:12 +03:00
# include <float.h>
# include <limits.h>
2013-11-23 23:32:55 +03:00
# include <stdint.h>
2012-05-08 02:25:12 +03:00
# include "libavutil/opt.h"
# include "avcodec.h"
2012-10-11 17:48:27 +03:00
# include "version.h"
2012-05-08 02:25:12 +03:00
2012-03-14 15:18:20 +03:00
# define OFFSET(x) offsetof(AVCodecContext,x)
# define DEFAULT 0 //should be NAN but it does not work as it is not a constant in glibc as required by ANSI/ISO C
//these names are too long to be readable
# define V AV_OPT_FLAG_VIDEO_PARAM
# define A AV_OPT_FLAG_AUDIO_PARAM
# define S AV_OPT_FLAG_SUBTITLE_PARAM
# define E AV_OPT_FLAG_ENCODING_PARAM
# define D AV_OPT_FLAG_DECODING_PARAM
# define AV_CODEC_DEFAULT_BITRATE 200*1000
2013-08-01 15:35:01 +03:00
static const AVOption avcodec_options [ ] = {
2012-11-03 19:01:08 +03:00
{ " b " , " set bitrate (in bits/s) " , OFFSET ( bit_rate ) , AV_OPT_TYPE_INT , { . i64 = AV_CODEC_DEFAULT_BITRATE } , 0 , INT_MAX , A | V | E } ,
{ " ab " , " set bitrate (in bits/s) " , OFFSET ( bit_rate ) , AV_OPT_TYPE_INT , { . i64 = 128 * 1000 } , 0 , INT_MAX , A | E } ,
2012-03-15 10:17:05 +03:00
{ " bt " , " Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate tolerance specifies how far "
" ratecontrol is willing to deviate from the target average bitrate value. This is not related "
2012-12-07 18:07:51 +03:00
" to minimum/maximum bitrate. Lowering tolerance too much has an adverse effect on quality. " ,
2012-08-31 13:22:31 +03:00
OFFSET ( bit_rate_tolerance ) , AV_OPT_TYPE_INT , { . i64 = AV_CODEC_DEFAULT_BITRATE * 20 } , 1 , INT_MAX , V | E } ,
2012-09-05 15:09:09 +03:00
{ " flags " , NULL , OFFSET ( flags ) , AV_OPT_TYPE_FLAGS , { . i64 = DEFAULT } , 0 , UINT_MAX , V | A | S | E | D , " flags " } ,
2013-02-18 18:32:18 +03:00
{ " unaligned " , " allow decoders to produce unaligned output " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_UNALIGNED } , INT_MIN , INT_MAX , V | D , " flags " } ,
2012-12-07 18:07:51 +03:00
{ " 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 " } ,
2012-08-31 12:45:52 +03:00
{ " 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 " } ,
{ " gmc " , " use gmc " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_GMC } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " mv0 " , " always try a mb with mv=<0,0> " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_MV0 } , INT_MIN , INT_MAX , V | E , " flags " } ,
{ " input_preserved " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_INPUT_PRESERVED } , INT_MIN , INT_MAX , 0 , " flags " } ,
2012-12-07 18:07:51 +03:00
{ " 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 " } ,
2012-08-31 12:45:52 +03:00
{ " gray " , " only decode/encode grayscale " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_GRAY } , INT_MIN , INT_MAX , V | E | D , " flags " } ,
2012-12-07 18:07:51 +03:00
{ " emu_edge " , " do not draw edges " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_EMU_EDGE } , INT_MIN , INT_MAX , 0 , " flags " } ,
2012-08-31 12:45:52 +03:00
{ " 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 " } ,
{ " naq " , " normalize adaptive quantization " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_NORMALIZE_AQP } , INT_MIN , INT_MAX , V | E , " flags " } ,
2012-12-07 18:07:51 +03:00
{ " ildct " , " use interlaced DCT " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_INTERLACED_DCT } , INT_MIN , INT_MAX , V | E , " flags " } ,
2012-08-31 12:45:52 +03:00
{ " 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 " } ,
2012-12-07 18:07:51 +03:00
{ " 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 " } ,
2012-08-31 12:45:52 +03:00
{ " ilme " , " interlaced motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_INTERLACED_ME } , INT_MIN , INT_MAX , V | E , " flags " } ,
2012-12-07 18:07:51 +03:00
{ " cgop " , " closed GOP " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_CLOSED_GOP } , INT_MIN , INT_MAX , V | E , " flags " } ,
2013-10-11 19:51:50 +03:00
{ " output_corrupt " , " Output even potentially corrupted frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG_OUTPUT_CORRUPT } , INT_MIN , INT_MAX , V | D , " flags " } ,
2012-12-07 18:07:51 +03:00
{ " fast " , " allow non-spec-compliant speedup tricks " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_FAST } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
2012-08-31 12:45:52 +03:00
{ " noout " , " skip bitstream encoding " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_NO_OUTPUT } , INT_MIN , INT_MAX , V | E , " flags2 " } ,
2013-04-13 20:55:49 +03:00
{ " ignorecrop " , " ignore cropping information from sps " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_IGNORE_CROP } , INT_MIN , INT_MAX , V | D , " flags2 " } ,
2012-08-31 12:45:52 +03:00
{ " 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 " } ,
2012-09-05 14:58:11 +03:00
{ " chunks " , " Frame data might be split into multiple chunks " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_CHUNKS } , INT_MIN , INT_MAX , V | D , " flags2 " } ,
{ " showall " , " Show all frames before the first keyframe " , 0 , AV_OPT_TYPE_CONST , { . i64 = CODEC_FLAG2_SHOW_ALL } , INT_MIN , INT_MAX , V | D , " flags2 " } ,
2012-08-31 13:22:31 +03:00
{ " me_method " , " set motion estimation method " , OFFSET ( me_method ) , AV_OPT_TYPE_INT , { . i64 = ME_EPZS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
2012-08-31 12:45:52 +03:00
{ " zero " , " zero motion estimation (fastest) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_ZERO } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " full " , " full motion estimation (slowest) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_FULL } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " epzs " , " EPZS motion estimation (default) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_EPZS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " esa " , " esa motion estimation (alias for full) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_FULL } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " tesa " , " tesa motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_TESA } , INT_MIN , INT_MAX , V | E , " me_method " } ,
2012-12-07 18:07:51 +03:00
{ " dia " , " diamond motion estimation (alias for EPZS) " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_EPZS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
2012-08-31 12:45:52 +03:00
{ " log " , " log motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_LOG } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " phods " , " phods motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_PHODS } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " x1 " , " X1 motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_X1 } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " hex " , " hex motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_HEX } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " umh " , " umh motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_UMH } , INT_MIN , INT_MAX , V | E , " me_method " } ,
{ " iter " , " iter motion estimation " , 0 , AV_OPT_TYPE_CONST , { . i64 = ME_ITER } , INT_MIN , INT_MAX , V | E , " me_method " } ,
2012-08-31 13:22:31 +03:00
{ " extradata_size " , NULL , OFFSET ( extradata_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2012-03-14 15:18:20 +03:00
{ " time_base " , NULL , OFFSET ( time_base ) , AV_OPT_TYPE_RATIONAL , { . dbl = 0 } , INT_MIN , INT_MAX } ,
2012-12-07 18:07:51 +03:00
{ " g " , " set the group of picture (GOP) size " , OFFSET ( gop_size ) , AV_OPT_TYPE_INT , { . i64 = 12 } , INT_MIN , INT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " ar " , " set audio sampling rate (in Hz) " , OFFSET ( sample_rate ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , A | D | E } ,
{ " ac " , " set number of audio channels " , OFFSET ( channels ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , A | D | E } ,
{ " cutoff " , " set cutoff bandwidth " , OFFSET ( cutoff ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , A | E } ,
{ " frame_size " , NULL , OFFSET ( frame_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , A | E } ,
{ " frame_number " , NULL , OFFSET ( frame_number ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " delay " , NULL , OFFSET ( delay ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2012-03-15 10:17:05 +03:00
{ " qcomp " , " video quantizer scale compression (VBR). Constant of ratecontrol equation. "
" Recommended range for default rc_eq: 0.0-1.0 " ,
OFFSET ( qcompress ) , AV_OPT_TYPE_FLOAT , { . dbl = 0.5 } , - FLT_MAX , FLT_MAX , V | E } ,
2012-03-14 15:18:20 +03:00
{ " qblur " , " video quantizer scale blur (VBR) " , OFFSET ( qblur ) , AV_OPT_TYPE_FLOAT , { . dbl = 0.5 } , - 1 , FLT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " qmin " , " minimum video quantizer scale (VBR) " , OFFSET ( qmin ) , AV_OPT_TYPE_INT , { . i64 = 2 } , - 1 , 69 , V | E } ,
2012-12-19 16:28:58 +03:00
{ " qmax " , " maximum video quantizer scale (VBR) " , OFFSET ( qmax ) , AV_OPT_TYPE_INT , { . i64 = 31 } , - 1 , 1024 , V | E } ,
2012-12-07 18:07:51 +03:00
{ " qdiff " , " maximum difference between the quantizer scales (VBR) " , OFFSET ( max_qdiff ) , AV_OPT_TYPE_INT , { . i64 = 3 } , INT_MIN , INT_MAX , V | E } ,
2013-11-14 16:03:20 +03:00
{ " bf " , " set maximum number of B frames between non-B-frames " , OFFSET ( max_b_frames ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , - 1 , INT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " b_qfactor " , " QP factor between P- and B-frames " , OFFSET ( b_quant_factor ) , AV_OPT_TYPE_FLOAT , { . dbl = 1.25 } , - FLT_MAX , FLT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " rc_strategy " , " ratecontrol method " , OFFSET ( rc_strategy ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " b_strategy " , " strategy to choose between I/P/B-frames " , OFFSET ( b_frame_strategy ) , AV_OPT_TYPE_INT , { . i64 = 0 } , INT_MIN , INT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " ps " , " RTP payload size in bytes " , OFFSET ( rtp_payload_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " mv_bits " , NULL , OFFSET ( mv_bits ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " header_bits " , NULL , OFFSET ( header_bits ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " i_tex_bits " , NULL , OFFSET ( i_tex_bits ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " p_tex_bits " , NULL , OFFSET ( p_tex_bits ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " i_count " , NULL , OFFSET ( i_count ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " p_count " , NULL , OFFSET ( p_count ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " skip_count " , NULL , OFFSET ( skip_count ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " misc_bits " , NULL , OFFSET ( misc_bits ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " frame_bits " , NULL , OFFSET ( frame_bits ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " codec_tag " , NULL , OFFSET ( codec_tag ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2012-12-07 18:07:51 +03:00
{ " bug " , " work around not autodetected encoder bugs " , OFFSET ( workaround_bugs ) , AV_OPT_TYPE_FLAGS , { . i64 = FF_BUG_AUTODETECT } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-08-31 12:45:52 +03:00
{ " autodetect " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_AUTODETECT } , INT_MIN , INT_MAX , V | D , " bug " } ,
2013-10-27 13:42:05 +03:00
# if FF_API_OLD_MSMPEG4
2012-12-07 18:07:51 +03:00
{ " old_msmpeg4 " , " some old lavc-generated MSMPEG4v3 files (no autodetection) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_OLD_MSMPEG4 } , INT_MIN , INT_MAX , V | D , " bug " } ,
2013-10-27 13:42:05 +03:00
# endif
2012-12-07 18:07:51 +03:00
{ " xvid_ilace " , " Xvid interlacing bug (autodetected if FOURCC == XVIX) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_XVID_ILACE } , INT_MIN , INT_MAX , V | D , " bug " } ,
{ " ump4 " , " (autodetected if FOURCC == UMP4) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_UMP4 } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-08-31 12:45:52 +03:00
{ " no_padding " , " padding bug (autodetected) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_NO_PADDING } , INT_MIN , INT_MAX , V | D , " bug " } ,
{ " amv " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_AMV } , INT_MIN , INT_MAX , V | D , " bug " } ,
2013-10-27 13:35:55 +03:00
# if FF_API_AC_VLC
2012-12-07 18:07:51 +03:00
{ " ac_vlc " , " illegal VLC bug (autodetected per FOURCC) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_AC_VLC } , INT_MIN , INT_MAX , V | D , " bug " } ,
2013-10-27 13:35:55 +03:00
# endif
2012-08-31 12:45:52 +03:00
{ " qpel_chroma " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_QPEL_CHROMA } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-12-07 18:07:51 +03:00
{ " std_qpel " , " old standard qpel (autodetected per FOURCC/version) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_STD_QPEL } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-08-31 12:45:52 +03:00
{ " qpel_chroma2 " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_QPEL_CHROMA2 } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-12-07 18:07:51 +03:00
{ " direct_blocksize " , " direct-qpel-blocksize bug (autodetected per FOURCC/version) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_DIRECT_BLOCKSIZE } , INT_MIN , INT_MAX , V | D , " bug " } ,
{ " edge " , " edge padding bug (autodetected per FOURCC/version) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_EDGE } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-08-31 12:45:52 +03:00
{ " hpel_chroma " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_HPEL_CHROMA } , INT_MIN , INT_MAX , V | D , " bug " } ,
{ " dc_clip " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_DC_CLIP } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-12-07 18:07:51 +03:00
{ " ms " , " work around various bugs in Microsoft's broken decoders " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_MS } , INT_MIN , INT_MAX , V | D , " bug " } ,
{ " trunc " , " truncated frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_BUG_TRUNCATED } , INT_MIN , INT_MAX , V | D , " bug " } ,
2012-08-31 13:22:31 +03:00
{ " strict " , " how strictly to follow the standards " , OFFSET ( strict_std_compliance ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , A | V | D | E , " strict " } ,
2012-08-31 12:45:52 +03:00
{ " very " , " strictly conform to a older more strict version of the spec or reference software " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_COMPLIANCE_VERY_STRICT } , INT_MIN , INT_MAX , V | D | E , " strict " } ,
2012-12-07 18:07:51 +03:00
{ " strict " , " strictly conform to all the things in the spec no matter what the consequences " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_COMPLIANCE_STRICT } , INT_MIN , INT_MAX , V | D | E , " strict " } ,
2012-08-31 12:45:52 +03:00
{ " normal " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_COMPLIANCE_NORMAL } , INT_MIN , INT_MAX , V | D | E , " strict " } ,
{ " unofficial " , " allow unofficial extensions " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_COMPLIANCE_UNOFFICIAL } , INT_MIN , INT_MAX , V | D | E , " strict " } ,
2012-12-07 18:07:51 +03:00
{ " experimental " , " allow non-standardized experimental things " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_COMPLIANCE_EXPERIMENTAL } , INT_MIN , INT_MAX , V | D | E , " strict " } ,
{ " b_qoffset " , " QP offset between P- and B-frames " , OFFSET ( b_quant_offset ) , AV_OPT_TYPE_FLOAT , { . dbl = 1.25 } , - FLT_MAX , FLT_MAX , V | E } ,
2013-10-28 14:47:10 +03:00
{ " err_detect " , " set error detection flags " , OFFSET ( err_recognition ) , AV_OPT_TYPE_FLAGS , { . i64 = 0 } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
2012-09-05 14:58:11 +03:00
{ " crccheck " , " verify embedded CRCs " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_EF_CRCCHECK } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
{ " bitstream " , " detect bitstream specification deviations " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_EF_BITSTREAM } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
{ " buffer " , " detect improper bitstream length " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_EF_BUFFER } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
{ " explode " , " abort decoding on minor error detection " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_EF_EXPLODE } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
2013-10-27 21:28:31 +03:00
{ " careful " , " consider things that violate the spec, are fast to check and have not been seen in the wild as errors " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_EF_CAREFUL } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
2012-09-05 14:58:11 +03:00
{ " compliant " , " consider all spec non compliancies as errors " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_EF_COMPLIANT } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
{ " aggressive " , " consider things that a sane encoder should not do as an error " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_EF_AGGRESSIVE } , INT_MIN , INT_MAX , A | V | D , " err_detect " } ,
2012-08-31 13:22:31 +03:00
{ " has_b_frames " , NULL , OFFSET ( has_b_frames ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " block_align " , NULL , OFFSET ( block_align ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " mpeg_quant " , " use MPEG quantizers instead of H.263 " , OFFSET ( mpeg_quant ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2012-03-14 15:18:20 +03:00
{ " qsquish " , " how to keep quantizer between qmin and qmax (0 = clip, 1 = use differentiable function) " , OFFSET ( rc_qsquish ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , 0 , 99 , V | E } ,
{ " rc_qmod_amp " , " experimental quantizer modulation " , OFFSET ( rc_qmod_amp ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , - FLT_MAX , FLT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " rc_qmod_freq " , " experimental quantizer modulation " , OFFSET ( rc_qmod_freq ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " rc_override_count " , NULL , OFFSET ( rc_override_count ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2012-03-15 10:17:05 +03:00
{ " rc_eq " , " Set rate control equation. When computing the expression, besides the standard functions "
" defined in the section 'Expression Evaluation', the following functions are available: "
" bits2qp(bits), qp2bits(qp). Also the following constants are available: iTex pTex tex mv "
" fCode iCount mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex avgTex. " ,
OFFSET ( rc_eq ) , AV_OPT_TYPE_STRING , { . str = NULL } , CHAR_MIN , CHAR_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " maxrate " , " Set maximum bitrate tolerance (in bits/s). Requires bufsize to be set. " , OFFSET ( rc_max_rate ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
{ " minrate " , " Set minimum bitrate tolerance (in bits/s). Most useful in setting up a CBR encode. It is of little use otherwise. " ,
2012-08-31 13:22:31 +03:00
OFFSET ( rc_min_rate ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
{ " bufsize " , " set ratecontrol buffer size (in bits) " , OFFSET ( rc_buffer_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , A | V | E } ,
2012-03-14 15:18:20 +03:00
{ " rc_buf_aggressivity " , " currently useless " , OFFSET ( rc_buffer_aggressivity ) , AV_OPT_TYPE_FLOAT , { . dbl = 1.0 } , - FLT_MAX , FLT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " i_qfactor " , " QP factor between P- and I-frames " , OFFSET ( i_quant_factor ) , AV_OPT_TYPE_FLOAT , { . dbl = - 0.8 } , - FLT_MAX , FLT_MAX , V | E } ,
{ " i_qoffset " , " QP offset between P- and I-frames " , OFFSET ( i_quant_offset ) , AV_OPT_TYPE_FLOAT , { . dbl = 0.0 } , - FLT_MAX , FLT_MAX , V | E } ,
2012-03-14 15:18:20 +03:00
{ " rc_init_cplx " , " initial complexity for 1-pass encoding " , OFFSET ( rc_initial_cplx ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , - FLT_MAX , FLT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " dct " , " DCT algorithm " , OFFSET ( dct_algo ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , 0 , INT_MAX , V | E , " dct " } ,
2012-08-31 12:45:52 +03:00
{ " auto " , " autoselect a good one (default) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_AUTO } , INT_MIN , INT_MAX , V | E , " dct " } ,
{ " fastint " , " fast integer " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_FASTINT } , INT_MIN , INT_MAX , V | E , " dct " } ,
{ " int " , " accurate integer " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_INT } , INT_MIN , INT_MAX , V | E , " dct " } ,
{ " mmx " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_MMX } , INT_MIN , INT_MAX , V | E , " dct " } ,
{ " altivec " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_ALTIVEC } , INT_MIN , INT_MAX , V | E , " dct " } ,
{ " faan " , " floating point AAN DCT " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DCT_FAAN } , INT_MIN , INT_MAX , V | E , " dct " } ,
2012-03-14 15:18:20 +03:00
{ " lumi_mask " , " compresses bright areas stronger than medium ones " , OFFSET ( lumi_masking ) , AV_OPT_TYPE_FLOAT , { . dbl = 0 } , - FLT_MAX , FLT_MAX , V | E } ,
{ " tcplx_mask " , " temporal complexity masking " , OFFSET ( temporal_cplx_masking ) , AV_OPT_TYPE_FLOAT , { . dbl = 0 } , - FLT_MAX , FLT_MAX , V | E } ,
{ " scplx_mask " , " spatial complexity masking " , OFFSET ( spatial_cplx_masking ) , AV_OPT_TYPE_FLOAT , { . dbl = 0 } , - FLT_MAX , FLT_MAX , V | E } ,
{ " p_mask " , " inter masking " , OFFSET ( p_masking ) , AV_OPT_TYPE_FLOAT , { . dbl = 0 } , - FLT_MAX , FLT_MAX , V | E } ,
{ " dark_mask " , " compresses dark areas stronger than medium ones " , OFFSET ( dark_masking ) , AV_OPT_TYPE_FLOAT , { . dbl = 0 } , - FLT_MAX , FLT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " idct " , " select IDCT implementation " , OFFSET ( idct_algo ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , 0 , INT_MAX , V | E | D , " idct " } ,
2012-08-31 12:45:52 +03:00
{ " auto " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_AUTO } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " int " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_INT } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " simple " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SIMPLE } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " simplemmx " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SIMPLEMMX } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " arm " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_ARM } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " altivec " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_ALTIVEC } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " sh4 " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SH4 } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " simplearm " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SIMPLEARM } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " simplearmv5te " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SIMPLEARMV5TE } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " simplearmv6 " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SIMPLEARMV6 } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " simpleneon " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SIMPLENEON } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
2013-11-13 22:39:56 +03:00
# if FF_API_ARCH_ALPHA
2012-08-31 12:45:52 +03:00
{ " simplealpha " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_SIMPLEALPHA } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
2013-11-13 22:39:56 +03:00
# endif
2012-08-31 12:45:52 +03:00
{ " ipp " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_IPP } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " xvidmmx " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_XVIDMMX } , INT_MIN , INT_MAX , V | E | D , " idct " } ,
{ " faani " , " floating point AAN IDCT " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_IDCT_FAAN } , INT_MIN , INT_MAX , V | D | E , " idct " } ,
2012-08-31 13:22:31 +03:00
{ " slice_count " , NULL , OFFSET ( slice_count ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2012-08-31 12:52:18 +03:00
{ " ec " , " set error concealment strategy " , OFFSET ( error_concealment ) , AV_OPT_TYPE_FLAGS , { . i64 = 3 } , INT_MIN , INT_MAX , V | D , " ec " } ,
2012-08-31 12:45:52 +03:00
{ " guess_mvs " , " iterative motion vector (MV) search (slow) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_EC_GUESS_MVS } , INT_MIN , INT_MAX , V | D , " ec " } ,
{ " deblock " , " use strong deblock filter for damaged MBs " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_EC_DEBLOCK } , INT_MIN , INT_MAX , V | D , " ec " } ,
2012-08-31 13:22:31 +03:00
{ " bits_per_coded_sample " , NULL , OFFSET ( bits_per_coded_sample ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " pred " , " prediction method " , OFFSET ( prediction_method ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E , " pred " } ,
2012-08-31 12:45:52 +03:00
{ " left " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PRED_LEFT } , INT_MIN , INT_MAX , V | E , " pred " } ,
{ " plane " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PRED_PLANE } , INT_MIN , INT_MAX , V | E , " pred " } ,
{ " median " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PRED_MEDIAN } , INT_MIN , INT_MAX , V | E , " pred " } ,
2012-03-14 15:18:20 +03:00
{ " aspect " , " sample aspect ratio " , OFFSET ( sample_aspect_ratio ) , AV_OPT_TYPE_RATIONAL , { . dbl = 0 } , 0 , 10 , V | E } ,
2012-08-31 12:52:18 +03:00
{ " debug " , " print specific debug info " , OFFSET ( debug ) , AV_OPT_TYPE_FLAGS , { . i64 = DEFAULT } , 0 , INT_MAX , V | A | S | E | D , " debug " } ,
2012-08-31 12:45:52 +03:00
{ " pict " , " picture info " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_PICT_INFO } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " rc " , " rate control " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_RC } , INT_MIN , INT_MAX , V | E , " debug " } ,
{ " bitstream " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_BITSTREAM } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " mb_type " , " macroblock (MB) type " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_MB_TYPE } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " qp " , " per-block quantization parameter (QP) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_QP } , INT_MIN , INT_MAX , V | D , " debug " } ,
2013-10-27 13:19:52 +03:00
# if FF_API_DEBUG_MV
2012-08-31 12:45:52 +03:00
{ " mv " , " motion vector " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_MV } , INT_MIN , INT_MAX , V | D , " debug " } ,
2013-10-27 13:19:52 +03:00
# endif
2012-08-31 12:45:52 +03:00
{ " dct_coeff " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_DCT_COEFF } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " skip " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_SKIP } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " startcode " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_STARTCODE } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " pts " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_PTS } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " er " , " error recognition " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_ER } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " mmco " , " memory management control operations (H.264) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_MMCO } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " bugs " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_BUGS } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " vis_qp " , " visualize quantization parameter (QP), lower QP are tinted greener " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_VIS_QP } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " vis_mb_type " , " visualize block types " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_VIS_MB_TYPE } , INT_MIN , INT_MAX , V | D , " debug " } ,
{ " buffers " , " picture buffer allocations " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_BUFFERS } , INT_MIN , INT_MAX , V | D , " debug " } ,
2013-06-03 17:43:18 +03:00
{ " thread_ops " , " threading operations " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_THREADS } , INT_MIN , INT_MAX , V | A | D , " debug " } ,
2012-08-31 13:22:31 +03:00
{ " vismv " , " visualize motion vectors (MVs) " , OFFSET ( debug_mv ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , 0 , INT_MAX , V | D , " debug_mv " } ,
2012-08-31 12:45:52 +03:00
{ " pf " , " forward predicted MVs of P-frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_VIS_MV_P_FOR } , INT_MIN , INT_MAX , V | D , " debug_mv " } ,
{ " bf " , " forward predicted MVs of B-frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_VIS_MV_B_FOR } , INT_MIN , INT_MAX , V | D , " debug_mv " } ,
{ " bb " , " backward predicted MVs of B-frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_DEBUG_VIS_MV_B_BACK } , INT_MIN , INT_MAX , V | D , " debug_mv " } ,
2012-12-07 18:07:51 +03:00
{ " cmp " , " full-pel ME compare function " , OFFSET ( me_cmp ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " subcmp " , " sub-pel ME compare function " , OFFSET ( me_sub_cmp ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-08-31 13:22:31 +03:00
{ " mbcmp " , " macroblock compare function " , OFFSET ( mb_cmp ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-12-07 18:07:51 +03:00
{ " ildctcmp " , " interlaced DCT compare function " , OFFSET ( ildct_cmp ) , AV_OPT_TYPE_INT , { . i64 = FF_CMP_VSAD } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-08-31 13:22:31 +03:00
{ " dia_size " , " diamond type & size for motion estimation " , OFFSET ( dia_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " last_pred " , " amount of motion predictors from the previous frame " , OFFSET ( last_predictor_count ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " preme " , " pre motion estimation " , OFFSET ( pre_me ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " precmp " , " pre motion estimation compare function " , OFFSET ( me_pre_cmp ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-08-31 12:45:52 +03:00
{ " sad " , " sum of absolute differences, fast (default) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_SAD } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " sse " , " sum of squared errors " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_SSE } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " satd " , " sum of absolute Hadamard transformed differences " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_SATD } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " dct " , " sum of absolute DCT transformed differences " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_DCT } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " psnr " , " sum of squared quantization errors (avoid, low quality) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_PSNR } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " bit " , " number of bits needed for the block " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_BIT } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " rd " , " rate distortion optimal, slow " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_RD } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " zero " , " 0 " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_ZERO } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " vsad " , " sum of absolute vertical differences " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_VSAD } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " vsse " , " sum of squared vertical differences " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_VSSE } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " nsse " , " noise preserving sum of squared differences " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_NSSE } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-03-14 15:18:20 +03:00
# if CONFIG_SNOW_ENCODER
2012-08-31 12:45:52 +03:00
{ " w53 " , " 5/3 wavelet, only used in snow " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_W53 } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " w97 " , " 9/7 wavelet, only used in snow " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_W97 } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-03-14 15:18:20 +03:00
# endif
2012-08-31 12:45:52 +03:00
{ " dctmax " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_DCTMAX } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
{ " chroma " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CMP_CHROMA } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-08-31 13:22:31 +03:00
{ " pre_dia_size " , " diamond type & size for motion estimation pre-pass " , OFFSET ( pre_dia_size ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " subq " , " sub-pel motion estimation quality " , OFFSET ( me_subpel_quality ) , AV_OPT_TYPE_INT , { . i64 = 8 } , INT_MIN , INT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " dtg_active_format " , NULL , OFFSET ( dtg_active_format ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " me_range " , " limit motion vectors range (1023 for DivX player) " , OFFSET ( me_range ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " ibias " , " intra quant bias " , OFFSET ( intra_quant_bias ) , AV_OPT_TYPE_INT , { . i64 = FF_DEFAULT_QUANT_BIAS } , INT_MIN , INT_MAX , V | E } ,
{ " pbias " , " inter quant bias " , OFFSET ( inter_quant_bias ) , AV_OPT_TYPE_INT , { . i64 = FF_DEFAULT_QUANT_BIAS } , INT_MIN , INT_MAX , V | E } ,
{ " global_quality " , NULL , OFFSET ( global_quality ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
{ " coder " , NULL , OFFSET ( coder_type ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E , " coder " } ,
2012-12-07 18:07:51 +03:00
{ " vlc " , " variable length coder / Huffman coder " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CODER_TYPE_VLC } , INT_MIN , INT_MAX , V | E , " coder " } ,
2012-08-31 12:45:52 +03:00
{ " ac " , " arithmetic coder " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CODER_TYPE_AC } , INT_MIN , INT_MAX , V | E , " coder " } ,
{ " raw " , " raw (no encoding) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CODER_TYPE_RAW } , INT_MIN , INT_MAX , V | E , " coder " } ,
{ " rle " , " run-length coder " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CODER_TYPE_RLE } , INT_MIN , INT_MAX , V | E , " coder " } ,
{ " deflate " , " deflate-based coder " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_CODER_TYPE_DEFLATE } , INT_MIN , INT_MAX , V | E , " coder " } ,
2012-08-31 13:22:31 +03:00
{ " context " , " context model " , OFFSET ( context_model ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " slice_flags " , NULL , OFFSET ( slice_flags ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2013-11-05 10:16:31 +03:00
# if FF_API_XVMC
2012-08-31 13:22:31 +03:00
{ " xvmc_acceleration " , NULL , OFFSET ( xvmc_acceleration ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2013-11-05 10:16:31 +03:00
# endif /* FF_API_XVMC */
2013-02-27 05:04:04 +03:00
{ " mbd " , " macroblock decision algorithm (high quality mode) " , OFFSET ( mb_decision ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , 0 , 2 , V | E , " mbd " } ,
2012-08-31 12:45:52 +03:00
{ " simple " , " use mbcmp (default) " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_MB_DECISION_SIMPLE } , INT_MIN , INT_MAX , V | E , " mbd " } ,
{ " bits " , " use fewest bits " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_MB_DECISION_BITS } , INT_MIN , INT_MAX , V | E , " mbd " } ,
{ " rd " , " use best rate distortion " , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_MB_DECISION_RD } , INT_MIN , INT_MAX , V | E , " mbd " } ,
2012-08-31 13:22:31 +03:00
{ " stream_codec_tag " , NULL , OFFSET ( stream_codec_tag ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
{ " sc_threshold " , " scene change threshold " , OFFSET ( scenechange_threshold ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " lmin " , " minimum Lagrange factor (VBR) " , OFFSET ( lmin ) , AV_OPT_TYPE_INT , { . i64 = 2 * FF_QP2LAMBDA } , 0 , INT_MAX , V | E } ,
{ " lmax " , " maximum Lagrange factor (VBR) " , OFFSET ( lmax ) , AV_OPT_TYPE_INT , { . i64 = 31 * FF_QP2LAMBDA } , 0 , INT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " nr " , " noise reduction " , OFFSET ( noise_reduction ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " rc_init_occupancy " , " number of bits which should be loaded into the rc buffer before decoding starts " , OFFSET ( rc_initial_buffer_occupancy ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2012-08-31 12:52:18 +03:00
{ " flags2 " , NULL , OFFSET ( flags2 ) , AV_OPT_TYPE_FLAGS , { . i64 = DEFAULT } , 0 , UINT_MAX , V | A | E | D , " flags2 " } ,
2013-10-27 15:51:16 +03:00
# if FF_API_ERROR_RATE
2012-08-31 13:22:31 +03:00
{ " error " , NULL , OFFSET ( error_rate ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2013-10-27 15:51:16 +03:00
# endif
2013-06-03 17:43:18 +03:00
{ " threads " , NULL , OFFSET ( thread_count ) , AV_OPT_TYPE_INT , { . i64 = 1 } , 0 , INT_MAX , V | A | E | D , " threads " } ,
2012-12-07 18:07:51 +03:00
{ " auto " , " autodetect a suitable number of threads to use " , 0 , AV_OPT_TYPE_CONST , { . i64 = 0 } , INT_MIN , INT_MAX , V | E | D , " threads " } ,
2012-12-07 18:15:37 +03:00
{ " me_threshold " , " motion estimation threshold " , OFFSET ( me_threshold ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " mb_threshold " , " macroblock threshold " , OFFSET ( mb_threshold ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " dc " , " intra_dc_precision " , OFFSET ( intra_dc_precision ) , AV_OPT_TYPE_INT , { . i64 = 0 } , INT_MIN , INT_MAX , V | E } ,
{ " nssew " , " nsse weight " , OFFSET ( nsse_weight ) , AV_OPT_TYPE_INT , { . i64 = 8 } , INT_MIN , INT_MAX , V | E } ,
{ " skip_top " , " number of macroblock rows at the top which are skipped " , OFFSET ( skip_top ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | D } ,
{ " skip_bottom " , " number of macroblock rows at the bottom which are skipped " , OFFSET ( skip_bottom ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | D } ,
{ " profile " , NULL , OFFSET ( profile ) , AV_OPT_TYPE_INT , { . i64 = FF_PROFILE_UNKNOWN } , INT_MIN , INT_MAX , V | A | E , " profile " } ,
2012-08-31 12:45:52 +03:00
{ " unknown " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_UNKNOWN } , INT_MIN , INT_MAX , V | A | E , " profile " } ,
{ " aac_main " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_MAIN } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " aac_low " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_LOW } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " aac_ssr " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_SSR } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " aac_ltp " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_LTP } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " aac_he " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_HE } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " aac_he_v2 " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_HE_V2 } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " aac_ld " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_LD } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " aac_eld " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_AAC_ELD } , INT_MIN , INT_MAX , A | E , " profile " } ,
2013-06-22 18:16:11 +03:00
{ " mpeg2_aac_low " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_MPEG2_AAC_LOW } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " mpeg2_aac_he " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_MPEG2_AAC_HE } , INT_MIN , INT_MAX , A | E , " profile " } ,
2012-08-31 12:45:52 +03:00
{ " dts " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_DTS } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " dts_es " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_DTS_ES } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " dts_96_24 " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_DTS_96_24 } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " dts_hd_hra " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_DTS_HD_HRA } , INT_MIN , INT_MAX , A | E , " profile " } ,
{ " dts_hd_ma " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_PROFILE_DTS_HD_MA } , INT_MIN , INT_MAX , A | E , " profile " } ,
2012-08-31 13:22:31 +03:00
{ " level " , NULL , OFFSET ( level ) , AV_OPT_TYPE_INT , { . i64 = FF_LEVEL_UNKNOWN } , INT_MIN , INT_MAX , V | A | E , " level " } ,
2012-08-31 12:45:52 +03:00
{ " unknown " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_LEVEL_UNKNOWN } , INT_MIN , INT_MAX , V | A | E , " level " } ,
2012-09-05 15:26:01 +03:00
{ " lowres " , " decode at 1= 1/2, 2=1/4, 3=1/8 resolutions " , OFFSET ( lowres ) , AV_OPT_TYPE_INT , { . i64 = 0 } , 0 , INT_MAX , V | A | D } ,
2012-08-31 13:22:31 +03:00
{ " skip_threshold " , " frame skip threshold " , OFFSET ( frame_skip_threshold ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " skip_factor " , " frame skip factor " , OFFSET ( frame_skip_factor ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " skip_exp " , " frame skip exponent " , OFFSET ( frame_skip_exp ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
{ " skipcmp " , " frame skip compare function " , OFFSET ( frame_skip_cmp ) , AV_OPT_TYPE_INT , { . i64 = FF_CMP_DCTMAX } , INT_MIN , INT_MAX , V | E , " cmp_func " } ,
2012-12-07 18:07:51 +03:00
{ " border_mask " , " increase the quantizer for macroblocks close to borders " , OFFSET ( border_masking ) , AV_OPT_TYPE_FLOAT , { . dbl = DEFAULT } , - FLT_MAX , FLT_MAX , V | E } ,
{ " mblmin " , " minimum macroblock Lagrange factor (VBR) " , OFFSET ( mb_lmin ) , AV_OPT_TYPE_INT , { . i64 = FF_QP2LAMBDA * 2 } , 1 , FF_LAMBDA_MAX , V | E } ,
{ " mblmax " , " maximum macroblock Lagrange factor (VBR) " , OFFSET ( mb_lmax ) , AV_OPT_TYPE_INT , { . i64 = FF_QP2LAMBDA * 31 } , 1 , FF_LAMBDA_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " mepc " , " motion estimation bitrate penalty compensation (1.0 = 256) " , OFFSET ( me_penalty_compensation ) , AV_OPT_TYPE_INT , { . i64 = 256 } , INT_MIN , INT_MAX , V | E } ,
2013-03-10 18:15:48 +03:00
{ " skip_loop_filter " , " skip loop filtering process for the selected frames " , OFFSET ( skip_loop_filter ) , AV_OPT_TYPE_INT , { . i64 = AVDISCARD_DEFAULT } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " skip_idct " , " skip IDCT/dequantization for the selected frames " , OFFSET ( skip_idct ) , AV_OPT_TYPE_INT , { . i64 = AVDISCARD_DEFAULT } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " skip_frame " , " skip decoding for the selected frames " , OFFSET ( skip_frame ) , AV_OPT_TYPE_INT , { . i64 = AVDISCARD_DEFAULT } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " none " , " discard no frame " , 0 , AV_OPT_TYPE_CONST , { . i64 = AVDISCARD_NONE } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " default " , " discard useless frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = AVDISCARD_DEFAULT } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " noref " , " discard all non-reference frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = AVDISCARD_NONREF } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " bidir " , " discard all bidirectional frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = AVDISCARD_BIDIR } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " nokey " , " discard all frames except keyframes " , 0 , AV_OPT_TYPE_CONST , { . i64 = AVDISCARD_NONKEY } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
{ " all " , " discard all frames " , 0 , AV_OPT_TYPE_CONST , { . i64 = AVDISCARD_ALL } , INT_MIN , INT_MAX , V | D , " avdiscard " } ,
2012-08-31 13:22:31 +03:00
{ " bidir_refine " , " refine the two motion vectors used in bidirectional macroblocks " , OFFSET ( bidir_refine ) , AV_OPT_TYPE_INT , { . i64 = 1 } , 0 , 4 , V | E } ,
2012-12-07 18:07:51 +03:00
{ " brd_scale " , " downscale frames for dynamic B-frame decision " , OFFSET ( brd_scale ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , 0 , 10 , V | E } ,
2012-09-05 15:26:01 +03:00
{ " keyint_min " , " minimum interval between IDR-frames " , OFFSET ( keyint_min ) , AV_OPT_TYPE_INT , { . i64 = 25 } , INT_MIN , INT_MAX , V | E } ,
{ " refs " , " reference frames to consider for motion compensation " , OFFSET ( refs ) , AV_OPT_TYPE_INT , { . i64 = 1 } , INT_MIN , INT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " chromaoffset " , " chroma QP offset from luma " , OFFSET ( chromaoffset ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " trellis " , " rate-distortion optimal quantization " , OFFSET ( trellis ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
{ " sc_factor " , " multiplied by qscale for each frame and added to scene_change_score " , OFFSET ( scenechange_factor ) , AV_OPT_TYPE_INT , { . i64 = 6 } , 0 , INT_MAX , V | E } ,
{ " mv0_threshold " , NULL , OFFSET ( mv0_threshold ) , AV_OPT_TYPE_INT , { . i64 = 256 } , 0 , INT_MAX , V | E } ,
2012-12-07 18:07:51 +03:00
{ " b_sensitivity " , " adjust sensitivity of b_frame_strategy 1 " , OFFSET ( b_sensitivity ) , AV_OPT_TYPE_INT , { . i64 = 40 } , 1 , INT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " compression_level " , NULL , OFFSET ( compression_level ) , AV_OPT_TYPE_INT , { . i64 = FF_COMPRESSION_DEFAULT } , INT_MIN , INT_MAX , V | A | E } ,
{ " min_prediction_order " , NULL , OFFSET ( min_prediction_order ) , AV_OPT_TYPE_INT , { . i64 = - 1 } , INT_MIN , INT_MAX , A | E } ,
{ " max_prediction_order " , NULL , OFFSET ( max_prediction_order ) , AV_OPT_TYPE_INT , { . i64 = - 1 } , INT_MIN , INT_MAX , A | E } ,
2012-12-07 18:07:51 +03:00
{ " timecode_frame_start " , " GOP timecode frame start number, in non-drop-frame format " , OFFSET ( timecode_frame_start ) , AV_OPT_TYPE_INT64 , { . i64 = 0 } , 0 , INT64_MAX , V | E } ,
2012-03-14 15:18:20 +03:00
# if FF_API_REQUEST_CHANNELS
2012-08-31 13:22:31 +03:00
{ " request_channels " , " set desired number of audio channels " , OFFSET ( request_channels ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , 0 , INT_MAX , A | D } ,
2012-03-14 15:18:20 +03:00
# endif
2012-08-31 13:22:31 +03:00
{ " bits_per_raw_sample " , NULL , OFFSET ( bits_per_raw_sample ) , AV_OPT_TYPE_INT , { . i64 = DEFAULT } , INT_MIN , INT_MAX } ,
2012-08-22 11:07:54 +03:00
{ " channel_layout " , NULL , OFFSET ( channel_layout ) , AV_OPT_TYPE_INT64 , { . i64 = DEFAULT } , 0 , INT64_MAX , A | E | D , " channel_layout " } ,
{ " request_channel_layout " , NULL , OFFSET ( request_channel_layout ) , AV_OPT_TYPE_INT64 , { . i64 = DEFAULT } , 0 , INT64_MAX , A | D , " request_channel_layout " } ,
2012-09-11 18:38:31 +03:00
{ " rc_max_vbv_use " , NULL , OFFSET ( rc_max_available_vbv_use ) , AV_OPT_TYPE_FLOAT , { . dbl = 0 } , 0.0 , FLT_MAX , V | E } ,
2012-03-14 15:18:20 +03:00
{ " rc_min_vbv_use " , NULL , OFFSET ( rc_min_vbv_overflow_use ) , AV_OPT_TYPE_FLOAT , { . dbl = 3 } , 0.0 , FLT_MAX , V | E } ,
2012-08-31 13:22:31 +03:00
{ " ticks_per_frame " , NULL , OFFSET ( ticks_per_frame ) , AV_OPT_TYPE_INT , { . i64 = 1 } , 1 , INT_MAX , A | V | E | D } ,
{ " color_primaries " , NULL , OFFSET ( color_primaries ) , AV_OPT_TYPE_INT , { . i64 = AVCOL_PRI_UNSPECIFIED } , 1 , AVCOL_PRI_NB - 1 , V | E | D } ,
{ " color_trc " , NULL , OFFSET ( color_trc ) , AV_OPT_TYPE_INT , { . i64 = AVCOL_TRC_UNSPECIFIED } , 1 , AVCOL_TRC_NB - 1 , V | E | D } ,
{ " colorspace " , NULL , OFFSET ( colorspace ) , AV_OPT_TYPE_INT , { . i64 = AVCOL_SPC_UNSPECIFIED } , 1 , AVCOL_SPC_NB - 1 , V | E | D } ,
{ " color_range " , NULL , OFFSET ( color_range ) , AV_OPT_TYPE_INT , { . i64 = AVCOL_RANGE_UNSPECIFIED } , 0 , AVCOL_RANGE_NB - 1 , V | E | D } ,
{ " chroma_sample_location " , NULL , OFFSET ( chroma_sample_location ) , AV_OPT_TYPE_INT , { . i64 = AVCHROMA_LOC_UNSPECIFIED } , 0 , AVCHROMA_LOC_NB - 1 , V | E | D } ,
{ " log_level_offset " , " set the log level offset " , OFFSET ( log_level_offset ) , AV_OPT_TYPE_INT , { . i64 = 0 } , INT_MIN , INT_MAX } ,
{ " slices " , " number of slices, used in parallelized encoding " , OFFSET ( slices ) , AV_OPT_TYPE_INT , { . i64 = 0 } , 0 , INT_MAX , V | E } ,
2013-06-03 17:43:18 +03:00
{ " thread_type " , " select multithreading type " , OFFSET ( thread_type ) , AV_OPT_TYPE_FLAGS , { . i64 = FF_THREAD_SLICE | FF_THREAD_FRAME } , 0 , INT_MAX , V | A | E | D , " thread_type " } ,
2012-08-31 12:45:52 +03:00
{ " slice " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_THREAD_SLICE } , INT_MIN , INT_MAX , V | E | D , " thread_type " } ,
{ " frame " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_THREAD_FRAME } , INT_MIN , INT_MAX , V | E | D , " thread_type " } ,
2012-08-31 13:22:31 +03:00
{ " audio_service_type " , " audio service type " , OFFSET ( audio_service_type ) , AV_OPT_TYPE_INT , { . i64 = AV_AUDIO_SERVICE_TYPE_MAIN } , 0 , AV_AUDIO_SERVICE_TYPE_NB - 1 , A | E , " audio_service_type " } ,
2012-08-31 12:45:52 +03:00
{ " ma " , " Main Audio Service " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_MAIN } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " ef " , " Effects " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_EFFECTS } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " vi " , " Visually Impaired " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " hi " , " Hearing Impaired " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " di " , " Dialogue " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_DIALOGUE } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " co " , " Commentary " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_COMMENTARY } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " em " , " Emergency " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_EMERGENCY } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " vo " , " Voice Over " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_VOICE_OVER } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
{ " ka " , " Karaoke " , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_AUDIO_SERVICE_TYPE_KARAOKE } , INT_MIN , INT_MAX , A | E , " audio_service_type " } ,
2013-12-16 18:29:44 +03:00
{ " request_sample_fmt " , " sample format audio decoders should prefer " , OFFSET ( request_sample_fmt ) , AV_OPT_TYPE_SAMPLE_FMT , { . i64 = AV_SAMPLE_FMT_NONE } , - 1 , INT_MAX , A | D , " request_sample_fmt " } ,
2012-07-12 23:17:10 +03:00
{ " pkt_timebase " , NULL , OFFSET ( pkt_timebase ) , AV_OPT_TYPE_RATIONAL , { . dbl = 0 } , 0 , INT_MAX , 0 } ,
2013-01-07 20:08:56 +03:00
{ " sub_charenc " , " set input text subtitles character encoding " , OFFSET ( sub_charenc ) , AV_OPT_TYPE_STRING , { . str = NULL } , CHAR_MIN , CHAR_MAX , S | D } ,
{ " sub_charenc_mode " , " set input text subtitles character encoding mode " , OFFSET ( sub_charenc_mode ) , AV_OPT_TYPE_FLAGS , { . i64 = FF_SUB_CHARENC_MODE_AUTOMATIC } , - 1 , INT_MAX , S | D , " sub_charenc_mode " } ,
{ " do_nothing " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_SUB_CHARENC_MODE_DO_NOTHING } , INT_MIN , INT_MAX , S | D , " sub_charenc_mode " } ,
{ " auto " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_SUB_CHARENC_MODE_AUTOMATIC } , INT_MIN , INT_MAX , S | D , " sub_charenc_mode " } ,
{ " pre_decoder " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = FF_SUB_CHARENC_MODE_PRE_DECODER } , INT_MIN , INT_MAX , S | D , " sub_charenc_mode " } ,
2012-11-21 23:34:46 +03:00
{ " refcounted_frames " , NULL , OFFSET ( refcounted_frames ) , AV_OPT_TYPE_INT , { . i64 = 0 } , 0 , 1 , A | V | D } ,
2013-08-08 21:27:24 +03:00
{ " skip_alpha " , " Skip processing alpha " , OFFSET ( skip_alpha ) , AV_OPT_TYPE_INT , { . i64 = 0 } , 0 , 1 , V | D } ,
2013-10-07 18:34:01 +03:00
{ " field_order " , " Field order " , OFFSET ( field_order ) , AV_OPT_TYPE_INT , { . i64 = AV_FIELD_UNKNOWN } , 0 , 5 , V | D | E , " field_order " } ,
{ " progressive " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_FIELD_PROGRESSIVE } , 0 , 0 , V | D | E , " field_order " } ,
{ " tt " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_FIELD_TT } , 0 , 0 , V | D | E , " field_order " } ,
{ " bb " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_FIELD_BB } , 0 , 0 , V | D | E , " field_order " } ,
{ " tb " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_FIELD_TB } , 0 , 0 , V | D | E , " field_order " } ,
{ " bt " , NULL , 0 , AV_OPT_TYPE_CONST , { . i64 = AV_FIELD_BT } , 0 , 0 , V | D | E , " field_order " } ,
2012-03-14 15:18:20 +03:00
{ NULL } ,
} ;
# undef A
# undef V
# undef S
# undef E
# undef D
# undef DEFAULT
# undef OFFSET
2012-12-09 15:35:21 +03:00
# endif /* AVCODEC_OPTIONS_TABLE_H */