Lines Matching refs:dk
226 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument
242 mKind = dk; in Element()
311 sp<const Element> Element::createPixel(RenderScript *rs, RsDataType dt, RsDataKind dk) { in createPixel() argument
312 if (!(dk == RS_KIND_PIXEL_L || in createPixel()
313 dk == RS_KIND_PIXEL_A || in createPixel()
314 dk == RS_KIND_PIXEL_LA || in createPixel()
315 dk == RS_KIND_PIXEL_RGB || in createPixel()
316 dk == RS_KIND_PIXEL_RGBA || in createPixel()
317 dk == RS_KIND_PIXEL_DEPTH)) { 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()
341 switch (dk) { 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()