Ignore:
Timestamp:
Jul 12, 2011 1:45:21 AM (13 years ago)
Author:
ming
Message:

Re #1261: Video tee

File:
1 edited

Legend:

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

    r3614 r3616  
    4646 * The video tee is not thread-safe, so it is application responsibility 
    4747 * to synchronize video tee operations, e.g: make sure the source port is 
    48  * paused during adding or removing a destination channel. 
     48 * paused during adding or removing a destination port. 
    4949 */ 
    5050 
     
    6060     * Tell the video tee that the destination port will do in-place 
    6161     * processing, so the delivered data may be modified by this port. 
     62     * If this flag is used, buffer will be copied before being given to 
     63     * the destination port. 
    6264     */ 
    6365    PJMEDIA_VID_TEE_DST_DO_IN_PLACE_PROC    = 4, 
     
    6769 
    6870/** 
    69  * Create a video tee port with the specified source media port. 
     71 * Create a video tee port with the specified source media port. Application 
     72 * should destroy the tee with pjmedia_port_destroy() as usual. Note that 
     73 * destroying the tee does not destroy its destination ports. 
    7074 * 
    7175 * @param pool              The pool. 
    72  * @param src               The source media port. 
    73  * @param max_ch_cnt        The maximum channel count. 
     76 * @param fmt               The source media port's format. 
     77 * @param max_dst_cnt       The maximum number of destination ports supported. 
    7478 * @param p_vid_tee         Pointer to receive the video tee port. 
    7579 * 
     
    7882 */ 
    7983PJ_DECL(pj_status_t) pjmedia_vid_tee_create(pj_pool_t *pool, 
    80                                             pjmedia_format *fmt, 
    81                                             unsigned max_ch_cnt, 
     84                                            const pjmedia_format *fmt, 
     85                                            unsigned max_dst_cnt, 
    8286                                            pjmedia_port **p_vid_tee); 
    8387 
     
    8690 * 
    8791 * @param vid_tee           The video tee. 
    88  * @param ch_option         Channel option, see @pjmedia_vid_tee_flag. 
     92 * @param option            Video tee option, see @pjmedia_vid_tee_flag. 
    8993 * @param port              The destination media port. 
    9094 * 
     
    9296 *                          code. 
    9397 */ 
    94 PJ_DECL(pj_status_t) pjmedia_vid_tee_add_channel(pjmedia_port *vid_tee, 
    95                                                  unsigned option, 
    96                                                  pjmedia_port *port); 
     98PJ_DECL(pj_status_t) pjmedia_vid_tee_add_dst_port(pjmedia_port *vid_tee, 
     99                                                  unsigned option, 
     100                                                  pjmedia_port *port); 
    97101 
    98102 
     
    106110 *                          code. 
    107111 */ 
    108 PJ_DECL(pj_status_t) pjmedia_vid_tee_remove_channel(pjmedia_port *vid_tee, 
    109                                                     pjmedia_port *port); 
     112PJ_DECL(pj_status_t) pjmedia_vid_tee_remove_dst_port(pjmedia_port *vid_tee, 
     113                                                     pjmedia_port *port); 
    110114 
    111115 
Note: See TracChangeset for help on using the changeset viewer.