Lines Matching defs:DataKind
36 * android.renderscript.Element.DataKind}. The DataType encodes C type
37 * information of an Element, while the DataKind encodes how that Element should
39 * android.renderscript.Allocation} objects with DataKind {@link
40 * android.renderscript.Element.DataKind#USER} cannot be used as input for a
63 DataKind mKind;
178 public enum DataKind {
190 DataKind(int id) {
302 public DataKind getDataKind() {
491 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
498 rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB);
505 rs.mElement_RGB_888 = createPixel(rs, DataType.UNSIGNED_8, DataKind
512 rs.mElement_RGBA_5551 = createPixel(rs, DataType.UNSIGNED_5_5_5_1, DataKind.PIXEL_RGBA);
519 rs.mElement_RGBA_4444 = createPixel(rs, DataType.UNSIGNED_4_4_4_4, DataKind.PIXEL_RGBA);
526 rs.mElement_RGBA_8888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGBA);
764 rs.mElement_YUV = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_YUV);
804 mKind = DataKind.USER;
813 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
853 for (DataKind dk: DataKind.values()) {
879 * Create a custom Element of the specified DataType. The DataKind will be
887 DataKind dk = DataKind.USER;
896 * DataKind will be set to USER. Only primitive types (FLOAT_32, FLOAT_64,
926 DataKind dk = DataKind.USER;
940 * Create a new pixel Element type. A matching DataType and DataKind must
941 * be provided. The DataType and DataKind must contain the same number of
946 * @param dk The DataKind to specify the mapping of each component in the
951 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
952 if (!(dk == DataKind.PIXEL_L ||
953 dk == DataKind.PIXEL_A ||
954 dk == DataKind.PIXEL_LA ||
955 dk == DataKind.PIXEL_RGB ||
956 dk == DataKind.PIXEL_RGBA ||
957 dk == DataKind.PIXEL_DEPTH ||
958 dk == DataKind.PIXEL_YUV)) {
959 throw new RSIllegalArgumentException("Unsupported DataKind");
968 if (dt == DataType.UNSIGNED_5_6_5 && dk != DataKind.PIXEL_RGB) {
971 if (dt == DataType.UNSIGNED_5_5_5_1 && dk != DataKind.PIXEL_RGBA) {
974 if (dt == DataType.UNSIGNED_4_4_4_4 && dk != DataKind.PIXEL_RGBA) {
978 dk != DataKind.PIXEL_DEPTH) {