Ignore:
Timestamp:
Dec 30, 2010 4:31:16 PM (13 years ago)
Author:
ming
Message:

Re #1184: Adding pjmedia_clock_src for the purpose of audio and video synchronization and also to provide synchronization mechanism between two medias in general.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/videoport.h

    r3392 r3402  
    126126 
    127127/** 
     128 * Get a clock source from the video port. 
     129 * 
     130 * @param vid_port  The video port. 
     131 * @param dir       Video port's direction. 
     132 * 
     133 * @return          The clock source. 
     134 */ 
     135PJ_DECL(pjmedia_clock_src *) 
     136pjmedia_vid_port_get_clock_src( pjmedia_vid_port *vid_port, 
     137                                pjmedia_dir dir ); 
     138 
     139/** 
     140 * Set a clock source for the video port. 
     141 * 
     142 * @param vid_port  The video port. 
     143 * @param dir       Video port's direction. 
     144 * @param clocksrc  The clock source. 
     145 * 
     146 * @return          PJ_SUCCESS on success or the appropriate error code. 
     147 */ 
     148PJ_DECL(pj_status_t) 
     149pjmedia_vid_port_set_clock_src( pjmedia_vid_port *vid_port, 
     150                                pjmedia_dir dir, 
     151                                pjmedia_clock_src *clocksrc ); 
     152 
     153/** 
    128154 * Connect the video port to a downstream (slave) media port. This operation 
    129155 * is only valid for video ports created with active interface selected. 
Note: See TracChangeset for help on using the changeset viewer.