mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-7500: refactor to use switch_core_video
added switch_core_codec_encode_video and switch_core_codec_decode video and add separate video implementations the switch_core_video code depends on libvpx, wraped into the switch_ namespace like switch_apr, need to figure out how to find the correct libvpx lib in autotools
This commit is contained in:
committed by
Anthony Minessale
parent
1ccd8dc447
commit
798a18a73d
@@ -639,10 +639,6 @@ struct switch_codec {
|
||||
struct switch_codec *next;
|
||||
switch_core_session_t *session;
|
||||
switch_frame_t *cur_frame;
|
||||
/*! raw picture for encode */
|
||||
switch_picture_t enc_picture;
|
||||
/*! decoded picture */
|
||||
switch_picture_t dec_picture;
|
||||
};
|
||||
|
||||
/*! \brief A table of settings and callbacks that define a paticular implementation of a codec */
|
||||
@@ -679,6 +675,10 @@ struct switch_codec_implementation {
|
||||
switch_core_codec_encode_func_t encode;
|
||||
/*! function to decode encoded data into raw data */
|
||||
switch_core_codec_decode_func_t decode;
|
||||
/*! function to encode video raw data into encoded data */
|
||||
switch_core_codec_video_encode_func_t encode_video;
|
||||
/*! function to decode video encoded data into raw data */
|
||||
switch_core_codec_video_decode_func_t decode_video;
|
||||
/*! deinitalize a codec handle using this implementation */
|
||||
switch_core_codec_destroy_func_t destroy;
|
||||
uint32_t codec_id;
|
||||
|
||||
Reference in New Issue
Block a user