get_thumbnail_rgb24


Description:

public Sample get_thumbnail_rgb24 (int width, int height)

Gets a sample from the pipeline of the currently displayed image in preview, in the 24-bit "RGB" format and of the desired width and height.

See get_thumbnail.

Parameters:

this

A Pipeline in gst_state_playing or gst_state_paused

width

The requested pixel width of the image, or -1 to use the native size

height

The requested pixel height of the image, or -1 to use the native size

Returns:

A sample of this's current image preview in the "RGB" format, scaled to width and height, or null if an error prevented fetching the sample.




2022 vala-language.org