convert_sample_async


Description:


public void convert_sample_async (Sample sample, Caps to_caps, ClockTime timeout, owned ConvertSampleCallback 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 gmaincontext, see get_thread_default. 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 Sample

to_caps

the Caps to convert to

timeout

the maximum amount of time allowed for the processing.

callback

gstvideoconvertsamplecallback that will be called after conversion.

destroy_notify

gdestroynotify to be called after user_data is not needed anymore

user_data

extra data that will be passed to the callback


Namespace: Gst.Video