mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FS-7641
This commit is contained in:
@@ -223,6 +223,9 @@ struct switch_media_bug {
|
||||
switch_frame_t *read_demux_frame;
|
||||
switch_queue_t *read_video_queue;
|
||||
switch_queue_t *write_video_queue;
|
||||
switch_queue_t *spy_video_queue[2];
|
||||
switch_image_t *spy_img[2];
|
||||
switch_vid_spy_fmt_t spy_fmt;
|
||||
switch_thread_t *video_bug_thread;
|
||||
struct switch_media_bug *next;
|
||||
};
|
||||
|
||||
@@ -253,6 +253,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_exec_all(switch_core_sessi
|
||||
const char *function, switch_media_bug_exec_cb_t cb, void *user_data);
|
||||
SWITCH_DECLARE(uint32_t) switch_core_media_bug_patch_video(switch_core_session_t *orig_session, switch_frame_t *frame);
|
||||
SWITCH_DECLARE(uint32_t) switch_core_media_bug_count(switch_core_session_t *orig_session, const char *function);
|
||||
SWITCH_DECLARE(void) switch_media_bug_set_spy_fmt(switch_media_bug_t *bug, switch_vid_spy_fmt_t spy_fmt);
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_media_bug_push_spy_frame(switch_media_bug_t *bug, switch_frame_t *frame, switch_rw_t rw);
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_media_bug_patch_spy_frame(switch_media_bug_t *bug, switch_image_t *img, switch_rw_t rw);
|
||||
SWITCH_DECLARE(switch_vid_spy_fmt_t) switch_media_bug_parse_spy_fmt(const char *name);
|
||||
|
||||
/*!
|
||||
\brief Add a media bug to the session
|
||||
\param session the session to add the bug to
|
||||
|
||||
@@ -1742,7 +1742,9 @@ typedef enum {
|
||||
SMBF_WRITE_VIDEO_PING = (1 << 18),
|
||||
SMBF_READ_VIDEO_STREAM = (1 << 19),
|
||||
SMBF_WRITE_VIDEO_STREAM = (1 << 20),
|
||||
SMBF_VIDEO_PATCH = (1 << 21)
|
||||
SMBF_VIDEO_PATCH = (1 << 21),
|
||||
SMBF_SPY_VIDEO_STREAM = (1 << 22),
|
||||
SMBF_SPY_VIDEO_STREAM_BLEG = (1 << 23)
|
||||
} switch_media_bug_flag_enum_t;
|
||||
typedef uint32_t switch_media_bug_flag_t;
|
||||
|
||||
@@ -2557,6 +2559,11 @@ typedef enum {
|
||||
SVR_FLUSH = (1 << 1)
|
||||
} switch_video_read_flag_t;
|
||||
|
||||
typedef enum {
|
||||
SPY_LOWER_RIGHT_SMALL,
|
||||
SPY_LOWER_RIGHT_LARGE,
|
||||
SPY_DUAL_CROP
|
||||
} switch_vid_spy_fmt_t;
|
||||
|
||||
SWITCH_END_EXTERN_C
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user