[go: nahoru, domu]

Lines Matching refs:dt

221 static uint32_t GetSizeInBytesForType(RsDataType dt) {
222 switch(dt) {
270 ALOGE("Missing type %i", dt);
275 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) :
278 uint32_t tsize = GetSizeInBytesForType(dt);
279 if ((dt != RS_TYPE_UNSIGNED_5_6_5) &&
280 (dt != RS_TYPE_UNSIGNED_4_4_4_4) &&
281 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) {
290 mType = dt;
319 android::RSC::sp<const Element> Element::createUser(android::RSC::sp<RS> rs, RsDataType dt) {
320 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, 1);
321 return new Element(id, rs, dt, RS_KIND_USER, false, 1);
324 android::RSC::sp<const Element> Element::createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) {
329 void *id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, size);
330 return new Element(id, rs, dt, RS_KIND_USER, false, size);
333 android::RSC::sp<const Element> Element::createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) {
344 if (!(dt == RS_TYPE_UNSIGNED_8 ||
345 dt == RS_TYPE_UNSIGNED_16 ||
346 dt == RS_TYPE_UNSIGNED_5_6_5 ||
347 dt == RS_TYPE_UNSIGNED_4_4_4_4 ||
348 dt == RS_TYPE_UNSIGNED_5_5_5_1)) {
352 if (dt == RS_TYPE_UNSIGNED_5_6_5 && dk != RS_KIND_PIXEL_RGB) {
356 if (dt == RS_TYPE_UNSIGNED_5_5_5_1 && dk != RS_KIND_PIXEL_RGBA) {
360 if (dt == RS_TYPE_UNSIGNED_4_4_4_4 && dk != RS_KIND_PIXEL_RGBA) {
364 if (dt == RS_TYPE_UNSIGNED_16 && dk != RS_KIND_PIXEL_DEPTH) {
387 void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, dk, true, size);
388 return new Element(id, rs, dt, dk, true, size);