diff options
author | Liong Sauw Ming <ming@teluu.com> | 2015-07-03 06:21:30 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2015-07-03 06:21:30 +0000 |
commit | b08aa5cd83bb7d435cb9b59ab3c4c197d353c40b (patch) | |
tree | eee8c44809065d7166dd2ae21add0b5c56dbb41d /pjmedia | |
parent | a4bd5dd01062c3f5f78227f3da46d79d39d0e1df (diff) |
Re #1861: Changed pjsua API for setting the orientation using a more generic API, pjsua_vid_dev_set_setting() instead
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5125 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/include/pjmedia-videodev/config.h | 19 | ||||
-rw-r--r-- | pjmedia/include/pjmedia-videodev/videodev.h | 11 | ||||
-rw-r--r-- | pjmedia/src/pjmedia-videodev/videodev.c | 4 |
3 files changed, 26 insertions, 8 deletions
diff --git a/pjmedia/include/pjmedia-videodev/config.h b/pjmedia/include/pjmedia-videodev/config.h index 1e097cd7..fcb0b0c8 100644 --- a/pjmedia/include/pjmedia-videodev/config.h +++ b/pjmedia/include/pjmedia-videodev/config.h @@ -55,6 +55,25 @@ PJ_BEGIN_DECL #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) /** + * This setting controls the maximum number of supported video device drivers. + * + * Default: 8 + */ +#ifndef PJMEDIA_VID_DEV_MAX_DRIVERS +# define PJMEDIA_VID_DEV_MAX_DRIVERS 8 +#endif + +/** + * This setting controls the maximum number of supported video devices. + * + * Default: 16 + */ +#ifndef PJMEDIA_VID_DEV_MAX_DEVS +# define PJMEDIA_VID_DEV_MAX_DEVS 16 +#endif + + +/** * This setting controls whether OpenGL for iOS should be included. * * Default: 0 (or detected by configure) diff --git a/pjmedia/include/pjmedia-videodev/videodev.h b/pjmedia/include/pjmedia-videodev/videodev.h index f1f08b63..21fba158 100644 --- a/pjmedia/include/pjmedia-videodev/videodev.h +++ b/pjmedia/include/pjmedia-videodev/videodev.h @@ -240,12 +240,11 @@ typedef enum pjmedia_vid_dev_cap PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW = 64, /** - * Support for changing video orientation in renderer and querying - * video orientation info in capture. Changing video orientation in - * a renderer will potentially affect the size of render window, - * i.e: width and height swap. When a capture device supports this - * capability, it will generate event PJMEDIA_EVENT_ORIENT_CHANGED - * (see #pjmedia_event) everytime the capture orientation is changed. + * Support for changing video orientation. For a renderer device, + * changing video orientation in will potentially affect the size of + * render window, i.e: width and height swap. For a capture device, + * the video will be rotated but the size of the video frame + * will stay the same, so the video may be resized or stretched. * * The value of this capability is pjmedia_orient. */ diff --git a/pjmedia/src/pjmedia-videodev/videodev.c b/pjmedia/src/pjmedia-videodev/videodev.c index 185f2171..8558588d 100644 --- a/pjmedia/src/pjmedia-videodev/videodev.c +++ b/pjmedia/src/pjmedia-videodev/videodev.c @@ -105,8 +105,8 @@ pjmedia_vid_dev_factory* pjmedia_opengl_factory(pj_pool_factory *pf); pjmedia_vid_dev_factory* pjmedia_and_factory(pj_pool_factory *pf); #endif -#define MAX_DRIVERS 16 -#define MAX_DEVS 64 +#define MAX_DRIVERS PJMEDIA_VID_DEV_MAX_DRIVERS +#define MAX_DEVS PJMEDIA_VID_DEV_MAX_DEVS /* driver structure */ |