Revision d3e57c15 libavfilter/avfilter.h

View differences:

libavfilter/avfilter.h
99 99
#define AV_PAD_VIDEO 0
100 100

  
101 101
    /**
102
     * Callback to get a list of supported formats.  The returned list should
103
     * be terminated by -1.  This is used for both input and output pads and
104
     * is required for both.
105
     */
106
    int *(*query_formats)(AVFilterLink *link);
107

  
108
    /**
102 109
     * Callback called before passing the first slice of a new frame.  If
103 110
     * NULL, the filter layer will default to storing a reference to the
104 111
     * picture inside the link structure.
......
131 138
    void (*request_frame)(AVFilterLink *link);
132 139

  
133 140
    /**
134
     * Callback to set properties of the link. Only for video output pads.
135
     * XXX: this is not acceptable as is.  it needs reworked to allow for
136
     * negotiation of colorspace, etc.
141
     * Link configuration callback.  For output pads, this should set the link
142
     * properties such as width/height.  NOTE: this should not set the format
143
     * property - that is negotiated between filters by the filter system using
144
     * the query_formats() callback.
145
     *
146
     * For input pads, this should check the properties of the link, and update
147
     * the filter's internal state as necessary.
137 148
     */
138
    int (*set_video_props)(AVFilterLink *link);
149
    int (*config_props)(AVFilterLink *link);
139 150
};
140 151

  
141 152
/* the default implementations of start_frame() and end_frame() */
......
206 217
int avfilter_init_filter(AVFilterContext *filter, const char *args);
207 218
void avfilter_destroy(AVFilterContext *filter);
208 219

  
220
int *avfilter_make_format_list(int len, ...);
221

  
209 222
#endif  /* FFMPEG_AVFILTER_H */

Also available in: Unified diff