diff options
author | Wei Hua <whua@google.com> | 2011-09-07 14:01:50 -0700 |
---|---|---|
committer | Wei Hua <whua@google.com> | 2011-09-07 14:01:50 -0700 |
commit | 2670b3d7c318604f07b680b22360d349103144be (patch) | |
tree | e91f99c520392e05d0ffdc017990a2c47ec809ba /res/raw | |
parent | a93a4d60eacee4e12471b45f8691c14114e113a4 (diff) | |
download | LegacyCamera-2670b3d7c318604f07b680b22360d349103144be.zip LegacyCamera-2670b3d7c318604f07b680b22360d349103144be.tar.gz LegacyCamera-2670b3d7c318604f07b680b22360d349103144be.tar.bz2 |
Added Orientation change support for goofy face effect.
bug: 5221073
Change-Id: Iff414f33fe389f0bac8f75920d8a14283f4a4d2e
Diffstat (limited to 'res/raw')
-rw-r--r-- | res/raw/goofy_face.graph | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/res/raw/goofy_face.graph b/res/raw/goofy_face.graph index 344e137..cceceb0 100644 --- a/res/raw/goofy_face.graph +++ b/res/raw/goofy_face.graph @@ -78,6 +78,17 @@ oheight = $previewHeight; } +// Orientation rotation filter +@filter FixedRotationFilter rotate { + rotation = 0; +} + +// Orientation rotation filter for facemeta data +@filter FaceMetaFixedRotationFilter metarotate { + rotation = 0; +} + + // Recording output @filter MediaEncoderFilter recorder { audioSource = $audioSource; @@ -88,12 +99,14 @@ // Connections ----------------------------------------------- // camera -> faceTracker -@connect source[video] => toPackedGray[image]; +@connect source[video] => rotate[image]; +@connect rotate[image] => toPackedGray[image]; @connect toPackedGray[image] => faceTracker[image]; // camera -> goofy @connect source[video] => goofyrenderer[image]; -// faceTracker -> goofy -@connect faceTracker[faces] => goofyrenderer[faces]; +// faceTracker -> metarotate -> goofy +@connect faceTracker[faces] => metarotate[faces]; +@connect metarotate[faces] => goofyrenderer[faces]; // goofy -> display out @connect goofyrenderer[outimage] => display[frame]; // goofy -> record |