• Home
  • Raw
  • Download

Lines Matching refs:dt

190 static uint32_t GetSizeInBytesForType(RsDataType dt) {  in GetSizeInBytesForType()  argument
191 switch(dt) { in GetSizeInBytesForType()
239 ALOGE("Missing type %i", dt); in GetSizeInBytesForType()
244 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument
247 uint32_t tsize = GetSizeInBytesForType(dt); in Element()
248 if ((dt != RS_TYPE_UNSIGNED_5_6_5) && in Element()
249 (dt != RS_TYPE_UNSIGNED_4_4_4_4) && in Element()
250 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) { in Element()
259 mType = dt; in Element()
273 android::RSC::sp<const Element> Element::createUser(android::RSC::sp<RS> rs, RsDataType dt) { in createUser() argument
274 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, 1); in createUser()
275 return new Element(id, rs, dt, RS_KIND_USER, false, 1); in createUser()
278 android::RSC::sp<const Element> Element::createVector(android::RSC::sp<RS> rs, RsDataType dt, uint3… in createVector() argument
283 void *id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, size); in createVector()
284 return new Element(id, rs, dt, RS_KIND_USER, false, size); in createVector()
287 android::RSC::sp<const Element> Element::createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsData… in createPixel() argument
297 if (!(dt == RS_TYPE_UNSIGNED_8 || in createPixel()
298 dt == RS_TYPE_UNSIGNED_16 || in createPixel()
299 dt == RS_TYPE_UNSIGNED_5_6_5 || in createPixel()
300 dt == RS_TYPE_UNSIGNED_4_4_4_4 || in createPixel()
301 dt == RS_TYPE_UNSIGNED_5_5_5_1)) { in createPixel()
305 if (dt == RS_TYPE_UNSIGNED_5_6_5 && dk != RS_KIND_PIXEL_RGB) { in createPixel()
309 if (dt == RS_TYPE_UNSIGNED_5_5_5_1 && dk != RS_KIND_PIXEL_RGBA) { in createPixel()
313 if (dt == RS_TYPE_UNSIGNED_4_4_4_4 && dk != RS_KIND_PIXEL_RGBA) { in createPixel()
317 if (dt == RS_TYPE_UNSIGNED_16 && dk != RS_KIND_PIXEL_DEPTH) { in createPixel()
340 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, dk, true, size); in createPixel()
341 return new Element(id, rs, dt, dk, true, size); in createPixel()