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:
Seven Du
2014-08-04 03:15:26 +08:00
committed by Anthony Minessale
parent 1ccd8dc447
commit 798a18a73d
9 changed files with 180 additions and 63 deletions
+4 -4
View File
@@ -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;