NUGU SDK Linux
1.7.6
|
Encoder driver. More...
Classes | |
struct | nugu_encoder_driver_ops |
encoder driver operations More... | |
Typedefs | |
typedef struct _nugu_encoder_driver | NuguEncoderDriver |
encoder driver object | |
Enumerations | |
enum | nugu_encoder_type { NUGU_ENCODER_TYPE_SPEEX , NUGU_ENCODER_TYPE_OPUS , NUGU_ENCODER_TYPE_CUSTOM = 99 } |
encoder type More... | |
Functions | |
NUGU_API NuguEncoderDriver * | nugu_encoder_driver_find (const char *name) |
Find a driver by name in the driver list. More... | |
NUGU_API NuguEncoderDriver * | nugu_encoder_driver_find_bytype (enum nugu_encoder_type type) |
Find a driver by type in the driver list. More... | |
NUGU_API int | nugu_encoder_driver_free (NuguEncoderDriver *driver) |
Destroy the encoder driver. More... | |
NUGU_API NuguEncoderDriver * | nugu_encoder_driver_new (const char *name, enum nugu_encoder_type type, struct nugu_encoder_driver_ops *ops) |
Create new encoder driver. More... | |
NUGU_API int | nugu_encoder_driver_register (NuguEncoderDriver *driver) |
Register the driver to driver list. More... | |
NUGU_API int | nugu_encoder_driver_remove (NuguEncoderDriver *driver) |
Remove the driver from driver list. More... | |
Encoder driver.
The encoder driver performs a function of encoding the received pcm data.
enum nugu_encoder_type |
encoder type
Enumerator | |
---|---|
NUGU_ENCODER_TYPE_SPEEX | SPEEX |
NUGU_ENCODER_TYPE_OPUS | OPUS |
NUGU_ENCODER_TYPE_CUSTOM | Custom type |
NUGU_API NuguEncoderDriver* nugu_encoder_driver_new | ( | const char * | name, |
enum nugu_encoder_type | type, | ||
struct nugu_encoder_driver_ops * | ops | ||
) |
Create new encoder driver.
[in] | name | driver name |
[in] | type | encoder type |
[in] | ops | operation table |
NUGU_API int nugu_encoder_driver_free | ( | NuguEncoderDriver * | driver | ) |
Destroy the encoder driver.
[in] | driver | encoder driver object |
0 | success |
-1 | failure |
NUGU_API int nugu_encoder_driver_register | ( | NuguEncoderDriver * | driver | ) |
Register the driver to driver list.
[in] | driver | encoder driver object |
0 | success |
-1 | failure |
NUGU_API int nugu_encoder_driver_remove | ( | NuguEncoderDriver * | driver | ) |
Remove the driver from driver list.
[in] | driver | encoder driver object |
0 | success |
-1 | failure |
NUGU_API NuguEncoderDriver* nugu_encoder_driver_find | ( | const char * | name | ) |
Find a driver by name in the driver list.
[in] | name | encoder driver name |
NUGU_API NuguEncoderDriver* nugu_encoder_driver_find_bytype | ( | enum nugu_encoder_type | type | ) |
Find a driver by type in the driver list.
[in] | type | encoder driver type |