Factor out client-buffer creation into a helper library in order to avoid duplication. This notably allows clients and tests to easily reuse the dmabuf and yuv logic. Signed-off-by: Robert Mader <robert.mader@collabora.com>