Lines Matching refs:Element

25 ScriptIntrinsic::ScriptIntrinsic(sp<RS> rs, int id, sp<const Element> e)
36 sp<ScriptIntrinsic3DLUT> ScriptIntrinsic3DLUT::create(sp<RS> rs, sp<const Element> e) {
37 if (e->isCompatible(Element::U8_4(rs)) == false) {
38 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic");
44 ScriptIntrinsic3DLUT::ScriptIntrinsic3DLUT(sp<RS> rs, sp<const Element> e)
70 sp<ScriptIntrinsicBlend> ScriptIntrinsicBlend::create(sp<RS> rs, sp<const Element> e) {
71 if (e->isCompatible(Element::U8_4(rs)) == false) {
72 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic");
78 ScriptIntrinsicBlend::ScriptIntrinsicBlend(sp<RS> rs, sp<const Element> e)
205 sp<ScriptIntrinsicBlur> ScriptIntrinsicBlur::create(sp<RS> rs, sp<const Element> e) {
206 if ((e->isCompatible(Element::U8_4(rs)) == false) &&
207 (e->isCompatible(Element::U8(rs)) == false)) {
214 ScriptIntrinsicBlur::ScriptIntrinsicBlur(sp<RS> rs, sp<const Element> e)
246 return new ScriptIntrinsicColorMatrix(rs, Element::RGBA_8888(rs));
249 ScriptIntrinsicColorMatrix::ScriptIntrinsicColorMatrix(sp<RS> rs, sp<const Element> e)
257 if (!(in->getType()->getElement()->isCompatible(Element::U8(mRS))) &&
258 !(in->getType()->getElement()->isCompatible(Element::U8_2(mRS))) &&
259 !(in->getType()->getElement()->isCompatible(Element::U8_3(mRS))) &&
260 !(in->getType()->getElement()->isCompatible(Element::U8_4(mRS))) &&
261 !(in->getType()->getElement()->isCompatible(Element::F32(mRS))) &&
262 !(in->getType()->getElement()->isCompatible(Element::F32_2(mRS))) &&
263 !(in->getType()->getElement()->isCompatible(Element::F32_3(mRS))) &&
264 !(in->getType()->getElement()->isCompatible(Element::F32_4(mRS)))) {
269 if (!(out->getType()->getElement()->isCompatible(Element::U8(mRS))) &&
270 !(out->getType()->getElement()->isCompatible(Element::U8_2(mRS))) &&
271 !(out->getType()->getElement()->isCompatible(Element::U8_3(mRS))) &&
272 !(out->getType()->getElement()->isCompatible(Element::U8_4(mRS))) &&
273 !(out->getType()->getElement()->isCompatible(Element::F32(mRS))) &&
274 !(out->getType()->getElement()->isCompatible(Element::F32_2(mRS))) &&
275 !(out->getType()->getElement()->isCompatible(Element::F32_3(mRS))) &&
276 !(out->getType()->getElement()->isCompatible(Element::F32_4(mRS)))) {
338 sp<ScriptIntrinsicConvolve3x3> ScriptIntrinsicConvolve3x3::create(sp<RS> rs, sp<const Element> e) {
339 if (!(e->isCompatible(Element::U8(rs))) &&
340 !(e->isCompatible(Element::U8_2(rs))) &&
341 !(e->isCompatible(Element::U8_3(rs))) &&
342 !(e->isCompatible(Element::U8_4(rs))) &&
343 !(e->isCompatible(Element::F32(rs))) &&
344 !(e->isCompatible(Element::F32_2(rs))) &&
345 !(e->isCompatible(Element::F32_3(rs))) &&
346 !(e->isCompatible(Element::F32_4(rs)))) {
354 ScriptIntrinsicConvolve3x3::ScriptIntrinsicConvolve3x3(sp<RS> rs, sp<const Element> e)
361 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Element mismatch in Convolve3x3");
369 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Element mismatch in Convolve3x3");
379 sp<ScriptIntrinsicConvolve5x5> ScriptIntrinsicConvolve5x5::create(sp<RS> rs, sp<const Element> e) {
380 if (!(e->isCompatible(Element::U8(rs))) &&
381 !(e->isCompatible(Element::U8_2(rs))) &&
382 !(e->isCompatible(Element::U8_3(rs))) &&
383 !(e->isCompatible(Element::U8_4(rs))) &&
384 !(e->isCompatible(Element::F32(rs))) &&
385 !(e->isCompatible(Element::F32_2(rs))) &&
386 !(e->isCompatible(Element::F32_3(rs))) &&
387 !(e->isCompatible(Element::F32_4(rs)))) {
395 ScriptIntrinsicConvolve5x5::ScriptIntrinsicConvolve5x5(sp<RS> rs, sp<const Element> e)
402 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Element mismatch in Convolve5x5 input");
410 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Element mismatch in Convolve5x5 output");
421 sp<ScriptIntrinsicHistogram> ScriptIntrinsicHistogram::create(sp<RS> rs, sp<const Element> e) {
425 ScriptIntrinsicHistogram::ScriptIntrinsicHistogram(sp<RS> rs, sp<const Element> e)
431 if (!(out->getType()->getElement()->isCompatible(Element::U32(mRS))) &&
432 !(out->getType()->getElement()->isCompatible(Element::U32_2(mRS))) &&
433 !(out->getType()->getElement()->isCompatible(Element::U32_3(mRS))) &&
434 !(out->getType()->getElement()->isCompatible(Element::U32_4(mRS))) &&
435 !(out->getType()->getElement()->isCompatible(Element::I32(mRS))) &&
436 !(out->getType()->getElement()->isCompatible(Element::I32_2(mRS))) &&
437 !(out->getType()->getElement()->isCompatible(Element::I32_3(mRS))) &&
438 !(out->getType()->getElement()->isCompatible(Element::I32_4(mRS)))) {
478 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) &&
479 !(ain->getType()->getElement()->isCompatible(Element::U8_4(mRS)))) {
496 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) &&
497 !(ain->getType()->getElement()->isCompatible(Element::U8_4(mRS)))) {
506 sp<ScriptIntrinsicLUT> ScriptIntrinsicLUT::create(sp<RS> rs, sp<const Element> e) {
507 if (!(e->isCompatible(Element::U8_4(rs)))) {
514 ScriptIntrinsicLUT::ScriptIntrinsicLUT(sp<RS> rs, sp<const Element> e)
516 LUT = Allocation::createSized(rs, Element::U8(rs), 1024);
531 if (!(ain->getType()->getElement()->isCompatible(Element::U8_4(mRS))) ||
532 !(aout->getType()->getElement()->isCompatible(Element::U8_4(mRS)))) {
575 ScriptIntrinsicResize::ScriptIntrinsicResize(sp<RS> rs, sp<const Element> e)
591 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) &&
592 !(ain->getType()->getElement()->isCompatible(Element::U8_2(mRS))) &&
593 !(ain->getType()->getElement()->isCompatible(Element::U8_3(mRS))) &&
594 !(ain->getType()->getElement()->isCompatible(Element::U8_4(mRS))) &&
595 !(ain->getType()->getElement()->isCompatible(Element::F32(mRS))) &&
596 !(ain->getType()->getElement()->isCompatible(Element::F32_2(mRS))) &&
597 !(ain->getType()->getElement()->isCompatible(Element::F32_3(mRS))) &&
598 !(ain->getType()->getElement()->isCompatible(Element::F32_4(mRS)))) {
608 sp<ScriptIntrinsicYuvToRGB> ScriptIntrinsicYuvToRGB::create(sp<RS> rs, sp<const Element> e) {
609 if (!(e->isCompatible(Element::U8_4(rs)))) {
616 ScriptIntrinsicYuvToRGB::ScriptIntrinsicYuvToRGB(sp<RS> rs, sp<const Element> e)
622 if (!(in->getType()->getElement()->isCompatible(Element::YUV(mRS)))) {