mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FS-7500: add support for codec control and use it to pass messages down to the codec and use it to implement keyframe reset for fir, pli and nack. Later we will expand to handle nack correctly.
This commit is contained in:
@@ -1634,6 +1634,23 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_encode_video(switch_codec_t *c
|
||||
switch_image_t *img,
|
||||
void *encoded_data, uint32_t *encoded_data_len, unsigned int *flag);
|
||||
|
||||
/*!
|
||||
\brief send control data using a codec handle
|
||||
\param codec the codec handle to use
|
||||
\param cmd the command to send
|
||||
\param ctype the type of the arguement
|
||||
\param cmd_data a void pointer to the data matching the passed type
|
||||
\param rtype the type of the response if any
|
||||
\param ret_data a void pointer to a pointer of return data
|
||||
\return SWITCH_STATUS_SUCCESS if the command was received
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_codec_control(switch_codec_t *codec,
|
||||
switch_codec_control_command_t cmd,
|
||||
switch_codec_control_type_t ctype,
|
||||
void *cmd_data,
|
||||
switch_codec_control_type_t *rtype,
|
||||
void **ret_data);
|
||||
|
||||
/*!
|
||||
\brief Decode video data using a codec handle
|
||||
\param codec the codec handle to use
|
||||
|
||||
Reference in New Issue
Block a user