From 47e0c8d849277a4b96fc364e5703f301e2b94519 Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Tue, 12 Nov 2013 10:38:36 -0800 Subject: libadf: filter overlay engines by a list of acceptable formats Change-Id: Ibb294f0520a7a7a6a2a89e1e3eb3c335906d3e66 Signed-off-by: Greg Hackmann --- adf/libadf/include/adf/adf.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'adf/libadf/include') diff --git a/adf/libadf/include/adf/adf.h b/adf/libadf/include/adf/adf.h index 5d301f3..8ce994f 100644 --- a/adf/libadf/include/adf/adf.h +++ b/adf/libadf/include/adf/adf.h @@ -182,10 +182,12 @@ ssize_t adf_overlay_engines_for_interface(struct adf_device *dev, /** * Filters a list of overlay engines by supported buffer format. * - * The caller must free() the returned list of overlay engine IDs. + * Returns the overlay engines which support at least one of the specified + * formats. The caller must free() the returned list of overlay engine IDs. */ ssize_t adf_overlay_engines_filter_by_format(struct adf_device *dev, - __u32 format, adf_id_t *in, size_t n_in, adf_id_t **out); + const __u32 *formats, size_t n_formats, adf_id_t *in, size_t n_in, + adf_id_t **out); /** * Opens an ADF overlay engine. -- cgit v1.1