Home | History | Annotate | Download | only in cpp

Lines Matching refs:dt

169 static uint32_t GetSizeInBytesForType(RsDataType dt) {
170 switch(dt) {
218 ALOGE("Missing type %i", dt);
223 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) :
226 uint32_t tsize = GetSizeInBytesForType(dt);
227 if ((dt != RS_TYPE_UNSIGNED_5_6_5) &&
228 (dt != RS_TYPE_UNSIGNED_4_4_4_4) &&
229 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) {
238 mType = dt;
252 sp<const Element> Element::createUser(sp<RS> rs, RsDataType dt) {
253 void * id = rsElementCreate(rs->getContext(), dt, RS_KIND_USER, false, 1);
254 return new Element(id, rs, dt, RS_KIND_USER, false, 1);
257 sp<const Element> Element::createVector(sp<RS> rs, RsDataType dt, uint32_t size) {
261 void *id = rsElementCreate(rs->getContext(), dt, RS_KIND_USER, false, size);
262 return new Element(id, rs, dt, RS_KIND_USER, false, size);
265 sp<const Element> Element::createPixel(sp<RS> rs, RsDataType dt, RsDataKind dk) {
274 if (!(dt == RS_TYPE_UNSIGNED_8 ||
275 dt == RS_TYPE_UNSIGNED_16 ||
276 dt == RS_TYPE_UNSIGNED_5_6_5 ||
277 dt == RS_TYPE_UNSIGNED_4_4_4_4 ||
278 dt == RS_TYPE_UNSIGNED_5_5_5_1)) {
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) {
312 void * id = rsElementCreate(rs->getContext(), dt, dk, true, size);
313 return new Element(id, rs, dt, dk, true, size);