Lines Matching refs:dk
274 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument
290 mKind = dk; in Element()
332 …const Element> Element::createPixel(const android::RSC::sp<RS>& rs, RsDataType dt, RsDataKind dk) { in createPixel() argument
333 if (!(dk == RS_KIND_PIXEL_L || in createPixel()
334 dk == RS_KIND_PIXEL_A || in createPixel()
335 dk == RS_KIND_PIXEL_LA || in createPixel()
336 dk == RS_KIND_PIXEL_RGB || in createPixel()
337 dk == RS_KIND_PIXEL_RGBA || in createPixel()
338 dk == RS_KIND_PIXEL_DEPTH || in createPixel()
339 dk == RS_KIND_PIXEL_YUV)) { 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()
369 switch (dk) { 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()