Lines Matching refs:rs

305      * @param rs Context to which the element will belong.
309 public static Element BOOLEAN(RenderScript rs) {
310 if(rs.mElement_BOOLEAN == null) {
311 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN);
313 return rs.mElement_BOOLEAN;
319 * @param rs Context to which the element will belong.
323 public static Element U8(RenderScript rs) {
324 if(rs.mElement_U8 == null) {
325 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8);
327 return rs.mElement_U8;
333 * @param rs Context to which the element will belong.
337 public static Element I8(RenderScript rs) {
338 if(rs.mElement_I8 == null) {
339 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8);
341 return rs.mElement_I8;
344 public static Element U16(RenderScript rs) {
345 if(rs.mElement_U16 == null) {
346 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16);
348 return rs.mElement_U16;
351 public static Element I16(RenderScript rs) {
352 if(rs.mElement_I16 == null) {
353 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16);
355 return rs.mElement_I16;
358 public static Element U32(RenderScript rs) {
359 if(rs.mElement_U32 == null) {
360 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32);
362 return rs.mElement_U32;
365 public static Element I32(RenderScript rs) {
366 if(rs.mElement_I32 == null) {
367 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32);
369 return rs.mElement_I32;
372 public static Element U64(RenderScript rs) {
373 if(rs.mElement_U64 == null) {
374 rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64);
376 return rs.mElement_U64;
379 public static Element I64(RenderScript rs) {
380 if(rs.mElement_I64 == null) {
381 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64);
383 return rs.mElement_I64;
386 public static Element F32(RenderScript rs) {
387 if(rs.mElement_F32 == null) {
388 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32);
390 return rs.mElement_F32;
393 public static Element F64(RenderScript rs) {
394 if(rs.mElement_F64 == null) {
395 rs.mElement_F64 = createUser(rs, DataType.FLOAT_64);
397 return rs.mElement_F64;
400 public static Element ELEMENT(RenderScript rs) {
401 if(rs.mElement_ELEMENT == null) {
402 rs.mElement_ELEMENT = createUser(rs, DataType.RS_ELEMENT);
404 return rs.mElement_ELEMENT;
407 public static Element TYPE(RenderScript rs) {
408 if(rs.mElement_TYPE == null) {
409 rs.mElement_TYPE = createUser(rs, DataType.RS_TYPE);
411 return rs.mElement_TYPE;
414 public static Element ALLOCATION(RenderScript rs) {
415 if(rs.mElement_ALLOCATION == null) {
416 rs.mElement_ALLOCATION = createUser(rs, DataType.RS_ALLOCATION);
418 return rs.mElement_ALLOCATION;
421 public static Element SAMPLER(RenderScript rs) {
422 if(rs.mElement_SAMPLER == null) {
423 rs.mElement_SAMPLER = createUser(rs, DataType.RS_SAMPLER);
425 return rs.mElement_SAMPLER;
428 public static Element SCRIPT(RenderScript rs) {
429 if(rs.mElement_SCRIPT == null) {
430 rs.mElement_SCRIPT = createUser(rs, DataType.RS_SCRIPT);
432 return rs.mElement_SCRIPT;
436 public static Element A_8(RenderScript rs) {
437 if(rs.mElement_A_8 == null) {
438 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
440 return rs.mElement_A_8;
443 public static Element RGB_565(RenderScript rs) {
444 if(rs.mElement_RGB_565 == null) {
445 rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB);
447 return rs.mElement_RGB_565;
450 public static Element RGB_888(RenderScript rs) {
451 if(rs.mElement_RGB_888 == null) {
452 rs.mElement_RGB_888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGB);
454 return rs.mElement_RGB_888;
457 public static Element RGBA_5551(RenderScript rs) {
458 if(rs.mElement_RGBA_5551 == null) {
459 rs.mElement_RGBA_5551 = createPixel(rs, DataType.UNSIGNED_5_5_5_1, DataKind.PIXEL_RGBA);
461 return rs.mElement_RGBA_5551;
464 public static Element RGBA_4444(RenderScript rs) {
465 if(rs.mElement_RGBA_4444 == null) {
466 rs.mElement_RGBA_4444 = createPixel(rs, DataType.UNSIGNED_4_4_4_4, DataKind.PIXEL_RGBA);
468 return rs.mElement_RGBA_4444;
471 public static Element RGBA_8888(RenderScript rs) {
472 if(rs.mElement_RGBA_8888 == null) {
473 rs.mElement_RGBA_8888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGBA);
475 return rs.mElement_RGBA_8888;
478 public static Element F32_2(RenderScript rs) {
479 if(rs.mElement_FLOAT_2 == null) {
480 rs.mElement_FLOAT_2 = createVector(rs, DataType.FLOAT_32, 2);
482 return rs.mElement_FLOAT_2;
485 public static Element F32_3(RenderScript rs) {
486 if(rs.mElement_FLOAT_3 == null) {
487 rs.mElement_FLOAT_3 = createVector(rs, DataType.FLOAT_32, 3);
489 return rs.mElement_FLOAT_3;
492 public static Element F32_4(RenderScript rs) {
493 if(rs.mElement_FLOAT_4 == null) {
494 rs.mElement_FLOAT_4 = createVector(rs, DataType.FLOAT_32, 4);
496 return rs.mElement_FLOAT_4;
499 public static Element F64_2(RenderScript rs) {
500 if(rs.mElement_DOUBLE_2 == null) {
501 rs.mElement_DOUBLE_2 = createVector(rs, DataType.FLOAT_64, 2);
503 return rs.mElement_DOUBLE_2;
506 public static Element F64_3(RenderScript rs) {
507 if(rs.mElement_DOUBLE_3 == null) {
508 rs.mElement_DOUBLE_3 = createVector(rs, DataType.FLOAT_64, 3);
510 return rs.mElement_DOUBLE_3;
513 public static Element F64_4(RenderScript rs) {
514 if(rs.mElement_DOUBLE_4 == null) {
515 rs.mElement_DOUBLE_4 = createVector(rs, DataType.FLOAT_64, 4);
517 return rs.mElement_DOUBLE_4;
520 public static Element U8_2(RenderScript rs) {
521 if(rs.mElement_UCHAR_2 == null) {
522 rs.mElement_UCHAR_2 = createVector(rs, DataType.UNSIGNED_8, 2);
524 return rs.mElement_UCHAR_2;
527 public static Element U8_3(RenderScript rs) {
528 if(rs.mElement_UCHAR_3 == null) {
529 rs.mElement_UCHAR_3 = createVector(rs, DataType.UNSIGNED_8, 3);
531 return rs.mElement_UCHAR_3;
534 public static Element U8_4(RenderScript rs) {
535 if(rs.mElement_UCHAR_4 == null) {
536 rs.mElement_UCHAR_4 = createVector(rs, DataType.UNSIGNED_8, 4);
538 return rs.mElement_UCHAR_4;
541 public static Element I8_2(RenderScript rs) {
542 if(rs.mElement_CHAR_2 == null) {
543 rs.mElement_CHAR_2 = createVector(rs, DataType.SIGNED_8, 2);
545 return rs.mElement_CHAR_2;
548 public static Element I8_3(RenderScript rs) {
549 if(rs.mElement_CHAR_3 == null) {
550 rs.mElement_CHAR_3 = createVector(rs, DataType.SIGNED_8, 3);
552 return rs.mElement_CHAR_3;
555 public static Element I8_4(RenderScript rs) {
556 if(rs.mElement_CHAR_4 == null) {
557 rs.mElement_CHAR_4 = createVector(rs, DataType.SIGNED_8, 4);
559 return rs.mElement_CHAR_4;
562 public static Element U16_2(RenderScript rs) {
563 if(rs.mElement_USHORT_2 == null) {
564 rs.mElement_USHORT_2 = createVector(rs, DataType.UNSIGNED_16, 2);
566 return rs.mElement_USHORT_2;
569 public static Element U16_3(RenderScript rs) {
570 if(rs.mElement_USHORT_3 == null) {
571 rs.mElement_USHORT_3 = createVector(rs, DataType.UNSIGNED_16, 3);
573 return rs.mElement_USHORT_3;
576 public static Element U16_4(RenderScript rs) {
577 if(rs.mElement_USHORT_4 == null) {
578 rs.mElement_USHORT_4 = createVector(rs, DataType.UNSIGNED_16, 4);
580 return rs.mElement_USHORT_4;
583 public static Element I16_2(RenderScript rs) {
584 if(rs.mElement_SHORT_2 == null) {
585 rs.mElement_SHORT_2 = createVector(rs, DataType.SIGNED_16, 2);
587 return rs.mElement_SHORT_2;
590 public static Element I16_3(RenderScript rs) {
591 if(rs.mElement_SHORT_3 == null) {
592 rs.mElement_SHORT_3 = createVector(rs, DataType.SIGNED_16, 3);
594 return rs.mElement_SHORT_3;
597 public static Element I16_4(RenderScript rs) {
598 if(rs.mElement_SHORT_4 == null) {
599 rs.mElement_SHORT_4 = createVector(rs, DataType.SIGNED_16, 4);
601 return rs.mElement_SHORT_4;
604 public static Element U32_2(RenderScript rs) {
605 if(rs.mElement_UINT_2 == null) {
606 rs.mElement_UINT_2 = createVector(rs, DataType.UNSIGNED_32, 2);
608 return rs.mElement_UINT_2;
611 public static Element U32_3(RenderScript rs) {
612 if(rs.mElement_UINT_3 == null) {
613 rs.mElement_UINT_3 = createVector(rs, DataType.UNSIGNED_32, 3);
615 return rs.mElement_UINT_3;
618 public static Element U32_4(RenderScript rs) {
619 if(rs.mElement_UINT_4 == null) {
620 rs.mElement_UINT_4 = createVector(rs, DataType.UNSIGNED_32, 4);
622 return rs.mElement_UINT_4;
625 public static Element I32_2(RenderScript rs) {
626 if(rs.mElement_INT_2 == null) {
627 rs.mElement_INT_2 = createVector(rs, DataType.SIGNED_32, 2);
629 return rs.mElement_INT_2;
632 public static Element I32_3(RenderScript rs) {
633 if(rs.mElement_INT_3 == null) {
634 rs.mElement_INT_3 = createVector(rs, DataType.SIGNED_32, 3);
636 return rs.mElement_INT_3;
639 public static Element I32_4(RenderScript rs) {
640 if(rs.mElement_INT_4 == null) {
641 rs.mElement_INT_4 = createVector(rs, DataType.SIGNED_32, 4);
643 return rs.mElement_INT_4;
646 public static Element U64_2(RenderScript rs) {
647 if(rs.mElement_ULONG_2 == null) {
648 rs.mElement_ULONG_2 = createVector(rs, DataType.UNSIGNED_64, 2);
650 return rs.mElement_ULONG_2;
653 public static Element U64_3(RenderScript rs) {
654 if(rs.mElement_ULONG_3 == null) {
655 rs.mElement_ULONG_3 = createVector(rs, DataType.UNSIGNED_64, 3);
657 return rs.mElement_ULONG_3;
660 public static Element U64_4(RenderScript rs) {
661 if(rs.mElement_ULONG_4 == null) {
662 rs.mElement_ULONG_4 = createVector(rs, DataType.UNSIGNED_64, 4);
664 return rs.mElement_ULONG_4;
667 public static Element I64_2(RenderScript rs) {
668 if(rs.mElement_LONG_2 == null) {
669 rs.mElement_LONG_2 = createVector(rs, DataType.SIGNED_64, 2);
671 return rs.mElement_LONG_2;
674 public static Element I64_3(RenderScript rs) {
675 if(rs.mElement_LONG_3 == null) {
676 rs.mElement_LONG_3 = createVector(rs, DataType.SIGNED_64, 3);
678 return rs.mElement_LONG_3;
681 public static Element I64_4(RenderScript rs) {
682 if(rs.mElement_LONG_4 == null) {
683 rs.mElement_LONG_4 = createVector(rs, DataType.SIGNED_64, 4);
685 return rs.mElement_LONG_4;
688 public static Element MATRIX_4X4(RenderScript rs) {
689 if(rs.mElement_MATRIX_4X4 == null) {
690 rs.mElement_MATRIX_4X4 = createUser(rs, DataType.MATRIX_4X4);
692 return rs.mElement_MATRIX_4X4;
695 public static Element MATRIX_3X3(RenderScript rs) {
696 if(rs.mElement_MATRIX_3X3 == null) {
697 rs.mElement_MATRIX_3X3 = createUser(rs, DataType.MATRIX_3X3);
699 return rs.mElement_MATRIX_3X3;
702 public static Element MATRIX_2X2(RenderScript rs) {
703 if(rs.mElement_MATRIX_2X2 == null) {
704 rs.mElement_MATRIX_2X2 = createUser(rs, DataType.MATRIX_2X2);
706 return rs.mElement_MATRIX_2X2;
709 Element(int id, RenderScript rs, Element[] e, String[] n, int[] as) {
710 super(id, rs);
726 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
727 super(id, rs);
745 Element(int id, RenderScript rs) {
746 super(id, rs);
753 * @param rs The context associated with the new Element.
757 static Element createUser(RenderScript rs, DataType dt) {
758 if (rs.isNative) {
759 RenderScriptThunker rst = (RenderScriptThunker)rs;
765 int id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize);
766 return new Element(id, rs, dt, dk, norm, vecSize);
775 * @param rs The context associated with the new Element.
782 public static Element createVector(RenderScript rs, DataType dt, int size) {
783 if (rs.isNative) {
784 RenderScriptThunker rst = (RenderScriptThunker)rs;
806 int id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
807 return new Element(id, rs, dt, dk, norm, size);
822 * @param rs The context associated with the new Element.
829 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
830 if (rs.isNative) {
831 RenderScriptThunker rst = (RenderScriptThunker)rs;
879 int id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
880 return new Element(id, rs, dt, dk, norm, size);
929 * @param rs
931 public Builder(RenderScript rs) {
932 if (rs.isNative) {
933 RenderScriptThunker rst = (RenderScriptThunker)rs;
934 mT = new ElementThunker.BuilderThunker(rs);
936 mRS = rs;