Ignore:
Timestamp:
Mar 1, 2011 3:55:34 PM (13 years ago)
Author:
ming
Message:

Re #1182:

  • support for format modification after creating video port (currently for renderer with active role only).
  • support for format modification after opening SDL renderer.
File:
1 edited

Legend:

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

    r3402 r3431  
    181181}; 
    182182 
     183 
     184typedef struct pjmedia_clock_param 
     185{ 
     186    /** 
     187     * The frame interval, in microseconds. 
     188     */ 
     189    unsigned usec_interval; 
     190    /** 
     191     * The media clock rate, to determine timestamp 
     192     * increment for each call. 
     193     */ 
     194    unsigned clock_rate; 
     195} pjmedia_clock_param; 
    183196 
    184197/** 
     
    232245 * 
    233246 * @param pool              Pool to allocate memory. 
    234  * @param usec_interval     The frame interval, in microseconds. 
    235  * @param clock_rate        The media clock rate, to determine timestamp 
    236  *                          increment for each call. 
     247 * @param param             The clock parameter. 
    237248 * @param options           Bitmask of pjmedia_clock_options. 
    238249 * @param cb                Callback to be called for each clock tick. 
     
    244255 */ 
    245256PJ_DECL(pj_status_t) pjmedia_clock_create2(pj_pool_t *pool, 
    246                                            unsigned usec_interval, 
    247                                            unsigned clock_rate, 
     257                                           const pjmedia_clock_param *param, 
    248258                                           unsigned options, 
    249259                                           pjmedia_clock_callback *cb, 
     
    273283 
    274284 
     285/** 
     286 * Modify the clock's parameter. 
     287 * 
     288 * @param clock             The media clock. 
     289 * @param param             The clock's new parameter. 
     290 * @return                  PJ_SUCCES on success. 
     291 */ 
     292PJ_DECL(pj_status_t) pjmedia_clock_modify(pjmedia_clock *clock, 
     293                                          const pjmedia_clock_param *param); 
     294 
    275295 
    276296/** 
Note: See TracChangeset for help on using the changeset viewer.