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.
| sample |
a Sample |
| to_caps |
the Caps to convert to |
| timeout |
the maximum amount of time allowed for the processing. |
|
The converted Sample, or null if an
error happened (in which case |