NUGU SDK Linux  1.7.6
nugu_encoder_driver_ops Struct Reference

encoder driver operations More...

#include <nugu_encoder.h>

Public Attributes

int(* create )(NuguEncoderDriver *driver, NuguEncoder *enc, NuguAudioProperty property)
 Called when creating a new encoder. More...
 
int(* destroy )(NuguEncoderDriver *driver, NuguEncoder *enc)
 Called when the encoder is destroyed. More...
 
int(* encode )(NuguEncoderDriver *driver, NuguEncoder *enc, int is_last, const void *data, size_t data_len, NuguBuffer *out_buf)
 Called when a encoding request is received from the encoder. More...
 

Detailed Description

encoder driver operations

See also
nugu_encoder_driver_new()

Member Data Documentation

◆ create

int(* nugu_encoder_driver_ops::create) (NuguEncoderDriver *driver, NuguEncoder *enc, NuguAudioProperty property)

Called when creating a new encoder.

See also
nugu_encoder_new()

◆ encode

int(* nugu_encoder_driver_ops::encode) (NuguEncoderDriver *driver, NuguEncoder *enc, int is_last, const void *data, size_t data_len, NuguBuffer *out_buf)

Called when a encoding request is received from the encoder.

See also
nugu_encoder_encode()

◆ destroy

int(* nugu_encoder_driver_ops::destroy) (NuguEncoderDriver *driver, NuguEncoder *enc)

Called when the encoder is destroyed.

See also
nugu_encoder_free()

The documentation for this struct was generated from the following file: