Function avfilter_graph_segment_init

pub unsafe extern "C" fn avfilter_graph_segment_init(
    seg: *mut AVFilterGraphSegment,
    flags: i32,
) -> i32
Expand description

Initialize all filter instances in a graph segment.

Walk through all filter instances in the graph segment and call avfilter_init_dict(…, NULL) on those that have not been initialized yet.

Any creation-pending filters (see avfilter_graph_segment_create_filters()) present in the segment will cause this function to fail. AVFilterParams with no associated filter context or whose filter context is already initialized, are simply skipped.

@param seg the filtergraph segment to process @param flags reserved for future use, caller must set to 0 for now

@retval “non-negative number” Success, all filter instances were successfully initialized @retval “negative error code” failure

@note Calling this function multiple times is safe, as it is idempotent.