86 Commits

Author SHA1 Message Date
Jason Sams
72226e0543 Implement USAGE_IO_INPUT
Change-Id: Id5b9e3d0a17e4df15eec36d542fde6dc626138b2
2013-02-22 12:45:54 -08:00
Jason Sams
fb2f5c207a Reuse context and allocations across test.
Change-Id: I9a3498c9095db2c7876bf45d6bd5c75deded8dd8
2013-02-13 12:11:53 -08:00
Jason Sams
455d644266 Implement rs.sendMessage()
Change-Id: Ib4f4bb7bb4f697d0b5405ad55721394ed2456c65
2013-02-05 19:20:18 -08:00
Jason Sams
806f133e41 Merge "Turn off vector code for tests where this reduces performance." 2013-01-22 23:38:36 +00:00
Jason Sams
79914f9d18 Turn off vector code for tests where this reduces performance.
Change-Id: Ice90a8f510db9acc5325a1cfa44638b5a1cef782
2013-01-22 13:36:44 -08:00
Jason Sams
b472aade9e Merge "fast math error testing." 2013-01-22 21:30:18 +00:00
Jason Sams
023c260afa fast math error testing.
Change-Id: Ib9c2af9ac2aaf44c0e08a47099dc1f9c057c9ac3
2013-01-18 18:26:53 -08:00
Xia Wang
b2d98ceb27 Fix image processing test to include all benchmark tests
-- each test case can be excuted separately
-- add a test case to run all benchmarks.

Change-Id: I3c61dfe50267a6db11bc1895a4f37ed618a9103b
2013-01-15 18:00:38 -08:00
Stephen Hines
bb469bde8d Merge "Add parentheses for latest Clang warnings." 2013-01-10 15:23:49 -08:00
Stephen Hines
9be5f0a306 Add parentheses for latest Clang warnings.
Change-Id: I843fd3eb44e1ab0a177d7045ca97cf146fd81231
2013-01-10 15:09:02 -08:00
Jason Sams
40f1fa6ed6 Add 3D LUT intrinsic java class
Add test for 3D LUT

Change-Id: I52bc20fd5458afda6de0a6015e9c8bc6a4970055
2013-01-08 11:52:56 -08:00
Jason Sams
09e2835fad Fix off by 1 in color cube.
Tested with 2x2x2 and 32x32x16 cubes.
Bit exact in 2x2x2

Change-Id: I0ca3e3736d1d9c611a02bba8ee9bfea3befd0e76
2013-01-02 16:22:59 -08:00
Jason Sams
a22f980f99 Merge "Fix color cube tests." 2012-12-28 14:37:44 -08:00
Jason Sams
ddf66ce679 Fix color cube tests.
Change-Id: I644ac26c6d234bf5b9cf4c549bebdfee67e98f50
2012-12-28 13:24:03 -08:00
Jason Sams
69bf687e53 Merge "Add API support for 3D allocations." 2012-12-28 11:53:46 -08:00
Jason Sams
d1c306a9e6 Add API support for 3D allocations.
Change-Id: I19c525f90135d83caec545e77e8f61a957d220ee
2012-12-27 20:26:41 -08:00
Tim Murray
2c1dc9a0e9 Switch to simpler createFromBitmap in ImageProcessing.
Change-Id: I61034689ed83b6536abc034e21c39adac2cdf553
2012-12-18 14:21:39 -08:00
Jason Sams
f914db7c42 Minor cleanup of a few RS filter ports.
on Manta these reduce the times from
Contrast: 180ms to 21ms
Exposure: 177ms to 19ms

Change-Id: I1224ecaeaee22dc49069383e2f000a193c331b4c
2012-12-11 14:28:21 -08:00
Tim Murray
906380a876 Merge "add filters from Gallery to ImageProcessing" 2012-12-06 18:06:25 -08:00
Tim Murray
d7940c89e8 add filters from Gallery to ImageProcessing
Change-Id: Iaf90f4a9468adde4bc8d94ec3ceed41846f424d0
2012-12-06 17:19:54 -08:00
Stephen Hines
b6d04f84c3 Fix app bug related to same input/output bitmap.
Due to our new bitmap storage optimization, we can't reuse the same
bitmap as input and output safely (since we modify the output directly).
This change updates ImageProcessing to appropriately create a distinct
output Bitmap Allocation and actually use it.

Change-Id: Iecf6c2d203bd1c370b8d0a9fb7e69b419d2eb69b
2012-12-06 15:03:21 -08:00
Jason Sams
131549dd7b am 98a09c64: am 43174b7d: am 718fb9f1: Fix sample code issues
* commit '98a09c64d52aa1166a09ab071049bc3536def1cd':
  Fix sample code issues
2012-11-30 13:26:03 -08:00
Jason Sams
718fb9f12e Fix sample code issues
Correct min SDK.
Correct file extension on mandelbrot

Change-Id: I508c22c382f1a930b27d8c5f4414cac3a990a332
2012-11-30 12:32:36 -08:00
Jason Sams
8150941098 Add single channel blur test.
Change-Id: Iec63132ab4d88290ae1bf0d71431d4fe6ec6dd25
2012-11-16 18:05:10 -08:00
Jason Sams
83e185c295 Update ImageProcessing test.
Add async filtering.

Change-Id: I4e32a9b1fe9221b09a7d1433b3da11a5e422d911
2012-11-09 17:34:14 -08:00
Tim Murray
57b35572cc Remove copyBitmap from ImageProcessing.
Change-Id: Ib9079fab3b3d3da429f32c4c6688e6c437eb8795
2012-10-17 15:51:48 -07:00
Jason Sams
10542ec336 Merge "Port ImageProcessing to Filterscript." into jb-mr1-dev 2012-10-12 19:01:38 -07:00
Stephen Hines
d3d6570df4 Port ImageProcessing to Filterscript.
This enables testing of the Filterscript front-end for llvm-rs-cc.

Bug: 7166741
Change-Id: I90bda9d2710c6652336a8c112b5654c5da3d14e4
2012-10-12 14:50:49 -07:00
Jason Sams
4b429417ba Fix crash in ImageProcessing blend test
The blend test would use a stale context
when running all tests.

bug 7327728

Change-Id: I5802b9b382d8893419efe86d33fdfeeb27729e31
2012-10-12 14:30:23 -07:00
Jason Sams
31864d76a3 Fix range on blur intrinsic.
The intrinsic fails when the radius was 0. A blur
of radius 0 is a nop and should be disallowed. Fix the
test to allow sub-pixel radius to be selected.

bug 7273437

Change-Id: I2805674e29d557615eb7ac65c7910d4dffa28b58
2012-10-02 15:21:11 -07:00
Jason Sams
1ebb7202b6 Lighten grain and make live preview gpu friendly.
Preview now does yuv->rgb using the intrinsic
script. Grain uses a smaller wrapped rand buffer
so it is not just rand test.

bug 7216044

Change-Id: If74eedc7d3cf264895133671edc546af9b1527f2
2012-09-28 18:17:47 -07:00
Tim Murray
0e3d40dfbd fix build break
Change-Id: I51603e7c645ce7aaa632e88bdc44578094785fdd
2012-09-26 17:09:00 -07:00
Tim Murray
74478f73b7 fix blend intrinsics, add tests
Bug: 7190126
Change-Id: If69213377282bf5b412508e7af974a1f8d440287
2012-09-26 16:29:08 -07:00
Jason Sams
761d3d0df7 Reduce test warmup time to avoid driving into thermal throttle.
bug 7216044

Change-Id: I72c83e31dc39a0a810d8a453903213bd428dbe29
2012-09-25 15:00:04 -07:00
Jean-Baptiste Queru
07e35aa80b Merge into jb-mr1-dev
Change-Id: Ic72c475635a0eb57a77d3bd621a219001af8baa5
2012-09-25 09:37:11 -07:00
Jason Sams
ae760511d8 Test FS getElementAt
bug 7190126

Change-Id: I1fbaa77af051cf44134f8bfe56339ce5d3b7edbb
2012-09-24 17:42:14 -07:00
Jason Sams
c4b95cfc7b Test image for 2 input tests.
bug 7216044

Change-Id: I79794c1b12f618d03b27b316126cab9b3e4c9c38
2012-09-24 12:54:46 -07:00
Jason Sams
ac4bd00c1f Change 5x5 convolve to better test impl.
bug 7216044

Change-Id: I7165606a3ebf96ea3f401ed14d46f5105ed75ce4
2012-09-23 16:32:32 -07:00
Jason Sams
ed0b4f961f Force destroy scripts in imageProcessing.
bug 7216044

Change-Id: I6292513c08e75269e79d2210de898ef28931c986
2012-09-23 10:59:35 -07:00
Jason Sams
82c8cdabc4 Merge "Add run all button to image processing test." into jb-mr1-dev 2012-09-21 18:13:16 -07:00
Jason Sams
b94d69a226 Add run all button to image processing test.
Change-Id: I11b4f803151ee7dc1e4b86f402196c1b856bd950
2012-09-21 17:42:13 -07:00
Tim Murray
0e64d892d6 Add Mandelbrot test to ImageProcessing.
Change-Id: I1d5478d58609394111410fbfd9f48b5018f385b1
2012-09-21 14:46:45 -07:00
Jason Sams
36fa5a42ba Fix aprox fs function names
bug b206696

Change-Id: I64c092c1f6b8d990783bf5d31db37e12a4dbdb82
2012-09-20 17:30:34 -07:00
Jason Sams
97e9ee2ea8 Cleanup blur test, remove deprecated functions.
Change-Id: I4136110692fdba8a644806fe8c92bfaacc930ca6
2012-09-20 01:07:35 -07:00
Jason Sams
08a81583c1 Add Kernel, Method, and field IDs
bug 7182873

Change-Id: I066a359bb04027e9376dac088560f042c496b10e
2012-09-18 12:32:10 -07:00
Jason Sams
80d819033d Unhide intrinsics and document API.
Change-Id: I0233245c68f9a08780213062e62cfea6cf909c13
2012-09-13 17:00:48 -07:00
Jason Sams
8a95803738 Fix bugs in grain where values could go out of bounds.
Change-Id: Ib2cc3177424cf24bc81b75786dfd9be30fea5378
2012-09-13 11:07:33 -07:00
Jason Sams
3a5b801176 LUT intrinsic and CrossProcess test.
5x5 convolve and test
Gauss blur and test


Change-Id: Ic2f5d583cbdc1793ec8c8e2beea783d4ec34a57f
2012-09-08 22:16:22 -07:00
Jason Sams
c1ccbf5231 Add greyscale intrinsic test.
Change-Id: I24c9b8769ab7fe2fed9ef17f7ff1063c60977c41
2012-09-06 23:54:05 -07:00
Jason Sams
8fd5853c1c Document ColorMatrix intrinsic and add helpers
Increase size of test image.
Add helpers for greyscale and yuv<>rgb conversions

Change-Id: I6cdd06ae23623b47f5034585ed5d385ff11348ac
2012-09-06 23:29:36 -07:00