Ignore:
Timestamp:
Jul 14, 2011 3:47:04 AM (13 years ago)
Author:
nanang
Message:

Re #1263:

  • Added API pjsua_vid_enum_wins() to enumerate video windows.
  • Minor fixes on video window manipulations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_vid.c

    r3637 r3638  
    878878 */ 
    879879 
     880 
     881/* 
     882 * Enumerates all video windows. 
     883 */ 
     884PJ_DEF(pj_status_t) pjsua_vid_enum_wins( pjsua_vid_win_id wids[], 
     885                                         unsigned *count) 
     886{ 
     887    unsigned i, cnt; 
     888 
     889    cnt = 0; 
     890 
     891    for (i=0; i<PJSUA_MAX_VID_WINS && cnt <*count; ++i) { 
     892        pjsua_vid_win *w = &pjsua_var.win[i]; 
     893        if (w->type != PJSUA_WND_TYPE_NONE) 
     894            wids[cnt++] = i; 
     895    } 
     896 
     897    *count = cnt; 
     898 
     899    return PJ_SUCCESS; 
     900} 
     901 
     902 
    880903/* 
    881904 * Get window info. 
     
    9801003 
    9811004    status = pjmedia_vid_dev_stream_set_cap(s, 
    982                             PJMEDIA_VID_DEV_CAP_OUTPUT_POSITION, &pos); 
     1005                            PJMEDIA_VID_DEV_CAP_OUTPUT_POSITION, pos); 
    9831006 
    9841007    PJSUA_UNLOCK(); 
     
    10131036 
    10141037    status = pjmedia_vid_dev_stream_set_cap(s, 
    1015                             PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE, &size); 
     1038                            PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE, size); 
    10161039 
    10171040    PJSUA_UNLOCK(); 
Note: See TracChangeset for help on using the changeset viewer.