comparison Plugins/Input/wma/libffwma/common.h @ 220:cbdecaedd691 trunk

[svn] gcc4 fixes
author nenolod
date Tue, 22 Nov 2005 21:21:26 -0800
parents 0bea7509d6ba
children 1ddaf20ab50e
comparison
equal deleted inserted replaced
219:3617a1758282 220:cbdecaedd691
63 #define AVOPTION_CODEC_RCOVERRIDE(name, help, field) \ 63 #define AVOPTION_CODEC_RCOVERRIDE(name, help, field) \
64 { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_RCOVERRIDE, .defval = 0, .defstr = NULL } 64 { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_RCOVERRIDE, .defval = 0, .defstr = NULL }
65 #define AVOPTION_SUB(ptr) { .name = NULL, .help = (const char*)ptr } 65 #define AVOPTION_SUB(ptr) { .name = NULL, .help = (const char*)ptr }
66 #define AVOPTION_END() AVOPTION_SUB(NULL) 66 #define AVOPTION_END() AVOPTION_SUB(NULL)
67 67
68 struct AVOption; 68 /**
69 * AVOption.
70 */
71 typedef struct AVOption {
72 /** options' name */
73 const char *name; /* if name is NULL, it indicates a link to next */
74 /** short English text help or const struct AVOption* subpointer */
75 const char *help; // const struct AVOption* sub;
76 /** offset to context structure where the parsed value should be stored */
77 int offset;
78 /** options' type */
79 int type;
80 #define FF_OPT_TYPE_BOOL 1 ///< boolean - true,1,on (or simply presence)
81 #define FF_OPT_TYPE_DOUBLE 2 ///< double
82 #define FF_OPT_TYPE_INT 3 ///< integer
83 #define FF_OPT_TYPE_STRING 4 ///< string (finished with \0)
84 #define FF_OPT_TYPE_MASK 0x1f ///< mask for types - upper bits are various flags
85 //#define FF_OPT_TYPE_EXPERT 0x20 // flag for expert option
86 #define FF_OPT_TYPE_FLAG (FF_OPT_TYPE_BOOL | 0x40)
87 #define FF_OPT_TYPE_RCOVERRIDE (FF_OPT_TYPE_STRING | 0x80)
88 /** min value (min == max -> no limits) */
89 double min;
90 /** maximum value for double/int */
91 double max;
92 /** default boo [0,1]l/double/int value */
93 double defval;
94 /**
95 * default string value (with optional semicolon delimited extra option-list
96 * i.e. option1;option2;option3
97 * defval might select other then first argument as default
98 */
99 const char *defstr;
100 #define FF_OPT_MAX_DEPTH 10
101 } AVOption;
102
69 #ifdef HAVE_MMX 103 #ifdef HAVE_MMX
70 extern const struct AVOption avoptions_common[3 + 5]; 104 extern const struct AVOption avoptions_common[3 + 5];
71 #else 105 #else
72 extern const struct AVOption avoptions_common[3]; 106 extern const struct AVOption avoptions_common[3];
73 #endif 107 #endif