mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
FS-7500: initial idea to decode video in core
This commit is contained in:
1 parent
416745e2cd
commit
998d933671
6 files changed
+52
-15
No files matched your search
@@ -134,6 +134,8 @@ struct switch_core_session {
|
||||
switch_mutex_t *resample_mutex;
|
||||
switch_mutex_t *codec_read_mutex;
|
||||
switch_mutex_t *codec_write_mutex;
|
||||
switch_mutex_t *video_codec_read_mutex;
|
||||
switch_mutex_t *video_codec_write_mutex;
|
||||
switch_thread_cond_t *cond;
|
||||
switch_mutex_t *frame_read_mutex;
|
||||
|
||||
@@ -166,6 +168,16 @@ struct switch_core_session {
|
||||
switch_frame_t enc_read_frame;
|
||||
uint8_t raw_read_buf[SWITCH_RECOMMENDED_BUFFER_SIZE];
|
||||
uint8_t enc_read_buf[SWITCH_RECOMMENDED_BUFFER_SIZE];
|
||||
|
||||
/* video frame.data being trated differently than audio, allocate a dynamic data buffer if necessary*/
|
||||
switch_buffer_t *video_raw_write_buffer;
|
||||
switch_frame_t video_raw_write_frame;
|
||||
// switch_frame_t video_enc_write_frame;
|
||||
|
||||
switch_buffer_t *video_raw_read_buffer;
|
||||
switch_frame_t video_raw_read_frame;
|
||||
// switch_frame_t video_enc_read_frame;
|
||||
|
||||
switch_codec_t bug_codec;
|
||||
uint32_t read_frame_count;
|
||||
uint32_t track_duration;
|
||||
|
||||
Reference in new issue
Block a user