get_free_layer


Description:

public int get_free_layer ()

This can be used when doing specialised rendering of the video by customizing the pipeline.

VideoSink may use up to three private layers on the pipeline in order to attach the textures of the video frame. This function will return the index of the next available unused layer after the sink's internal layers. This can be used by the application to add additional layers, for example to blend in another color in the fragment processing.

Parameters:

this

The VideoSink

Returns:

the index of the next available layer after the sink's internal layers.