diff options
author | Liong Sauw Ming <ming@teluu.com> | 2015-08-21 06:46:32 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2015-08-21 06:46:32 +0000 |
commit | 97c47c4e1e14582218162e7cb8ed5185bd441357 (patch) | |
tree | fe0484a7af6ae60b4046dace0c395b64c923cc88 /pjmedia/include | |
parent | 8c6f78c4426aae98c9d72b14afd010a3458a662d (diff) |
Fixed #1880: Incorrect orientation after switching video capture or when using back camera
Included in this fix:
* Change the spec & doc of pjmedia_orient enumeration
* Change iOS sample app to rotate all video devices upon orientation change event.
* Set orientation as well when fast switching cameras (for iOS and Android)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5166 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/types.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pjmedia/include/pjmedia/types.h b/pjmedia/include/pjmedia/types.h index 20e93d69..486f0ed8 100644 --- a/pjmedia/include/pjmedia/types.h +++ b/pjmedia/include/pjmedia/types.h @@ -202,26 +202,34 @@ typedef enum pjmedia_orient PJMEDIA_ORIENT_UNKNOWN, /** - * Natural orientation, e.g: sky upside on landscape view, head upside - * on human portrait. + * Natural orientation, i.e. the original orientation video will be + * displayed/captured without rotation. */ PJMEDIA_ORIENT_NATURAL, /** * Specifies that the video/picture needs to be rotated 90 degrees - * clockwise to be displayed in natural orientation. + * from its natural orientation in clockwise direction from the user's + * perspective. + * Note that for devices with back cameras (which faces away + * from the user), the video will actually need to be rotated + * 270 degrees clockwise instead. */ PJMEDIA_ORIENT_ROTATE_90DEG, /** * Specifies that the video/picture needs to be rotated 180 degrees - * clockwise to be displayed in natural orientation. + * from its natural orientation. */ PJMEDIA_ORIENT_ROTATE_180DEG, /** * Specifies that the video/picture needs to be rotated 270 degrees - * clockwise to be displayed in natural orientation. + * from its natural orientation in clockwise direction from the user's + * perspective. + * Note that for devices with back cameras (which faces away + * from the user), the video will actually need to be rotated + * 90 degrees clockwise instead. */ PJMEDIA_ORIENT_ROTATE_270DEG |