• Home
  • Raw
  • Download

Lines Matching refs:dt

220 static uint32_t GetSizeInBytesForType(RsDataType dt) {  in GetSizeInBytesForType()  argument
221 switch(dt) { in GetSizeInBytesForType()
269 ALOGE("Missing type %i", dt); in GetSizeInBytesForType()
274 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument
277 uint32_t tsize = GetSizeInBytesForType(dt); in Element()
278 if ((dt != RS_TYPE_UNSIGNED_5_6_5) && in Element()
279 (dt != RS_TYPE_UNSIGNED_4_4_4_4) && in Element()
280 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) { in Element()
289 mType = dt; in Element()
318 android::RSC::sp<const Element> Element::createUser(const android::RSC::sp<RS>& rs, RsDataType dt) { in createUser() argument
319 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, 1); in createUser()
320 return new Element(id, rs, dt, RS_KIND_USER, false, 1); in createUser()
323 android::RSC::sp<const Element> Element::createVector(const android::RSC::sp<RS>& rs, RsDataType dt in createVector() argument
328 void *id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, size); in createVector()
329 return new Element(id, rs, dt, RS_KIND_USER, false, size); in createVector()
332 android::RSC::sp<const Element> Element::createPixel(const android::RSC::sp<RS>& rs, RsDataType dt,… in createPixel() argument
343 if (!(dt == RS_TYPE_UNSIGNED_8 || in createPixel()
344 dt == RS_TYPE_UNSIGNED_16 || in createPixel()
345 dt == RS_TYPE_UNSIGNED_5_6_5 || in createPixel()
346 dt == RS_TYPE_UNSIGNED_4_4_4_4 || in createPixel()
347 dt == RS_TYPE_UNSIGNED_5_5_5_1)) { in createPixel()
351 if (dt == RS_TYPE_UNSIGNED_5_6_5 && dk != RS_KIND_PIXEL_RGB) { in createPixel()
355 if (dt == RS_TYPE_UNSIGNED_5_5_5_1 && dk != RS_KIND_PIXEL_RGBA) { in createPixel()
359 if (dt == RS_TYPE_UNSIGNED_4_4_4_4 && dk != RS_KIND_PIXEL_RGBA) { in createPixel()
363 if (dt == RS_TYPE_UNSIGNED_16 && dk != RS_KIND_PIXEL_DEPTH) { in createPixel()
386 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, dk, true, size); in createPixel()
387 return new Element(id, rs, dt, dk, true, size); in createPixel()