From 23496bdbbadf3029fae207c5f3c01b1e34c9a1b0 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Fri, 1 Feb 2013 12:48:58 -0800 Subject: Convert live preview demo to IO_OUTPUT Change-Id: I01193932a6fcd572841434a59d34eda60d9b8b02 Fix aspect ratio --- .../LivePreview/res/layout/cf_main.xml | 2 +- .../rs/livepreview/CameraPreviewActivity.java | 39 ++++----- .../src/com/android/rs/livepreview/RsYuv.java | 98 ++++++++++++++++++---- .../src/com/android/rs/livepreview/yuv.rs | 2 +- 4 files changed, 102 insertions(+), 39 deletions(-) (limited to 'tests/RenderScriptTests') diff --git a/tests/RenderScriptTests/LivePreview/res/layout/cf_main.xml b/tests/RenderScriptTests/LivePreview/res/layout/cf_main.xml index c7dcca5..ecb736b 100644 --- a/tests/RenderScriptTests/LivePreview/res/layout/cf_main.xml +++ b/tests/RenderScriptTests/LivePreview/res/layout/cf_main.xml @@ -53,7 +53,7 @@ android:layout_height="fill_parent" android:layout_weight="3" > -