Function avfilter_graph_segment_create_filters

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

Create filters specified in a graph segment.

Walk through the creation-pending AVFilterParams in the segment and create new filter instances for them. Creation-pending params are those where AVFilterParams.filter_name is non-NULL (and hence AVFilterParams.filter is NULL). All other AVFilterParams instances are ignored.

For any filter created by this function, the corresponding AVFilterParams.filter is set to the newly-created filter context, AVFilterParams.filter_name and AVFilterParams.instance_name are freed and set to NULL.

@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 creation-pending filters were successfully created @retval AVERROR_FILTER_NOT_FOUND some filter’s name did not correspond to a known filter @retval “another negative error code” other failures

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