2017-05-22 13:06:18 +02:00
|
|
|
/* Simple Plugin API
|
|
|
|
|
* Copyright (C) 2017 Wim Taymans <wim.taymans@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Library General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __SPA_PARAM_H__
|
|
|
|
|
#define __SPA_PARAM_H__
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-11-10 13:36:14 +01:00
|
|
|
#include <spa/utils/defs.h>
|
2017-05-22 13:06:18 +02:00
|
|
|
|
2018-08-25 12:08:29 +02:00
|
|
|
/** different parameter types that can be queried */
|
|
|
|
|
enum spa_param_type {
|
|
|
|
|
SPA_PARAM_List, /**< available params */
|
|
|
|
|
SPA_PARAM_PropInfo, /**< property information */
|
|
|
|
|
SPA_PARAM_Props, /**< properties */
|
|
|
|
|
SPA_PARAM_EnumFormat, /**< available formats */
|
|
|
|
|
SPA_PARAM_Format, /**< configured format */
|
|
|
|
|
SPA_PARAM_Buffers, /**< buffer configurations */
|
|
|
|
|
SPA_PARAM_Meta, /**< allowed metadata for buffers */
|
|
|
|
|
SPA_PARAM_IO, /**< configurable IO areas */
|
|
|
|
|
};
|
|
|
|
|
|
2018-08-27 15:03:11 +02:00
|
|
|
/** Properties for SPA_TYPE_OBJECT_ParamList */
|
2018-08-23 17:47:57 +02:00
|
|
|
enum spa_param_list {
|
2018-08-27 15:03:11 +02:00
|
|
|
SPA_PARAM_LIST_START, /**< object id, one of enum spa_param_type */
|
2018-08-23 17:47:57 +02:00
|
|
|
SPA_PARAM_LIST_id, /**< id of the supported list param */
|
2017-11-07 17:39:31 +01:00
|
|
|
};
|
2017-05-22 13:06:18 +02:00
|
|
|
|
2018-08-27 15:03:11 +02:00
|
|
|
/** properties for SPA_TYPE_OBJECT_ParamBuffers */
|
2018-08-25 12:08:29 +02:00
|
|
|
enum spa_param_buffers {
|
2018-08-27 15:03:11 +02:00
|
|
|
SPA_PARAM_BUFFERS_START, /**< object id, one of enum spa_param_type */
|
2018-08-25 12:08:29 +02:00
|
|
|
SPA_PARAM_BUFFERS_buffers, /**< number of buffers */
|
|
|
|
|
SPA_PARAM_BUFFERS_blocks, /**< number of data blocks per buffer */
|
|
|
|
|
SPA_PARAM_BUFFERS_size, /**< size of a data block memory */
|
|
|
|
|
SPA_PARAM_BUFFERS_stride, /**< stride of data block memory */
|
|
|
|
|
SPA_PARAM_BUFFERS_align, /**< alignment of data block memory */
|
|
|
|
|
};
|
|
|
|
|
|
2018-08-27 15:03:11 +02:00
|
|
|
/** properties for SPA_TYPE_OBJECT_ParamMeta */
|
2018-08-25 12:08:29 +02:00
|
|
|
enum spa_param_meta {
|
2018-08-27 15:03:11 +02:00
|
|
|
SPA_PARAM_META_START, /**< object id, one of enum spa_param_type */
|
2018-08-25 12:08:29 +02:00
|
|
|
SPA_PARAM_META_type, /**< the metadata, one of enum spa_meta_type */
|
|
|
|
|
SPA_PARAM_META_size, /**< the expected maximum size the meta */
|
|
|
|
|
};
|
|
|
|
|
|
2018-08-27 15:03:11 +02:00
|
|
|
/** properties for SPA_TYPE_OBJECT_ParamIO */
|
2018-08-25 12:08:29 +02:00
|
|
|
enum spa_param_io {
|
2018-08-27 15:03:11 +02:00
|
|
|
SPA_PARAM_IO_START, /**< object id, one of enum spa_param_type */
|
2018-08-25 12:08:29 +02:00
|
|
|
SPA_PARAM_IO_id, /**< type ID, uniquely identifies the io area */
|
|
|
|
|
SPA_PARAM_IO_size, /**< size of the io area */
|
|
|
|
|
};
|
2017-05-22 13:06:18 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
} /* extern "C" */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* __SPA_PARAM_H__ */
|