Ignore:
Timestamp:
Sep 19, 2011 8:26:35 AM (13 years ago)
Author:
bennylp
Message:

Implemented native video preview support. This closes #1340

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-videodev/videodev.h

    r3715 r3756  
    150150 
    151151    /** 
    152      * The application can provide a window for the renderer to 
    153      * display the video. 
     152     * Support for returning the native window handle of the video window. 
     153     * For renderer, this means the window handle of the renderer window, 
     154     * while for capture, this means the window handle of the native preview, 
     155     * only if the device supports  PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW 
     156     * capability. 
     157     * 
     158     * The value of this capability is pointer to pjmedia_vid_dev_hwnd 
     159     * structure. 
    154160     */ 
    155161    PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW = 4, 
     
    176182 
    177183    /** 
    178      * End of capability 
     184     * Support for native preview capability in capture devices. Value is 
     185     * pj_bool_t. With native preview, capture device can be instructed to 
     186     * show or hide a preview window showing video directly from the camera 
     187     * by setting this capability to PJ_TRUE or PJ_FALSE. Once the preview 
     188     * is started, application may use PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW 
     189     * capability to query the vidow window. 
     190     * 
     191     * The value of this capability is a pj_bool_t containing boolean 
     192     * PJ_TRUE or PJ_FALSE. 
     193     */ 
     194    PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW = 64, 
     195 
     196    /** 
     197     * End of standard capability 
    179198     */ 
    180199    PJMEDIA_VID_DEV_CAP_MAX = 16384 
     
    338357    pj_bool_t window_hide; 
    339358 
     359    /** 
     360     * Enable built-in preview. This setting is optional and is only used 
     361     * if PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW capability is supported and 
     362     * set in the flags. 
     363     */ 
     364    pj_bool_t native_preview; 
     365 
    340366} pjmedia_vid_dev_param; 
    341367 
Note: See TracChangeset for help on using the changeset viewer.