get_thumbnail


Description:

public Sample get_thumbnail (Caps caps)

Gets a sample from the pipeline of the currently displayed image in preview, in the specified format.

Note that if you use "ANY" caps for caps, then the current format of the image is used. You can retrieve these caps from the returned sample with get_caps.

Parameters:

this

A Pipeline in PLAYING or PAUSED

caps

Some caps to specifying the desired format, or GST_CAPS_ANY to use the native format

Returns:

A sample of this's current image preview in the format given by caps, or null if an error prevented fetching the sample.




2022 vala-language.org