Revision 628d601b libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
1109 1109

  
1110 1110
void avcodec_flush_buffers(AVCodecContext *avctx);
1111 1111

  
1112
typedef struct {
1113
    /** options' name with default value*/
1114
    const char* name;
1115
    /** English text help */
1116
    const char* help;
1117
    /** type of variable */
1118
    int type;
1119
#define FF_CONF_TYPE_BOOL 1     // boolean - true,1,on  (or simply presence)
1120
#define FF_CONF_TYPE_DOUBLE 2   // double
1121
#define FF_CONF_TYPE_INT 3      // integer
1122
#define FF_CONF_TYPE_STRING 4   // string (finished with \0)
1123
#define FF_CONF_TYPE_MASK 0x1f	// mask for types - upper bits are various flags
1124
#define FF_CONF_TYPE_EXPERT 0x20 // flag for expert option
1125
#define FF_CONF_TYPE_FLAG (FF_CONF_TYPE_BOOL | 0x40)
1126
#define FF_CONF_TYPE_RCOVERIDE (FF_CONF_TYPE_STRING | 0x80)
1127
    /** where the parsed value should be stored */
1128
    void* val;
1129
    /** min value  (min == max   ->  no limits) */
1130
    double min;
1131
    /** maximum value for double/int */
1132
    double max;
1133
    /** default boo [0,1]l/double/int value */
1134
    double defval;
1135
    /**
1136
     * default string value (with optional semicolon delimited extra option-list
1137
     * i.e.   option1;option2;option3
1138
     * defval might select other then first argument as default
1139
     */
1140
    const char* defstr;
1141
    /** char* list of supported codecs (i.e. ",msmpeg4,h263," NULL - everything */
1142
    const char* supported;
1143
} avc_config_t;
1144

  
1145
void avcodec_getopt(AVCodecContext* avctx, char* str, avc_config_t** config);
1146

  
1112 1147
/**
1113 1148
 * Interface for 0.5.0 version
1114 1149
 *
......
1193 1228
#define av_freep(p) __av_freep((void **)(p))
1194 1229
/* for static data only */
1195 1230
/* call av_free_static to release all staticaly allocated tables */
1196
void av_free_static();
1231
void av_free_static(void);
1197 1232
void *__av_mallocz_static(void** location, unsigned int size);
1198 1233
#define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s)
1199 1234

  

Also available in: Unified diff