Revision 6e365c57 libavfilter/avfilter.h

View differences:

libavfilter/avfilter.h
166 166
    /**
167 167
     * Filter initialization function.  Args contains the user-supplied
168 168
     * parameters.  FIXME: maybe an AVOption-based system would be better?
169
     * opaque is data provided by the code requesting creation of the filter,
170
     * and is used to pass data to the filter.
169 171
     */
170
    int (*init)(AVFilterContext *ctx, const char *args);
172
    int (*init)(AVFilterContext *ctx, const char *args, const void *opaque);
171 173
    void (*uninit)(AVFilterContext *ctx);
172 174

  
173 175
    const AVFilterPad *inputs;  /// NULL terminated list of inputs. NULL if none
......
220 222

  
221 223
AVFilterContext *avfilter_create(AVFilter *filter, char *inst_name);
222 224
AVFilterContext *avfilter_create_by_name(char *name, char *inst_name);
223
int avfilter_init_filter(AVFilterContext *filter, const char *args);
225
int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque);
224 226
void avfilter_destroy(AVFilterContext *filter);
225 227

  
226 228
int *avfilter_make_format_list(int len, ...);

Also available in: Unified diff