Lines Matching refs:dt
172 static uint32_t GetSizeInBytesForType(RsDataType dt) { in GetSizeInBytesForType() argument
173 switch(dt) { in GetSizeInBytesForType()
221 ALOGE("Missing type %i", dt); in GetSizeInBytesForType()
226 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument
229 uint32_t tsize = GetSizeInBytesForType(dt); in Element()
230 if ((dt != RS_TYPE_UNSIGNED_5_6_5) && in Element()
231 (dt != RS_TYPE_UNSIGNED_4_4_4_4) && in Element()
232 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) { in Element()
241 mType = dt; in Element()
298 sp<const Element> Element::createUser(RenderScript *rs, RsDataType dt) { in createUser() argument
299 void * id = rsElementCreate(rs->mContext, dt, RS_KIND_USER, false, 1); in createUser()
300 return new Element(id, rs, dt, RS_KIND_USER, false, 1); in createUser()
303 sp<const Element> Element::createVector(RenderScript *rs, RsDataType dt, uint32_t size) { in createVector() argument
307 void *id = rsElementCreate(rs->mContext, dt, RS_KIND_USER, false, size); in createVector()
308 return new Element(id, rs, dt, RS_KIND_USER, false, size); in createVector()
311 sp<const Element> Element::createPixel(RenderScript *rs, RsDataType dt, RsDataKind dk) { in createPixel() argument
320 if (!(dt == RS_TYPE_UNSIGNED_8 || in createPixel()
321 dt == RS_TYPE_UNSIGNED_16 || in createPixel()
322 dt == RS_TYPE_UNSIGNED_5_6_5 || in createPixel()
323 dt == RS_TYPE_UNSIGNED_4_4_4_4 || in createPixel()
324 dt == RS_TYPE_UNSIGNED_5_5_5_1)) { in createPixel()
327 if (dt == RS_TYPE_UNSIGNED_5_6_5 && dk != RS_KIND_PIXEL_RGB) { in createPixel()
330 if (dt == RS_TYPE_UNSIGNED_5_5_5_1 && dk != RS_KIND_PIXEL_RGBA) { in createPixel()
333 if (dt == RS_TYPE_UNSIGNED_4_4_4_4 && dk != RS_KIND_PIXEL_RGBA) { in createPixel()
336 if (dt == RS_TYPE_UNSIGNED_16 && dk != RS_KIND_PIXEL_DEPTH) { in createPixel()
358 void * id = rsElementCreate(rs->mContext, dt, dk, true, size); in createPixel()
359 return new Element(id, rs, dt, dk, true, size); in createPixel()