Start ICS header cleanup and finish type matrix.

Change-Id: If65f96f08c958d330862c543d85dd9d4a0f90e06
This commit is contained in:
Jason Sams
2011-04-22 17:05:25 -07:00
committed by Stephen Hines
parent 466e3a22db
commit 6cc888e77e
17 changed files with 253 additions and 0 deletions

View File

@@ -16240,12 +16240,14 @@ package android.renderscript {
public class Byte2 {
ctor public Byte2();
ctor public Byte2(byte, byte);
field public byte x;
field public byte y;
}
public class Byte3 {
ctor public Byte3();
ctor public Byte3(byte, byte, byte);
field public byte x;
field public byte y;
field public byte z;
@@ -16253,12 +16255,37 @@ package android.renderscript {
public class Byte4 {
ctor public Byte4();
ctor public Byte4(byte, byte, byte, byte);
field public byte w;
field public byte x;
field public byte y;
field public byte z;
}
public class Double2 {
ctor public Double2();
ctor public Double2(double, double);
field public double x;
field public double y;
}
public class Double3 {
ctor public Double3();
ctor public Double3(double, double, double);
field public double x;
field public double y;
field public double z;
}
public class Double4 {
ctor public Double4();
ctor public Double4(double, double, double, double);
field public double w;
field public double x;
field public double y;
field public double z;
}
public class Element extends android.renderscript.BaseObj {
method public static android.renderscript.Element ALLOCATION(android.renderscript.RenderScript);
method public static android.renderscript.Element A_8(android.renderscript.RenderScript);
@@ -16422,12 +16449,14 @@ package android.renderscript {
public class Int2 {
ctor public Int2();
ctor public Int2(int, int);
field public int x;
field public int y;
}
public class Int3 {
ctor public Int3();
ctor public Int3(int, int, int);
field public int x;
field public int y;
field public int z;
@@ -16435,6 +16464,7 @@ package android.renderscript {
public class Int4 {
ctor public Int4();
ctor public Int4(int, int, int, int);
field public int w;
field public int x;
field public int y;
@@ -16443,12 +16473,14 @@ package android.renderscript {
public class Long2 {
ctor public Long2();
ctor public Long2(long, long);
field public long x;
field public long y;
}
public class Long3 {
ctor public Long3();
ctor public Long3(long, long, long);
field public long x;
field public long y;
field public long z;
@@ -16456,6 +16488,7 @@ package android.renderscript {
public class Long4 {
ctor public Long4();
ctor public Long4(long, long, long, long);
field public long w;
field public long x;
field public long y;
@@ -16852,12 +16885,14 @@ package android.renderscript {
public class Short2 {
ctor public Short2();
ctor public Short2(short, short);
field public short x;
field public short y;
}
public class Short3 {
ctor public Short3();
ctor public Short3(short, short, short);
field public short x;
field public short y;
field public short z;
@@ -16865,6 +16900,7 @@ package android.renderscript {
public class Short4 {
ctor public Short4();
ctor public Short4(short, short, short, short);
field public short w;
field public short x;
field public short y;

View File

@@ -28,6 +28,11 @@ public class Byte2 {
public Byte2() {
}
public Byte2(byte initX, byte initY) {
x = initX;
y = initY;
}
public byte x;
public byte y;
}

View File

@@ -28,6 +28,12 @@ public class Byte3 {
public Byte3() {
}
public Byte3(byte initX, byte initY, byte initZ) {
x = initX;
y = initY;
z = initZ;
}
public byte x;
public byte y;
public byte z;

View File

@@ -28,6 +28,13 @@ public class Byte4 {
public Byte4() {
}
public Byte4(byte initX, byte initY, byte initZ, byte initW) {
x = initX;
y = initY;
z = initZ;
w = initW;
}
public byte x;
public byte y;
public byte z;

View File

@@ -0,0 +1,43 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.renderscript;
import java.lang.Math;
import android.util.Log;
/**
* Class for exposing the native Renderscript double2 type back
* to the Android system.
*
**/
public class Double2 {
public Double2() {
}
public Double2(double initX, double initY) {
x = initX;
y = initY;
}
public double x;
public double y;
}

View File

@@ -0,0 +1,45 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.renderscript;
import java.lang.Math;
import android.util.Log;
/**
* Class for exposing the native Renderscript double3 type back
* to the Android system.
*
**/
public class Double3 {
public Double3() {
}
public Double3(double initX, double initY, double initZ) {
x = initX;
y = initY;
z = initZ;
}
public double x;
public double y;
public double z;
}

View File

@@ -0,0 +1,46 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.renderscript;
import java.lang.Math;
import android.util.Log;
/**
* Class for exposing the native Renderscript double4 type back
* to the Android system.
*
**/
public class Double4 {
public Double4() {
}
public Double4(double initX, double initY, double initZ, double initW) {
x = initX;
y = initY;
z = initZ;
w = initW;
}
public double x;
public double y;
public double z;
public double w;
}

View File

@@ -28,6 +28,11 @@ public class Int2 {
public Int2() {
}
public Int2(int initX, int initY) {
x = initX;
y = initY;
}
public int x;
public int y;
}

View File

@@ -28,6 +28,12 @@ public class Int3 {
public Int3() {
}
public Int3(int initX, int initY, int initZ) {
x = initX;
y = initY;
z = initZ;
}
public int x;
public int y;
public int z;

View File

@@ -28,6 +28,13 @@ public class Int4 {
public Int4() {
}
public Int4(int initX, int initY, int initZ, int initW) {
x = initX;
y = initY;
z = initZ;
w = initW;
}
public int x;
public int y;
public int z;

View File

@@ -27,6 +27,11 @@ public class Long2 {
public Long2() {
}
public Long2(long initX, long initY) {
x = initX;
y = initY;
}
public long x;
public long y;
}

View File

@@ -27,6 +27,12 @@ public class Long3 {
public Long3() {
}
public Long3(long initX, long initY, long initZ) {
x = initX;
y = initY;
z = initZ;
}
public long x;
public long y;
public long z;

View File

@@ -27,6 +27,13 @@ public class Long4 {
public Long4() {
}
public Long4(long initX, long initY, long initZ, long initW) {
x = initX;
y = initY;
z = initZ;
w = initW;
}
public long x;
public long y;
public long z;

View File

@@ -28,6 +28,11 @@ public class Short2 {
public Short2() {
}
public Short2(short initX, short initY) {
x = initX;
y = initY;
}
public short x;
public short y;
}

View File

@@ -28,6 +28,12 @@ public class Short3 {
public Short3() {
}
public Short3(short initX, short initY, short initZ) {
x = initX;
y = initY;
z = initZ;
}
public short x;
public short y;
public short z;

View File

@@ -28,6 +28,13 @@ public class Short4 {
public Short4() {
}
public Short4(short initX, short initY, short initZ, short initW) {
x = initX;
y = initY;
z = initZ;
w = initW;
}
public short x;
public short y;
public short z;

View File

@@ -36,6 +36,10 @@ typedef float float2 __attribute__((ext_vector_type(2)));
typedef float float3 __attribute__((ext_vector_type(3)));
typedef float float4 __attribute__((ext_vector_type(4)));
typedef double double2 __attribute__((ext_vector_type(2)));
typedef double double3 __attribute__((ext_vector_type(3)));
typedef double double4 __attribute__((ext_vector_type(4)));
typedef uchar uchar2 __attribute__((ext_vector_type(2)));
typedef uchar uchar3 __attribute__((ext_vector_type(3)));
typedef uchar uchar4 __attribute__((ext_vector_type(4)));
@@ -48,6 +52,10 @@ typedef uint uint2 __attribute__((ext_vector_type(2)));
typedef uint uint3 __attribute__((ext_vector_type(3)));
typedef uint uint4 __attribute__((ext_vector_type(4)));
typedef ulong ulong2 __attribute__((ext_vector_type(2)));
typedef ulong ulong3 __attribute__((ext_vector_type(3)));
typedef ulong ulong4 __attribute__((ext_vector_type(4)));
typedef char char2 __attribute__((ext_vector_type(2)));
typedef char char3 __attribute__((ext_vector_type(3)));
typedef char char4 __attribute__((ext_vector_type(4)));
@@ -60,6 +68,9 @@ typedef int int2 __attribute__((ext_vector_type(2)));
typedef int int3 __attribute__((ext_vector_type(3)));
typedef int int4 __attribute__((ext_vector_type(4)));
typedef long long2 __attribute__((ext_vector_type(2)));
typedef long long3 __attribute__((ext_vector_type(3)));
typedef long long4 __attribute__((ext_vector_type(4)));
typedef struct {
float m[16];