Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
96675ed9
Commit
96675ed9
authored
Sep 18, 2013
by
Mathias Agopian
Browse files
Options
Downloads
Patches
Plain Diff
Fix rotation in camera2 API
Bug: 10804238 Change-Id: I093945789d9c6d373392fc9dfd18ec2c6058d3b9
parent
3a0d4b34
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/system/graphics.h
+2
-0
2 additions, 0 deletions
include/system/graphics.h
include/system/window.h
+4
-1
4 additions, 1 deletion
include/system/window.h
with
6 additions
and
1 deletion
include/system/graphics.h
+
2
−
0
View file @
96675ed9
...
@@ -293,6 +293,8 @@ enum {
...
@@ -293,6 +293,8 @@ enum {
HAL_TRANSFORM_ROT_180
=
0x03
,
HAL_TRANSFORM_ROT_180
=
0x03
,
/* rotate source image 270 degrees clockwise */
/* rotate source image 270 degrees clockwise */
HAL_TRANSFORM_ROT_270
=
0x07
,
HAL_TRANSFORM_ROT_270
=
0x07
,
/* don't use. see system/window.h */
HAL_TRANSFORM_RESERVED
=
0x08
,
};
};
#ifdef __cplusplus
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
include/system/window.h
+
4
−
1
View file @
96675ed9
...
@@ -296,12 +296,15 @@ enum {
...
@@ -296,12 +296,15 @@ enum {
NATIVE_WINDOW_TRANSFORM_FLIP_H
=
HAL_TRANSFORM_FLIP_H
,
NATIVE_WINDOW_TRANSFORM_FLIP_H
=
HAL_TRANSFORM_FLIP_H
,
/* flip source image vertically */
/* flip source image vertically */
NATIVE_WINDOW_TRANSFORM_FLIP_V
=
HAL_TRANSFORM_FLIP_V
,
NATIVE_WINDOW_TRANSFORM_FLIP_V
=
HAL_TRANSFORM_FLIP_V
,
/* rotate source image 90 degrees clock-wise */
/* rotate source image 90 degrees clock-wise
, and is applied after TRANSFORM_FLIP_{H|V}
*/
NATIVE_WINDOW_TRANSFORM_ROT_90
=
HAL_TRANSFORM_ROT_90
,
NATIVE_WINDOW_TRANSFORM_ROT_90
=
HAL_TRANSFORM_ROT_90
,
/* rotate source image 180 degrees */
/* rotate source image 180 degrees */
NATIVE_WINDOW_TRANSFORM_ROT_180
=
HAL_TRANSFORM_ROT_180
,
NATIVE_WINDOW_TRANSFORM_ROT_180
=
HAL_TRANSFORM_ROT_180
,
/* rotate source image 270 degrees clock-wise */
/* rotate source image 270 degrees clock-wise */
NATIVE_WINDOW_TRANSFORM_ROT_270
=
HAL_TRANSFORM_ROT_270
,
NATIVE_WINDOW_TRANSFORM_ROT_270
=
HAL_TRANSFORM_ROT_270
,
/* transforms source by the inverse transform of the screen it is displayed onto. This
* transform is applied last */
NATIVE_WINDOW_TRANSFORM_INVERSE_DISPLAY
=
0x08
};
};
/* parameter for NATIVE_WINDOW_SET_SCALING_MODE */
/* parameter for NATIVE_WINDOW_SET_SCALING_MODE */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment