Lines Matching refs:dk
772 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
786 mKind = dk;
812 for (DataKind dk: DataKind.values()) {
813 if(dk.mID == dataBuffer[1]){
814 mKind = dk;
846 DataKind dk = DataKind.USER;
849 int id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize);
850 return new Element(id, rs, dt, dk, norm, vecSize);
884 DataKind dk = DataKind.USER;
886 int id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
887 return new Element(id, rs, dt, dk, norm, size);
904 * @param dk The DataKind to specify the mapping of each component in the
909 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
910 if (!(dk == DataKind.PIXEL_L ||
911 dk == DataKind.PIXEL_A ||
912 dk == DataKind.PIXEL_LA ||
913 dk == DataKind.PIXEL_RGB ||
914 dk == DataKind.PIXEL_RGBA ||
915 dk == DataKind.PIXEL_DEPTH ||
916 dk == DataKind.PIXEL_YUV)) {
926 if (dt == DataType.UNSIGNED_5_6_5 && dk != DataKind.PIXEL_RGB) {
929 if (dt == DataType.UNSIGNED_5_5_5_1 && dk != DataKind.PIXEL_RGBA) {
932 if (dt == DataType.UNSIGNED_4_4_4_4 && dk != DataKind.PIXEL_RGBA) {
936 dk != DataKind.PIXEL_DEPTH) {
941 switch (dk) {
957 int id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
958 return new Element(id, rs, dt, dk, norm, size);