Lines Matching refs:dk
223 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) :
239 mKind = dk;
265 sp<const Element> Element::createPixel(sp<RS> rs, RsDataType dt, RsDataKind dk) {
266 if (!(dk == RS_KIND_PIXEL_L ||
267 dk == RS_KIND_PIXEL_A ||
268 dk == RS_KIND_PIXEL_LA ||
269 dk == RS_KIND_PIXEL_RGB ||
270 dk == RS_KIND_PIXEL_RGBA ||
271 dk == RS_KIND_PIXEL_DEPTH)) {
281 if (dt == RS_TYPE_UNSIGNED_5_6_5 && dk != RS_KIND_PIXEL_RGB) {
284 if (dt == RS_TYPE_UNSIGNED_5_5_5_1 && dk != RS_KIND_PIXEL_RGBA) {
287 if (dt == RS_TYPE_UNSIGNED_4_4_4_4 && dk != RS_KIND_PIXEL_RGBA) {
290 if (dt == RS_TYPE_UNSIGNED_16 && dk != RS_KIND_PIXEL_DEPTH) {
295 switch (dk) {
312 void * id = rsElementCreate(rs->getContext(), dt, dk, true, size);
313 return new Element(id, rs, dt, dk, true, size);