Home | History | Annotate | Download | only in renderscript

Lines Matching refs:DataKind

39  * android.renderscript.Element.DataKind}. The DataType encodes C type
40 * information of an Element, while the DataKind encodes how that Element should
42 * android.renderscript.Allocation} objects with DataKind {@link
43 * android.renderscript.Element.DataKind#USER} cannot be used as input for a
66 DataKind mKind;
172 public enum DataKind {
184 DataKind(int id) {
296 public DataKind getDataKind() {
478 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
485 rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB);
492 rs.mElement_RGB_888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGB);
499 rs.mElement_RGBA_5551 = createPixel(rs, DataType.UNSIGNED_5_5_5_1, DataKind.PIXEL_RGBA);
506 rs.mElement_RGBA_4444 = createPixel(rs, DataType.UNSIGNED_4_4_4_4, DataKind.PIXEL_RGBA);
513 rs.mElement_RGBA_8888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGBA);
730 rs.mElement_YUV = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_YUV);
770 mKind = DataKind.USER;
779 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
819 for (DataKind dk: DataKind.values()) {
845 * Create a custom Element of the specified DataType. The DataKind will be
853 DataKind dk = DataKind.USER;
862 * DataKind will be set to USER. Only primitive types (FLOAT_32, FLOAT_64,
891 DataKind dk = DataKind.USER;
905 * Create a new pixel Element type. A matching DataType and DataKind must
906 * be provided. The DataType and DataKind must contain the same number of
911 * @param dk The DataKind to specify the mapping of each component in the
916 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
917 if (!(dk == DataKind.PIXEL_L ||
918 dk == DataKind.PIXEL_A ||
919 dk == DataKind.PIXEL_LA ||
920 dk == DataKind.PIXEL_RGB ||
921 dk == DataKind.PIXEL_RGBA ||
922 dk == DataKind.PIXEL_DEPTH ||
923 dk == DataKind.PIXEL_YUV)) {
924 throw new RSIllegalArgumentException("Unsupported DataKind");
933 if (dt == DataType.UNSIGNED_5_6_5 && dk != DataKind.PIXEL_RGB) {
936 if (dt == DataType.UNSIGNED_5_5_5_1 && dk != DataKind.PIXEL_RGBA) {
939 if (dt == DataType.UNSIGNED_4_4_4_4 && dk != DataKind.PIXEL_RGBA) {
943 dk != DataKind.PIXEL_DEPTH) {