472 Commits

Author SHA1 Message Date
Ying Wang
1622981ca4 Fix sdk build.
Change-Id: I11471213826b212b99c0ddba89a7f4cef110fcc4
2013-11-26 15:47:43 -08:00
Jason Sams
3042d2692f Generic object based data copy.
This change consolidates the copy paths to Object based.
The runtime now uses reflection to identify the type of
array present.  This adds support for long/double and reduces
the amount of code present.  We could also support arrays of vectors
or objects in the future with this mechanism.


Change-Id: I2297c1c01fbe6a64c375d6368f25d7db781ea788
2013-11-26 12:29:46 -08:00
Tim Murray
8437967733 Merge "Convert Java/JNI to 64-bit, part 2." 2013-11-20 22:46:47 +00:00
John Spurlock
5d95899881 Merge "Remove unused imports from frameworks/base." 2013-11-20 21:47:52 +00:00
Tim Murray
460a04971c Convert Java/JNI to 64-bit, part 2.
This changes BaseObj to support 64-bit IDs. There are a few caveats:

1. Since it is deprecated, RSG will not support 64-bit.
2. Currently, methods that pass arrays of IDs to the driver are not supported in 64-bit. This will be fixed in a later CL.

bug 11332320

Change-Id: If0dbecc8b285e260f767e441e05088b6a1b749a2
2013-11-20 10:18:04 -08:00
John Spurlock
6090995951 Remove unused imports from frameworks/base.
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-11-20 11:31:47 -05:00
Tim Murray
eff663f391 Convert Java/JNI to 64-bit, part 1.
This converts context and device storage to use long instead of int.

bug 11332320

Change-Id: If93a5d78385d3004d5e709762b78bd1d3538088d
2013-11-19 14:21:58 -08:00
Jason Sams
21659ac4c8 Add long/double read support.
Change-Id: I1957f7ac18262a3004a4adcb7c31055212e483c2
2013-11-11 23:22:53 +00:00
Jason Sams
e729a9400f Use Object + type in place of specific array
Changed to avoid the explosion of entry points in the JNI layer.

Change-Id: I7d6cc565c8853b06560eb891fdd5e8acf05c9779
2013-11-06 11:22:02 -08:00
Jason Sams
ec44e5dc2f Utility API for creating types.
Change-Id: I3263cb4440ef3a60cd418f0559b8c5638a9b8bf3
2013-10-09 17:15:44 -07:00
Jason Sams
390ec00c66 Remove old hidden API.
This was never shipped and long since replaced by ioReceive().

Change-Id: Ieba7fd4305c2c561cc36154c57414783e4bf502b
2013-10-09 17:15:43 -07:00
Jason Sams
3a1b8e4116 Remove hidden API setSurfaceTexture.
Change-Id: Ib6a3c5b84550932168f314375e74059507fc01ae
2013-09-24 15:18:52 -07:00
Stephen Hines
e3d0f02282 Merge "Don't set Allocation mSize when we have no Type." into klp-dev 2013-09-10 05:23:15 +00:00
Stephen Hines
88990da58d Don't set Allocation mSize when we have no Type.
Bug: 10667740

A3D creates Allocations before knowing the underlying Type (and thus size).
Moving the mSize calculation to be conditional for concrete Allocations
eliminates the bug. In the future, we could let A3D dynamically update the
Allocation size if it is necessary to improve heap behavior.

Change-Id: I520246806b6ead0387a1a41372dade1a6e7c2271
2013-09-09 17:56:07 -07:00
Tim Murray
932e78e990 Add YUV element convenience function.
Change-Id: Ie67dfba6a4c4f1913875ad9817c53e45d56809ae
2013-09-04 16:15:45 -07:00
Jason Sams
a49e89d228 Cleanup API typo
bug 10548782

Change-Id: I3654b7d1f8ea10eb51006804248cc2a7d20eabb0
2013-08-29 17:00:37 -07:00
Jason Sams
6b11598048 Merge "Unhide USAGE_IO_INPUT functions" into klp-dev 2013-08-29 21:24:28 +00:00
Jason Sams
42ef238208 Unhide USAGE_IO_INPUT functions
Change-Id: I9c1a7e5d65adee133b99b9a94729ab0b3d5a097f
2013-08-29 13:30:59 -07:00
Tim Murray
c264e04400 Merge "Add garbage collection hooks" into klp-dev 2013-08-23 23:40:48 +00:00
Tim Murray
2f2472c42b Add garbage collection hooks
bug 10428172

Change-Id: I6365aa58bbc99aa134e1f261a5819e07a7d70fb0
2013-08-23 13:35:19 -07:00
Eino-Ville Talvala
ccadaf1eb4 Renderscript: Allow YUV_420_888 as a YUV type.
Change-Id: I1ed731103a49a814f9a049ecd01be98261b6d06b
2013-08-14 10:40:30 -07:00
Jason Sams
d979208974 Relax restriction on Colormatrix and add Add step.
Change-Id: Iccb519bb40f58f02346b5c0a10c1378cb853e3f8
2013-07-29 22:09:08 +00:00
Scott Main
a06cba19c9 am 8d9a4bd1: am 174dd066: Merge "remove link to renderscript support library" into jb-mr2-ub-dev
* commit '8d9a4bd1eb09cc795bf96c4f3a2824f9642c70e4':
  remove link to renderscript support library
2013-07-24 16:26:43 -07:00
Scott Main
d2d43b9647 remove link to renderscript support library
Change-Id: If8e693239b92058c0a2928e0811870bec3a150fe
2013-07-23 21:08:30 -07:00
Jason Sams
d93fdb77d8 Add 2,3 vectors to allowed intrinsic list.
Change-Id: Iafd90ef4337076ed9d1e335c16272a0517f846b3
2013-06-27 15:42:30 -07:00
Jason Sams
9274384ff0 Fix docs
Change-Id: Ie6563f633481951d97f319aefd282b15c049e281
2013-06-18 18:52:42 -07:00
Jason Sams
1a3edb00c5 Update histogram docs.
Change-Id: I6cfedb5cac459befb083f352f43ed33f4418145a
2013-06-18 18:23:37 -07:00
Jason Sams
048c978ae5 Allow single channel and float convolve.
Change-Id: If448ea2ae38de2f8b95fc884ea0dbf8222964012
2013-06-18 17:39:10 -07:00
Jason Sams
8ace2acbf1 Add support for vec2 histogram
Change-Id: I30ab758a44485a8ea30043c4cd782c3560074c58
2013-06-18 17:34:34 -07:00
Jason Sams
01e9f90576 Add histogram intrinsic
Change-Id: I67bcaaef033d8770047923e8243e739010238539
2013-06-18 11:53:03 -07:00
Tim Murray
3f4579fbe4 am 379641a7: am ea45ab6f: Merge "Improve RS documentation." into jb-mr2-dev
* commit '379641a7ef09e1d7fab34d3027c5809fb2bc21ad':
  Improve RS documentation.
2013-06-05 13:53:28 -07:00
Tim Murray
c11e25c4e6 Improve RS documentation.
bug 8570568
Change-Id: I465fcc8ec3e2cc892dc3cb0067aacf5224338102
2013-06-05 11:28:45 -07:00
Jason Sams
1b1c39d773 am d19068a7: am 413adc92: Merge "Fix free after use with createFromBitmapResource" into jb-mr2-dev
* commit 'd19068a7d28d129f5a1a1be478e972b40cea04eb':
  Fix free after use with createFromBitmapResource
2013-06-01 09:51:46 -07:00
Jason Sams
3ece2f3268 Fix free after use with createFromBitmapResource
Bug 9227350

Change-Id: Iee7610a9bf3d9d1baf14b968aed2a7d0876d2af7
2013-05-31 14:01:04 -07:00
Tim Murray
6d7a53cbdd Add support to Java for RS tracing.
Change-Id: I95c365345fea3a1e132a7eb2270d541be0745d02
2013-05-24 13:36:32 -07:00
Tim Murray
119143de98 am 9917c1e2: am 17502c4b: Merge "Remove extraneous logging." into jb-mr2-dev
* commit '9917c1e2e9ba8a0bd4f29ce05844cd539c3a41b9':
  Remove extraneous logging.
2013-05-10 17:08:42 -07:00
Tim Murray
da67debe22 Remove extraneous logging.
bug 8888887

Change-Id: I68d01c2ba649257be1577d53f330ad28d3b57011
2013-05-09 14:45:43 -07:00
Stephen Hines
0f59d6d34e am 4a84af89: am b322f994: Merge "Add new error code for Debug Context work." into jb-mr2-dev
* commit '4a84af896c830d6ef613d1baa607d472cf865073':
  Add new error code for Debug Context work.
2013-04-20 21:37:10 -07:00
Stephen Hines
b322f99476 Merge "Add new error code for Debug Context work." into jb-mr2-dev 2013-04-20 04:48:18 +00:00
Jason Sams
6a341fc793 am dd240d9a: am 0935f258: Merge "Updating API based on feedback" into jb-mr2-dev
* commit 'dd240d9a30578930bbf63b6bd9998e940dd16160':
  Updating API based on feedback
2013-04-19 13:17:10 -07:00
Jason Sams
f64cca905c Updating API based on feedback
bug 8656887

This hides the methods used to support Camera
Fixes the oversight in LaunchControl
Documents some missing functions




Change-Id: I5b19b65dd5ddf9917100192c180bb63d89c80679
2013-04-19 12:56:37 -07:00
Stephen Hines
42028a8756 Add new error code for Debug Context work.
Bug: 7343201

This error type is less severe when running under the debug context,
allowing developers to use RSErrorHandler to respond to errors like
out-of-bounds native accesses.

Change-Id: I79c87d1956c94833546f0f638ffa1aafecae49cd
2013-04-17 19:22:01 -07:00
Jason Sams
e8ed1eeb3f am 4b87c54b: am 097ed01a: Merge "Revert GC thread changes" into jb-mr2-dev
* commit '4b87c54b06ed6834785ea06e066bb1e988a76973':
  Revert GC thread changes
2013-04-15 12:47:30 -07:00
Jason Sams
f38c6ab76a am c4294ed2: am 330a9fe3: Merge "Unhide new RS APIs." into jb-mr2-dev
* commit 'c4294ed2f1de5c89b5e283942e0d5f8cd8822bfb':
  Unhide new RS APIs.
2013-04-14 19:28:29 -07:00
Jason Sams
9bf189228f Revert GC thread changes
This is not quite a straight revery, some manual edits were necessary.

The original CL didn't undergo sufficient design review or testing.  Revert until the regressions can be sorted out.

Bug 8585185


This reverts commit 6dacf8355a0692b52c49f603f43317772cb36175

This reverts commit f8c033db1edf36a0ab09568c3142054f0be2d1a1

Change-Id: Ie7215bdf881332e822603547e92f810f595077fc
2013-04-14 02:56:03 +00:00
Jason Sams
02d56d90e0 Unhide new RS APIs.
This exposes the fast path handling of YUV data.

bug 8566866

Change-Id: Iaa3700100db61dd51d16d80ea8ae22f2dcc41bb0
2013-04-14 02:51:57 +00:00
Tim Murray
d7fec6edad am f151a541: am d6b8a035: Merge "Add support for synchronous get()." into jb-mr2-dev
* commit 'f151a5411eb6afd104daac10b3e43f5e3a60c61d':
  Add support for synchronous get().
2013-04-12 13:11:45 -07:00
Tim Murray
d6b8a03533 Merge "Add support for synchronous get()." into jb-mr2-dev 2013-04-12 20:03:52 +00:00
Tim Murray
e1f8089a94 am 5c18ff0f: am 869d2735: Merge "Fix issues with GC thread." into jb-mr2-dev
* commit '5c18ff0f2b9eab8481acfe13603e253e9c16fb32':
  Fix issues with GC thread.
2013-04-12 00:10:47 -07:00
Tim Murray
869d273503 Merge "Fix issues with GC thread." into jb-mr2-dev 2013-04-12 07:04:08 +00:00