comparison libmpcodecs/vd_ffmpeg.c @ 10594:57bdcdb061d7

Removed the historic cfgparser and switched full to the new config parser (altought some macros still remain for compatibility). As a side effect 90% of the warning messages are gone from the core. Things should be cleaner now and less confusing for newbies.
author alex
date Wed, 13 Aug 2003 16:29:32 +0000
parents 8672c6119e2c
children 3a6ed2ad244d
comparison
equal deleted inserted replaced
10593:27711ab2889f 10594:57bdcdb061d7
76 76
77 //#ifdef FF_POSTPROCESS 77 //#ifdef FF_POSTPROCESS
78 //unsigned int lavc_pp=0; 78 //unsigned int lavc_pp=0;
79 //#endif 79 //#endif
80 80
81 #include "cfgparser.h" 81 #include "m_option.h"
82 82
83 static int get_buffer(AVCodecContext *avctx, AVFrame *pic); 83 static int get_buffer(AVCodecContext *avctx, AVFrame *pic);
84 static void release_buffer(AVCodecContext *avctx, AVFrame *pic); 84 static void release_buffer(AVCodecContext *avctx, AVFrame *pic);
85 85
86 #ifdef HAVE_XVMC 86 #ifdef HAVE_XVMC
97 static int lavc_param_gray=0; 97 static int lavc_param_gray=0;
98 static int lavc_param_vstats=0; 98 static int lavc_param_vstats=0;
99 static int lavc_param_idct_algo=0; 99 static int lavc_param_idct_algo=0;
100 static int lavc_param_debug=0; 100 static int lavc_param_debug=0;
101 101
102 struct config lavc_decode_opts_conf[]={ 102 m_option_t lavc_decode_opts_conf[]={
103 {"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 999999, NULL}, 103 {"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 999999, NULL},
104 {"er", &lavc_param_error_resilience, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL}, 104 {"er", &lavc_param_error_resilience, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL},
105 {"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART, NULL}, 105 {"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART, NULL},
106 {"idct", &lavc_param_idct_algo, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL}, 106 {"idct", &lavc_param_idct_algo, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL},
107 {"ec", &lavc_param_error_concealment, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL}, 107 {"ec", &lavc_param_error_concealment, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL},