NUGU SDK Linux
1.7.6
|
Decoder driver. More...
Classes | |
struct | nugu_decoder_driver_ops |
decoder driver operations More... | |
Typedefs | |
typedef struct _nugu_decoder_driver | NuguDecoderDriver |
decoder driver object | |
Enumerations | |
enum | nugu_decoder_type { NUGU_DECODER_TYPE_OPUS , NUGU_DECODER_TYPE_CUSTOM = 99 } |
decoder type More... | |
Functions | |
NUGU_API NuguDecoderDriver * | nugu_decoder_driver_find (const char *name) |
Find a driver by name in the driver list. More... | |
NUGU_API NuguDecoderDriver * | nugu_decoder_driver_find_bytype (enum nugu_decoder_type type) |
Find a driver by type in the driver list. More... | |
NUGU_API int | nugu_decoder_driver_free (NuguDecoderDriver *driver) |
Destroy the decoder driver. More... | |
NUGU_API NuguDecoderDriver * | nugu_decoder_driver_new (const char *name, enum nugu_decoder_type type, struct nugu_decoder_driver_ops *ops) |
Create new decoder driver. More... | |
NUGU_API int | nugu_decoder_driver_register (NuguDecoderDriver *driver) |
Register the driver to driver list. More... | |
NUGU_API int | nugu_decoder_driver_remove (NuguDecoderDriver *driver) |
Remove the driver from driver list. More... | |
Decoder driver.
The decoder driver performs a function of decoding the received encoded data.
enum nugu_decoder_type |
decoder type
Enumerator | |
---|---|
NUGU_DECODER_TYPE_OPUS | OPUS |
NUGU_DECODER_TYPE_CUSTOM | Custom type |
NUGU_API NuguDecoderDriver* nugu_decoder_driver_new | ( | const char * | name, |
enum nugu_decoder_type | type, | ||
struct nugu_decoder_driver_ops * | ops | ||
) |
Create new decoder driver.
[in] | name | driver name |
[in] | type | decoder type |
[in] | ops | operation table |
NUGU_API int nugu_decoder_driver_free | ( | NuguDecoderDriver * | driver | ) |
Destroy the decoder driver.
[in] | driver | decoder driver object |
0 | success |
-1 | failure |
NUGU_API int nugu_decoder_driver_register | ( | NuguDecoderDriver * | driver | ) |
Register the driver to driver list.
[in] | driver | decoder driver object |
0 | success |
-1 | failure |
NUGU_API int nugu_decoder_driver_remove | ( | NuguDecoderDriver * | driver | ) |
Remove the driver from driver list.
[in] | driver | decoder driver object |
0 | success |
-1 | failure |
NUGU_API NuguDecoderDriver* nugu_decoder_driver_find | ( | const char * | name | ) |
Find a driver by name in the driver list.
[in] | name | decoder driver name |
NUGU_API NuguDecoderDriver* nugu_decoder_driver_find_bytype | ( | enum nugu_decoder_type | type | ) |
Find a driver by type in the driver list.
[in] | type | decoder driver type |