summaryrefslogtreecommitdiff
path: root/toxav/toxmedia.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/toxmedia.h')
-rw-r--r--toxav/toxmedia.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/toxav/toxmedia.h b/toxav/toxmedia.h
index 5037365c..aad299bb 100644
--- a/toxav/toxmedia.h
+++ b/toxav/toxmedia.h
@@ -70,7 +70,7 @@
70#define DEFAULT_WEBCAM "/dev/video0" 70#define DEFAULT_WEBCAM "/dev/video0"
71#endif 71#endif
72 72
73#ifdef defined(_WIN32) || defined(__WIN32__) || defined (WIN32) 73#if defined(_WIN32) || defined(__WIN32__) || defined (WIN32)
74#define VIDEO_DRIVER "vfwcap" 74#define VIDEO_DRIVER "vfwcap"
75#define DEFAULT_WEBCAM "0" 75#define DEFAULT_WEBCAM "0"
76#endif 76#endif
@@ -126,11 +126,11 @@ typedef struct {
126 /* rendered video picture, ready for display */ 126 /* rendered video picture, ready for display */
127 VideoPicture video_picture; 127 VideoPicture video_picture;
128 128
129 rtp_session_t *_rtp_video; 129 RTPSession *_rtp_video;
130 rtp_session_t *_rtp_audio; 130 RTPSession *_rtp_audio;
131 int socket;
132 Networking_Core *_networking;
133 131
132 Tox* _messenger;
133
134 pthread_t encode_audio_thread; 134 pthread_t encode_audio_thread;
135 pthread_t encode_video_thread; 135 pthread_t encode_video_thread;
136 136
@@ -143,11 +143,8 @@ typedef struct {
143 uint8_t quit; 143 uint8_t quit;
144 SDL_Event SDL_event; 144 SDL_Event SDL_event;
145 145
146 msi_session_t *_msi; 146 MSISession *_msi;
147 uint32_t _frame_rate; 147 uint32_t _frame_rate;
148 uint16_t _send_port, _recv_port;
149 int _tox_sock;
150 //pthread_id _medialoop_id;
151 148
152} codec_state; 149} codec_state;
153 150
@@ -161,7 +158,7 @@ int video_encoder_refresh(codec_state *cs, int bps);
161void *encode_video_thread(void *arg); 158void *encode_video_thread(void *arg);
162void *encode_audio_thread(void *arg); 159void *encode_audio_thread(void *arg);
163int video_decoder_refresh(codec_state *cs, int width, int height); 160int video_decoder_refresh(codec_state *cs, int width, int height);
164int handle_rtp_video_packet(codec_state *cs, rtp_msg_t *r_msg); 161int handle_rtp_video_packet(codec_state *cs, RTPMessage *r_msg);
165void *decode_video_thread(void *arg); 162void *decode_video_thread(void *arg);
166void *decode_audio_thread(void *arg); 163void *decode_audio_thread(void *arg);
167 164