Lines Matching refs:dt
1077 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
1079 if ((dt != DataType.UNSIGNED_5_6_5) &&
1080 (dt != DataType.UNSIGNED_4_4_4_4) &&
1081 (dt != DataType.UNSIGNED_5_5_5_1)) {
1083 mSize = dt.mSize * 4;
1085 mSize = dt.mSize * size;
1088 mSize = dt.mSize;
1090 mType = dt;
1112 for (DataType dt: DataType.values()) {
1113 if(dt.mID == dataBuffer[0]){
1114 mType = dt;
1148 * @param dt The DataType for the new element.
1151 static Element createUser(RenderScript rs, DataType dt) {
1155 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize);
1156 return new Element(id, rs, dt, dk, norm, vecSize);
1166 * @param dt The DataType for the new Element.
1172 public static Element createVector(RenderScript rs, DataType dt, int size) {
1177 switch (dt) {
1193 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
1194 return new Element(id, rs, dt, dk, norm, size);
1210 * @param dt The DataType for the new element.
1216 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
1226 if (!(dt == DataType.UNSIGNED_8 ||
1227 dt == DataType.UNSIGNED_16 ||
1228 dt == DataType.UNSIGNED_5_6_5 ||
1229 dt == DataType.UNSIGNED_4_4_4_4 ||
1230 dt == DataType.UNSIGNED_5_5_5_1)) {
1233 if (dt == DataType.UNSIGNED_5_6_5 && dk != DataKind.PIXEL_RGB) {
1236 if (dt == DataType.UNSIGNED_5_5_5_1 && dk != DataKind.PIXEL_RGBA) {
1239 if (dt == DataType.UNSIGNED_4_4_4_4 && dk != DataKind.PIXEL_RGBA) {
1242 if (dt == DataType.UNSIGNED_16 &&
1264 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
1265 return new Element(id, rs, dt, dk, norm, size);