will point to the #GError).
videoConvertSample
fn
gst.sample.Sample videoConvertSample(gst.sample.Sample sample, gst.caps.Caps toCaps, gst.types.ClockTime timeout)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 #GstSample |
toCaps | the #GstCaps to convert to |
timeout | the maximum amount of time allowed for the processing. |
Returns
The converted #GstSample, or null if an error happened (in which case err
Throws
[ErrorWrap]