/frameworks/rs/tests/cpp_api/cppbasic-getpointer/ |
H A D | compute.cpp | 8 const uint32_t DIMX = 128; 9 const uint32_t DIMY = 128; 41 uint32_t *input = (uint32_t*)ain->getPointer(&inputStride); 42 uint32_t *output = (uint32_t*)aout->getPointer(&outputStride); 49 inputStride /= sizeof(uint32_t); 50 outputStride /= sizeof(uint32_t);
|
H A D | mono.rs | 21 uint32_t RS_KERNEL copyAndNot(uint32_t in) {
|
/frameworks/rs/tests/cpp_api/cppbasic-shared/ |
H A D | compute.cpp | 56 uint32_t *buf = new uint32_t[t->getCount()]; 57 for (uint32_t ct=0; ct < t->getCount(); ct++) { 75 static const uint32_t xDim = 7; 76 static const uint32_t yDim = 7; 86 for (uint32_t ct=0; ct < t->getCount(); ct++) {
|
H A D | mono.rs | 74 int RS_KERNEL kern1(int i, uint32_t x, uint32_t y) { 78 void RS_KERNEL verify_kern1(int i, uint32_t x, uint32_t y) {
|
/frameworks/rs/tests/cpp_api/cppf16/ |
H A D | compute.cpp | 9 static const uint32_t dimX = 7, dimY = 5, dimZ = 3; 11 void testAllocationCreation(const sp<RS>& rs, const sp<const Element>& e, uint32_t nDims) { 39 for (uint32_t nDims = 1; nDims <= 3; nDims ++) {
|
/frameworks/rs/tests/cpp_api/cppstrided/ |
H A D | compute.cpp | 9 uint32_t numElems = 1024; 10 uint32_t stride = 1025; 18 stride = (uint32_t) tempStride; 40 uint32_t* buf = (uint32_t*) malloc(stride * numElems * sizeof(uint32_t)); 46 for (uint32_t i = 0; i < numElems; i++) { 47 for (uint32_t ct=0; ct < numElems; ct++) { 48 *(buf+(stride*i)+ct) = (uint32_t)ct + (i * numElems); 52 ain->copy2DStridedFrom(buf, stride * sizeof(uint32_t)); [all...] |
H A D | multiply.rs | 21 uint32_t RS_KERNEL multiply(uint32_t in) {
|
/frameworks/rs/tests/cpp_api/latency/ |
H A D | latency.cpp | 53 uint32_t flags = 0; 68 uint32_t *buf = new uint32_t[numElems];
|
H A D | latency.rs | 21 void root(const uint32_t *v_in, uint32_t *v_out) {
|
/frameworks/rs/tests/cpp_api/typecheck/ |
H A D | typecheck.cpp | 20 const static uint32_t x = 7;
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
H A D | canny.rs | 30 uchar4 __attribute__((kernel)) toRGB(uint32_t x, uint32_t y) { 39 uchar4 __attribute__((kernel)) toWhiteRGB(uint32_t x, uint32_t y) { 46 uchar4 __attribute__((kernel)) toRGBfuzz(uint32_t x, uint32_t y) { 55 uchar4 __attribute__((kernel)) toWhiteRGBfuzz(uint32_t x, uint32_t y) { 63 uchar4 __attribute__((kernel)) toRGBCartoon(uchar4 in, uint32_t x, uint32_t [all...] |
/frameworks/rs/tests/java_api/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | launchtest.rs | 23 void __attribute__((kernel)) k_x(uchar in, uint32_t x) { 29 uchar __attribute__((kernel)) k_xy(uint32_t x, uint32_t y) {
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | find_region.rs | 140 float __attribute__((kernel)) bordercorrelation(uint32_t x, uint32_t y) {
|
H A D | healing.rs | 73 float3 __attribute__((kernel)) laplacian( uint32_t x, uint32_t y) { 91 float3 __attribute__((kernel)) copyMasked(uchar in, uint32_t x, uint32_t y) { 100 uchar4 __attribute__((kernel)) alphaMask(uchar4 in, uint32_t x, uint32_t y) { 108 float3 __attribute__((kernel)) solve1(uchar in, uint32_t x, uint32_t y) { 122 float3 __attribute__((kernel)) solve2(uchar in, uint32_t x, uint32_t [all...] |
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | artistic1.rs | 41 uchar4 RS_KERNEL process(uchar4 in, uint32_t x, uint32_t y) {
|
H A D | bwfilter.rs | 24 void prepareBwFilter(uint32_t rw, uint32_t gw, uint32_t bw) {
|
H A D | convolve3x3.rs | 26 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) { 27 uint32_t x1 = min((int32_t)x+1, gWidth-1); 28 uint32_t x2 = max((int32_t)x-1, 0); 29 uint32_t y1 = min((int32_t)y+1, gHeight-1); 30 uint32_t y2 = max((int32_t)y-1, 0);
|
H A D | convolve5x5.rs | 26 uchar4 RS_KERNEL root(uint32_t x, uint32_t y) { 27 uint32_t x0 = max((int32_t)x-2, 0); 28 uint32_t x1 = max((int32_t)x-1, 0); 29 uint32_t x2 = x; 30 uint32_t x3 = min((int32_t)x+1, gWidth-1); 31 uint32_t x4 = min((int32_t)x+2, gWidth-1); 33 uint32_t y0 = max((int32_t)y-2, 0); 34 uint32_t y1 = max((int32_t)y-1, 0); 35 uint32_t y [all...] |
H A D | fisheye.rsh | 23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) { 45 uchar4 __attribute__((kernel)) root(uint32_t x, uint32_t y) {
|
H A D | fisheye_approx.rsh | 23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) { 45 uchar4 __attribute__((kernel)) root(uint32_t x, uint32_t y) {
|
H A D | grain.rs | 44 uchar RS_KERNEL blend9(uint32_t x, uint32_t y) { 45 uint32_t x1 = (x-1) & gWMask; 46 uint32_t x2 = (x+1) & gWMask; 47 uint32_t y1 = (y-1) & gHMask; 48 uint32_t y2 = (y+1) & gHMask; 78 uchar4 RS_KERNEL root(uchar4 in, uint32_t x, uint32_t y) {
|
H A D | mirror.rs | 24 uchar4 RS_KERNEL mirror(uint32_t x, uint32_t y) { 25 uint32_t x0 = gWidth-x-1;
|
H A D | resize.rs | 26 uchar4 __attribute__((kernel)) nearest(uint32_t x, uint32_t y) { 29 uint32_t ix = xf; 30 uint32_t iy = yf; 43 uchar4 __attribute__((kernel)) bicubic(uint32_t x, uint32_t y) { 54 uint32_t xs0 = (uint32_t) max(0, startx + 0); 55 uint32_t xs1 = (uint32_t) ma [all...] |
H A D | threshold.rs | 77 uchar4 RS_KERNEL vert(uint32_t x, uint32_t y) { 99 float4 RS_KERNEL horz(uint32_t x, uint32_t y) {
|
H A D | vignette.rsh | 20 void init_vignette(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, 47 uchar4 __attribute__((kernel)) root(uchar4 in, uint32_t x, uint32_t y) {
|