History

lavfi: add a preinit callback to filters.

It is necessary for filters with child objects, to set the class and default options values.

Nicolas George committed 9 years ago

Commit f8d7b5f1 parent 19804022 files · +23 −0Browse files

Showing the changes to libavfilter/avfilter.h (1 of 2 files). Show all

Unified · Split

libavfilter/avfilter.h+15−0
@@ -194,6 +194,21 @@ typedef struct AVFilter { · 193 unmodified lines
194 *****************************************************************194 *****************************************************************
195 */195 */
196 196
197 /**
198 * Filter pre-initialization function
199 *
200 * This callback will be called immediately after the filter context is
201 * allocated, to allow allocating and initing sub-objects.
202 *
203 * If this callback is not NULL, the uninit callback will be called on
204 * allocation failure.
205 *
206 * @return 0 on success,
207 * AVERROR code on failure (but the code will be
208 * dropped and treated as ENOMEM by the calling code)
209 */
210 int (*preinit)(AVFilterContext *ctx);
211
197 /**212 /**
198 * Filter initialization function.213 * Filter initialization function.
199 *214 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t