diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-09-19 08:26:35 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-09-19 08:26:35 +0000 |
commit | 1e1b229434f1fc558c0aa26746334186c97c80fe (patch) | |
tree | a6bfd3f2b579defcddc18f1f47e2eba20d9ba64e /pjmedia/include/pjmedia-videodev/videodev.h | |
parent | 62bf8d3a35a49a55c97eaf50d71241ee512d1282 (diff) |
Implemented native video preview support. This closes #1340
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3756 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia-videodev/videodev.h')
-rw-r--r-- | pjmedia/include/pjmedia-videodev/videodev.h | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/pjmedia/include/pjmedia-videodev/videodev.h b/pjmedia/include/pjmedia-videodev/videodev.h index 6aed18ef..30a9750b 100644 --- a/pjmedia/include/pjmedia-videodev/videodev.h +++ b/pjmedia/include/pjmedia-videodev/videodev.h @@ -149,8 +149,14 @@ typedef enum pjmedia_vid_dev_cap PJMEDIA_VID_DEV_CAP_INPUT_SCALE = 2, /** - * The application can provide a window for the renderer to - * display the video. + * Support for returning the native window handle of the video window. + * For renderer, this means the window handle of the renderer window, + * while for capture, this means the window handle of the native preview, + * only if the device supports PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW + * capability. + * + * The value of this capability is pointer to pjmedia_vid_dev_hwnd + * structure. */ PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW = 4, @@ -175,7 +181,20 @@ typedef enum pjmedia_vid_dev_cap PJMEDIA_VID_DEV_CAP_OUTPUT_HIDE = 32, /** - * End of capability + * Support for native preview capability in capture devices. Value is + * pj_bool_t. With native preview, capture device can be instructed to + * show or hide a preview window showing video directly from the camera + * by setting this capability to PJ_TRUE or PJ_FALSE. Once the preview + * is started, application may use PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW + * capability to query the vidow window. + * + * The value of this capability is a pj_bool_t containing boolean + * PJ_TRUE or PJ_FALSE. + */ + PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW = 64, + + /** + * End of standard capability */ PJMEDIA_VID_DEV_CAP_MAX = 16384 @@ -337,6 +356,13 @@ typedef struct pjmedia_vid_dev_param */ pj_bool_t window_hide; + /** + * Enable built-in preview. This setting is optional and is only used + * if PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW capability is supported and + * set in the flags. + */ + pj_bool_t native_preview; + } pjmedia_vid_dev_param; |