Lines Matching refs:rs

313      * @param rs Context to which the element will belong.
317 public static Element BOOLEAN(RenderScript rs) {
318 if(rs.mElement_BOOLEAN == null) {
319 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN);
321 return rs.mElement_BOOLEAN;
327 * @param rs Context to which the element will belong.
331 public static Element U8(RenderScript rs) {
332 if(rs.mElement_U8 == null) {
333 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8);
335 return rs.mElement_U8;
341 * @param rs Context to which the element will belong.
345 public static Element I8(RenderScript rs) {
346 if(rs.mElement_I8 == null) {
347 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8);
349 return rs.mElement_I8;
352 public static Element U16(RenderScript rs) {
353 if(rs.mElement_U16 == null) {
354 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16);
356 return rs.mElement_U16;
359 public static Element I16(RenderScript rs) {
360 if(rs.mElement_I16 == null) {
361 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16);
363 return rs.mElement_I16;
366 public static Element U32(RenderScript rs) {
367 if(rs.mElement_U32 == null) {
368 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32);
370 return rs.mElement_U32;
373 public static Element I32(RenderScript rs) {
374 if(rs.mElement_I32 == null) {
375 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32);
377 return rs.mElement_I32;
380 public static Element U64(RenderScript rs) {
381 if(rs.mElement_U64 == null) {
382 rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64);
384 return rs.mElement_U64;
387 public static Element I64(RenderScript rs) {
388 if(rs.mElement_I64 == null) {
389 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64);
391 return rs.mElement_I64;
394 public static Element F32(RenderScript rs) {
395 if(rs.mElement_F32 == null) {
396 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32);
398 return rs.mElement_F32;
401 public static Element F64(RenderScript rs) {
402 if(rs.mElement_F64 == null) {
403 rs.mElement_F64 = createUser(rs, DataType.FLOAT_64);
405 return rs.mElement_F64;
408 public static Element ELEMENT(RenderScript rs) {
409 if(rs.mElement_ELEMENT == null) {
410 rs.mElement_ELEMENT = createUser(rs, DataType.RS_ELEMENT);
412 return rs.mElement_ELEMENT;
415 public static Element TYPE(RenderScript rs) {
416 if(rs.mElement_TYPE == null) {
417 rs.mElement_TYPE = createUser(rs, DataType.RS_TYPE);
419 return rs.mElement_TYPE;
422 public static Element ALLOCATION(RenderScript rs) {
423 if(rs.mElement_ALLOCATION == null) {
424 rs.mElement_ALLOCATION = createUser(rs, DataType.RS_ALLOCATION);
426 return rs.mElement_ALLOCATION;
429 public static Element SAMPLER(RenderScript rs) {
430 if(rs.mElement_SAMPLER == null) {
431 rs.mElement_SAMPLER = createUser(rs, DataType.RS_SAMPLER);
433 return rs.mElement_SAMPLER;
436 public static Element SCRIPT(RenderScript rs) {
437 if(rs.mElement_SCRIPT == null) {
438 rs.mElement_SCRIPT = createUser(rs, DataType.RS_SCRIPT);
440 return rs.mElement_SCRIPT;
444 public static Element A_8(RenderScript rs) {
445 if(rs.mElement_A_8 == null) {
446 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
448 return rs.mElement_A_8;
451 public static Element RGB_565(RenderScript rs) {
452 if(rs.mElement_RGB_565 == null) {
453 rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB);
455 return rs.mElement_RGB_565;
458 public static Element RGB_888(RenderScript rs) {
459 if(rs.mElement_RGB_888 == null) {
460 rs.mElement_RGB_888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGB);
462 return rs.mElement_RGB_888;
465 public static Element RGBA_5551(RenderScript rs) {
466 if(rs.mElement_RGBA_5551 == null) {
467 rs.mElement_RGBA_5551 = createPixel(rs, DataType.UNSIGNED_5_5_5_1, DataKind.PIXEL_RGBA);
469 return rs.mElement_RGBA_5551;
472 public static Element RGBA_4444(RenderScript rs) {
473 if(rs.mElement_RGBA_4444 == null) {
474 rs.mElement_RGBA_4444 = createPixel(rs, DataType.UNSIGNED_4_4_4_4, DataKind.PIXEL_RGBA);
476 return rs.mElement_RGBA_4444;
479 public static Element RGBA_8888(RenderScript rs) {
480 if(rs.mElement_RGBA_8888 == null) {
481 rs.mElement_RGBA_8888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGBA);
483 return rs.mElement_RGBA_8888;
486 public static Element F32_2(RenderScript rs) {
487 if(rs.mElement_FLOAT_2 == null) {
488 rs.mElement_FLOAT_2 = createVector(rs, DataType.FLOAT_32, 2);
490 return rs.mElement_FLOAT_2;
493 public static Element F32_3(RenderScript rs) {
494 if(rs.mElement_FLOAT_3 == null) {
495 rs.mElement_FLOAT_3 = createVector(rs, DataType.FLOAT_32, 3);
497 return rs.mElement_FLOAT_3;
500 public static Element F32_4(RenderScript rs) {
501 if(rs.mElement_FLOAT_4 == null) {
502 rs.mElement_FLOAT_4 = createVector(rs, DataType.FLOAT_32, 4);
504 return rs.mElement_FLOAT_4;
507 public static Element F64_2(RenderScript rs) {
508 if(rs.mElement_DOUBLE_2 == null) {
509 rs.mElement_DOUBLE_2 = createVector(rs, DataType.FLOAT_64, 2);
511 return rs.mElement_DOUBLE_2;
514 public static Element F64_3(RenderScript rs) {
515 if(rs.mElement_DOUBLE_3 == null) {
516 rs.mElement_DOUBLE_3 = createVector(rs, DataType.FLOAT_64, 3);
518 return rs.mElement_DOUBLE_3;
521 public static Element F64_4(RenderScript rs) {
522 if(rs.mElement_DOUBLE_4 == null) {
523 rs.mElement_DOUBLE_4 = createVector(rs, DataType.FLOAT_64, 4);
525 return rs.mElement_DOUBLE_4;
528 public static Element U8_2(RenderScript rs) {
529 if(rs.mElement_UCHAR_2 == null) {
530 rs.mElement_UCHAR_2 = createVector(rs, DataType.UNSIGNED_8, 2);
532 return rs.mElement_UCHAR_2;
535 public static Element U8_3(RenderScript rs) {
536 if(rs.mElement_UCHAR_3 == null) {
537 rs.mElement_UCHAR_3 = createVector(rs, DataType.UNSIGNED_8, 3);
539 return rs.mElement_UCHAR_3;
542 public static Element U8_4(RenderScript rs) {
543 if(rs.mElement_UCHAR_4 == null) {
544 rs.mElement_UCHAR_4 = createVector(rs, DataType.UNSIGNED_8, 4);
546 return rs.mElement_UCHAR_4;
549 public static Element I8_2(RenderScript rs) {
550 if(rs.mElement_CHAR_2 == null) {
551 rs.mElement_CHAR_2 = createVector(rs, DataType.SIGNED_8, 2);
553 return rs.mElement_CHAR_2;
556 public static Element I8_3(RenderScript rs) {
557 if(rs.mElement_CHAR_3 == null) {
558 rs.mElement_CHAR_3 = createVector(rs, DataType.SIGNED_8, 3);
560 return rs.mElement_CHAR_3;
563 public static Element I8_4(RenderScript rs) {
564 if(rs.mElement_CHAR_4 == null) {
565 rs.mElement_CHAR_4 = createVector(rs, DataType.SIGNED_8, 4);
567 return rs.mElement_CHAR_4;
570 public static Element U16_2(RenderScript rs) {
571 if(rs.mElement_USHORT_2 == null) {
572 rs.mElement_USHORT_2 = createVector(rs, DataType.UNSIGNED_16, 2);
574 return rs.mElement_USHORT_2;
577 public static Element U16_3(RenderScript rs) {
578 if(rs.mElement_USHORT_3 == null) {
579 rs.mElement_USHORT_3 = createVector(rs, DataType.UNSIGNED_16, 3);
581 return rs.mElement_USHORT_3;
584 public static Element U16_4(RenderScript rs) {
585 if(rs.mElement_USHORT_4 == null) {
586 rs.mElement_USHORT_4 = createVector(rs, DataType.UNSIGNED_16, 4);
588 return rs.mElement_USHORT_4;
591 public static Element I16_2(RenderScript rs) {
592 if(rs.mElement_SHORT_2 == null) {
593 rs.mElement_SHORT_2 = createVector(rs, DataType.SIGNED_16, 2);
595 return rs.mElement_SHORT_2;
598 public static Element I16_3(RenderScript rs) {
599 if(rs.mElement_SHORT_3 == null) {
600 rs.mElement_SHORT_3 = createVector(rs, DataType.SIGNED_16, 3);
602 return rs.mElement_SHORT_3;
605 public static Element I16_4(RenderScript rs) {
606 if(rs.mElement_SHORT_4 == null) {
607 rs.mElement_SHORT_4 = createVector(rs, DataType.SIGNED_16, 4);
609 return rs.mElement_SHORT_4;
612 public static Element U32_2(RenderScript rs) {
613 if(rs.mElement_UINT_2 == null) {
614 rs.mElement_UINT_2 = createVector(rs, DataType.UNSIGNED_32, 2);
616 return rs.mElement_UINT_2;
619 public static Element U32_3(RenderScript rs) {
620 if(rs.mElement_UINT_3 == null) {
621 rs.mElement_UINT_3 = createVector(rs, DataType.UNSIGNED_32, 3);
623 return rs.mElement_UINT_3;
626 public static Element U32_4(RenderScript rs) {
627 if(rs.mElement_UINT_4 == null) {
628 rs.mElement_UINT_4 = createVector(rs, DataType.UNSIGNED_32, 4);
630 return rs.mElement_UINT_4;
633 public static Element I32_2(RenderScript rs) {
634 if(rs.mElement_INT_2 == null) {
635 rs.mElement_INT_2 = createVector(rs, DataType.SIGNED_32, 2);
637 return rs.mElement_INT_2;
640 public static Element I32_3(RenderScript rs) {
641 if(rs.mElement_INT_3 == null) {
642 rs.mElement_INT_3 = createVector(rs, DataType.SIGNED_32, 3);
644 return rs.mElement_INT_3;
647 public static Element I32_4(RenderScript rs) {
648 if(rs.mElement_INT_4 == null) {
649 rs.mElement_INT_4 = createVector(rs, DataType.SIGNED_32, 4);
651 return rs.mElement_INT_4;
654 public static Element U64_2(RenderScript rs) {
655 if(rs.mElement_ULONG_2 == null) {
656 rs.mElement_ULONG_2 = createVector(rs, DataType.UNSIGNED_64, 2);
658 return rs.mElement_ULONG_2;
661 public static Element U64_3(RenderScript rs) {
662 if(rs.mElement_ULONG_3 == null) {
663 rs.mElement_ULONG_3 = createVector(rs, DataType.UNSIGNED_64, 3);
665 return rs.mElement_ULONG_3;
668 public static Element U64_4(RenderScript rs) {
669 if(rs.mElement_ULONG_4 == null) {
670 rs.mElement_ULONG_4 = createVector(rs, DataType.UNSIGNED_64, 4);
672 return rs.mElement_ULONG_4;
675 public static Element I64_2(RenderScript rs) {
676 if(rs.mElement_LONG_2 == null) {
677 rs.mElement_LONG_2 = createVector(rs, DataType.SIGNED_64, 2);
679 return rs.mElement_LONG_2;
682 public static Element I64_3(RenderScript rs) {
683 if(rs.mElement_LONG_3 == null) {
684 rs.mElement_LONG_3 = createVector(rs, DataType.SIGNED_64, 3);
686 return rs.mElement_LONG_3;
689 public static Element I64_4(RenderScript rs) {
690 if(rs.mElement_LONG_4 == null) {
691 rs.mElement_LONG_4 = createVector(rs, DataType.SIGNED_64, 4);
693 return rs.mElement_LONG_4;
696 public static Element MATRIX_4X4(RenderScript rs) {
697 if(rs.mElement_MATRIX_4X4 == null) {
698 rs.mElement_MATRIX_4X4 = createUser(rs, DataType.MATRIX_4X4);
700 return rs.mElement_MATRIX_4X4;
703 public static Element MATRIX_3X3(RenderScript rs) {
704 if(rs.mElement_MATRIX_3X3 == null) {
705 rs.mElement_MATRIX_3X3 = createUser(rs, DataType.MATRIX_3X3);
707 return rs.mElement_MATRIX_3X3;
710 public static Element MATRIX_2X2(RenderScript rs) {
711 if(rs.mElement_MATRIX_2X2 == null) {
712 rs.mElement_MATRIX_2X2 = createUser(rs, DataType.MATRIX_2X2);
714 return rs.mElement_MATRIX_2X2;
717 Element(long id, RenderScript rs, Element[] e, String[] n, int[] as) {
718 super(id, rs);
734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
735 super(id, rs);
753 Element(long id, RenderScript rs) {
754 super(id, rs);
768 * @param rs The context associated with the new Element.
772 static Element createUser(RenderScript rs, DataType dt) {
776 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize);
777 return new Element(id, rs, dt, dk, norm, vecSize);
786 * @param rs The context associated with the new Element.
793 public static Element createVector(RenderScript rs, DataType dt, int size) {
813 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
814 return new Element(id, rs, dt, dk, norm, size);
829 * @param rs The context associated with the new Element.
836 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
881 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
882 return new Element(id, rs, dt, dk, norm, size);
930 * @param rs
932 public Builder(RenderScript rs) {
933 mRS = rs;