convert_sample


Description:


public Sample convert_sample (Sample sample, Caps to_caps, ClockTime timeout) throws Error

Converts a raw video buffer into the specified output caps.

The output caps can be any raw video formats or any image formats (jpeg, png, ...).

The width, height and pixel-aspect-ratio can also be specified in the output caps.

Parameters:

sample

a Sample

to_caps

the Caps to convert to

timeout

the maximum amount of time allowed for the processing.

Returns:

The converted Sample, or null if an error happened (in which case err will point to the Error).


Namespace: Gst.Video