- Timestamp:
- Jul 7, 2011 7:46:33 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip/include/pjsua-lib/pjsua_internal.h
r3560 r3609 304 304 } pjsua_stun_resolve; 305 305 306 typedef enum pjsua_vid_win_type 307 { 308 PJSUA_WND_TYPE_NONE, 309 PJSUA_WND_TYPE_PREVIEW, 310 PJSUA_WND_TYPE_STREAM 311 } pjsua_vid_win_type; 312 313 typedef struct pjsua_vid_win 314 { 315 pjsua_vid_win_type type; /**< Type. */ 316 pj_pool_t *pool; /**< Own pool. */ 317 pjsua_call_id call_id; /**< Owner call or -1 */ 318 pjmedia_vid_port *vp_cap; /**< Capture vidport. */ 319 pjmedia_vid_port *vp_rend; /**< Renderer vidport */ 320 pjmedia_vid_dev_index preview_cap_id;/* Capture dev id */ 321 } pjsua_vid_win; 306 322 307 323 /** … … 398 414 unsigned rec_cnt; /**< Number of file recorders. */ 399 415 pjsua_file_data recorder[PJSUA_MAX_RECORDERS];/**< Array of recs.*/ 416 417 /* Video windows */ 418 #if PJSUA_HAS_VIDEO 419 pjsua_vid_win win[PJSUA_MAX_VID_WINS]; /**< Array of windows */ 420 #endif 400 421 }; 401 422 … … 632 653 char *buf, pj_size_t size); 633 654 655 /* 656 * Video 657 */ 658 pj_status_t pjsua_vid_subsys_init(void); 659 pj_status_t pjsua_vid_subsys_start(void); 660 pj_status_t pjsua_vid_subsys_destroy(void); 661 662 PJ_INLINE(void) pjsua_vid_win_reset(pjsua_vid_win_id wid) 663 { 664 #if PJSUA_HAS_VIDEO 665 pjsua_vid_win *w = &pjsua_var.win[wid]; 666 pj_pool_t *pool = w->pool; 667 668 pj_bzero(w, sizeof(*w)); 669 if (pool) pj_pool_reset(pool); 670 w->call_id = PJSUA_INVALID_ID; 671 w->pool = pool; 672 w->preview_cap_id = PJMEDIA_VID_INVALID_DEV; 673 #endif 674 } 675 634 676 635 677 PJ_END_DECL
Note: See TracChangeset
for help on using the changeset viewer.