NUGU SDK Linux  1.7.6
Decoder driver

Decoder driver. More...

+ Collaboration diagram for Decoder driver:

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 NuguDecoderDrivernugu_decoder_driver_find (const char *name)
 Find a driver by name in the driver list. More...
 
NUGU_API NuguDecoderDrivernugu_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 NuguDecoderDrivernugu_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...
 

Detailed Description

Decoder driver.

The decoder driver performs a function of decoding the received encoded data.

Enumeration Type Documentation

◆ nugu_decoder_type

decoder type

See also
nugu_decoder_driver_new()
Enumerator
NUGU_DECODER_TYPE_OPUS 

OPUS

NUGU_DECODER_TYPE_CUSTOM 

Custom type

Function Documentation

◆ nugu_decoder_driver_new()

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.

Parameters
[in]namedriver name
[in]typedecoder type
[in]opsoperation table
Returns
decoder driver object
See also
nugu_decoder_driver_free()

◆ nugu_decoder_driver_free()

NUGU_API int nugu_decoder_driver_free ( NuguDecoderDriver driver)

Destroy the decoder driver.

Parameters
[in]driverdecoder driver object
Returns
result
Return values
0success
-1failure

◆ nugu_decoder_driver_register()

NUGU_API int nugu_decoder_driver_register ( NuguDecoderDriver driver)

Register the driver to driver list.

Parameters
[in]driverdecoder driver object
Returns
result
Return values
0success
-1failure

◆ nugu_decoder_driver_remove()

NUGU_API int nugu_decoder_driver_remove ( NuguDecoderDriver driver)

Remove the driver from driver list.

Parameters
[in]driverdecoder driver object
Returns
result
Return values
0success
-1failure

◆ nugu_decoder_driver_find()

NUGU_API NuguDecoderDriver* nugu_decoder_driver_find ( const char *  name)

Find a driver by name in the driver list.

Parameters
[in]namedecoder driver name
Returns
decoder driver object
See also
nugu_decoder_driver_find_bytype()

◆ nugu_decoder_driver_find_bytype()

NUGU_API NuguDecoderDriver* nugu_decoder_driver_find_bytype ( enum nugu_decoder_type  type)

Find a driver by type in the driver list.

Parameters
[in]typedecoder driver type
Returns
decoder driver object
See also
nugu_decoder_driver_find