Ignore:
Timestamp:
Feb 24, 2011 7:47:55 AM (10 years ago)
Author:
nanang
Message:

Re #1182:

  • Added video stream interface in vid_stream.h, the video stream will be able to handle different video formats in encoding and decoding direction.
  • Renamed video device stream class identifiers from 'pjmedia_vid_stream*' to 'pjmedia_vid_dev_stream*' as 'pjmedia_vid_stream' is used by video stream interface.
  • Added ffmpeg video capability to be able to parse SDP format param for H263 and also decide video format for encoding direction based on remote preference and local format-capability setting.
  • Added some new APIs in jitter buffer for handling video stream: pjmedia_jbuf_put_frame3(), pjmedia_jbuf_get_frame3(), pjmedia_jbuf_peek_frame(), and pjmedia_jbuf_remove_frame().
  • Moved pjmedia_stream_info_from_sdp() from session to stream
File:
1 edited

Legend:

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

    r3392 r3420  
    8484    /** 
    8585     * Open the video device and create video stream. See 
    86      * #pjmedia_vid_stream_create() 
     86     * #pjmedia_vid_dev_stream_create() 
    8787     */ 
    8888    pj_status_t (*create_stream)(pjmedia_vid_dev_factory *f, 
     
    9090                                 const pjmedia_vid_cb *cb, 
    9191                                 void *user_data, 
    92                                  pjmedia_vid_stream **p_vid_strm); 
     92                                 pjmedia_vid_dev_stream **p_vid_strm); 
    9393 
    9494} pjmedia_vid_dev_factory_op; 
     
    114114 * Video stream operations. 
    115115 */ 
    116 typedef struct pjmedia_vid_stream_op 
     116typedef struct pjmedia_vid_dev_stream_op 
    117117{ 
    118118    /** 
    119      * See #pjmedia_vid_stream_get_param() 
     119     * See #pjmedia_vid_dev_stream_get_param() 
    120120     */ 
    121     pj_status_t (*get_param)(pjmedia_vid_stream *strm, 
     121    pj_status_t (*get_param)(pjmedia_vid_dev_stream *strm, 
    122122                             pjmedia_vid_param *param); 
    123123 
    124124    /** 
    125      * See #pjmedia_vid_stream_get_cap() 
     125     * See #pjmedia_vid_dev_stream_get_cap() 
    126126     */ 
    127     pj_status_t (*get_cap)(pjmedia_vid_stream *strm, 
     127    pj_status_t (*get_cap)(pjmedia_vid_dev_stream *strm, 
    128128                           pjmedia_vid_dev_cap cap, 
    129129                           void *value); 
    130130 
    131131    /** 
    132      * See #pjmedia_vid_stream_set_cap() 
     132     * See #pjmedia_vid_dev_stream_set_cap() 
    133133     */ 
    134     pj_status_t (*set_cap)(pjmedia_vid_stream *strm, 
     134    pj_status_t (*set_cap)(pjmedia_vid_dev_stream *strm, 
    135135                           pjmedia_vid_dev_cap cap, 
    136136                           const void *value); 
    137137 
    138138    /** 
    139      * See #pjmedia_vid_stream_start() 
     139     * See #pjmedia_vid_dev_stream_start() 
    140140     */ 
    141     pj_status_t (*start)(pjmedia_vid_stream *strm); 
     141    pj_status_t (*start)(pjmedia_vid_dev_stream *strm); 
    142142 
    143143    /** 
    144      * See #pjmedia_vid_stream_get_frame() 
     144     * See #pjmedia_vid_dev_stream_get_frame() 
    145145     */ 
    146     pj_status_t (*get_frame)(pjmedia_vid_stream *strm, 
     146    pj_status_t (*get_frame)(pjmedia_vid_dev_stream *strm, 
    147147                             pjmedia_frame *frame); 
    148148 
    149149    /** 
    150      * See #pjmedia_vid_stream_put_frame() 
     150     * See #pjmedia_vid_dev_stream_put_frame() 
    151151     */ 
    152     pj_status_t (*put_frame)(pjmedia_vid_stream *strm, 
     152    pj_status_t (*put_frame)(pjmedia_vid_dev_stream *strm, 
    153153                             const pjmedia_frame *frame); 
    154154 
    155155    /** 
    156      * See #pjmedia_vid_stream_stop(). 
     156     * See #pjmedia_vid_dev_stream_stop(). 
    157157     */ 
    158     pj_status_t (*stop)(pjmedia_vid_stream *strm); 
     158    pj_status_t (*stop)(pjmedia_vid_dev_stream *strm); 
    159159 
    160160    /** 
    161      * See #pjmedia_vid_stream_destroy(). 
     161     * See #pjmedia_vid_dev_stream_destroy(). 
    162162     */ 
    163     pj_status_t (*destroy)(pjmedia_vid_stream *strm); 
     163    pj_status_t (*destroy)(pjmedia_vid_dev_stream *strm); 
    164164 
    165 } pjmedia_vid_stream_op; 
     165} pjmedia_vid_dev_stream_op; 
    166166 
    167167 
     
    169169 * This structure describes the video device stream. 
    170170 */ 
    171 struct pjmedia_vid_stream 
     171struct pjmedia_vid_dev_stream 
    172172{ 
    173173    /** Internal data to be initialized by video subsystem */ 
     
    178178 
    179179    /** Operations */ 
    180     pjmedia_vid_stream_op *op; 
     180    pjmedia_vid_dev_stream_op *op; 
    181181}; 
    182182 
Note: See TracChangeset for help on using the changeset viewer.