videoConvertSampleAsync
fn
void videoConvertSampleAsync(gst.sample.Sample sample, gst.caps.Caps toCaps, gst.types.ClockTime timeout, gstvideo.types.VideoConvertSampleCallback callback)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.
callback will be called after conversion, when an error occurred or if conversion didn't finish after timeout. callback will always be called from the thread default [glib.main_context.MainContext], see [glib.main_context.MainContext.getThreadDefault]. If GLib before 2.22 is used, this will always be the global default main context.
destroy_notify will be called after the callback was called and user_data is not needed anymore.
Parameters
sample | a #GstSample |
toCaps | the #GstCaps to convert to |
timeout | the maximum amount of time allowed for the processing. |
callback | [gstvideo.types.VideoConvertSampleCallback] that will be called after conversion. |