This file includes defines, enums and typedefs for vit sink.
More...
|
#define | AUDIO_CHUNK_SIZE(pstaudio_packet) ((pstaudio_packet)->chunk_size) |
| Get audio packet chunk size.
|
|
|
typedef int(* | VitSinkInitFunc) (void *) |
| audio sink initialize function proto type
|
|
typedef int(* | VitSinkPostProcFunc) (void *, void *, int) |
| audio sink post process function proto type
|
|
typedef int(* | VitSinkDeinitFunc) (void) |
| audio sink deinitialize function proto type
|
|
◆ vitsink_set_buffer()
int32_t vitsink_set_buffer |
( |
ElementHandle | element_hdl, |
|
|
char * | location_ptr, |
|
|
uint32_t | size ) |
- Parameters
-
element_hdl | element handle |
location_ptr | location path |
size | memory buffer size |
- Returns
- StreamReturnType
- Return values
-
STREAM_OK | success |
STREAM_ERR_INVALID_ARGS | invalid parameters |
STREAM_ERR_GENERAL | status is bigger than or equal to STATE_PAUSED |
◆ vitsink_set_raw_write_mode()
int32_t vitsink_set_raw_write_mode |
( |
ElementHandle | element_hdl, |
|
|
uint8_t | raw_write_mode ) |
- Parameters
-
element_hdl | element handle |
raw_write_mode | write mode raw (or) packet header |
- Returns
- StreamReturnType
- Return values
-
STREAM_OK | success |
STREAM_ERR_INVALID_ARGS | invalid arguments |
STREAM_ERR_GENERAL | value is bigger than or equal to STATE_PAUSED |
◆ vitsink_init_element()
int32_t vitsink_init_element |
( |
StreamElement * | element_ptr | ) |
|
- Parameters
-
element_ptr | pointer of memory sink element instance |
- Returns
- StreamReturnType
- Return values
-
STREAM_OK | success |
STREAM_ERR_ELEMENT_NOT_FOUND | invalid instance pointer of element_ptr |
◆ vit_register_ext_processing()
- Parameters
-
element | VIT element handle |
init_func_ptr | Init function pointer |
proc_func_ptr | Process function pointer |
deinit_func_ptr | Deinit function pointer |
arg_ptr | Arguments pointer |
- Returns
- STREAM_OK
-
STREAM_ERR_INVALID_ARGS