summaryrefslogtreecommitdiffstats
path: root/util/scan/dvb-t/se-Sorsjon (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2013-09-03Imported Debian patch 1.1.1+rev1457-4debian/1.1.1+rev1457-4Mark Purcell4-1/+11
2013-09-03Imported Debian patch 1.1.1+rev1457-3debian/1.1.1+rev1457-3Tobias Grimm4-3/+11
2013-09-03Imported Debian patch 1.1.1+rev1457-2debian/1.1.1+rev1457-2Mark Purcell6-6/+1086
2013-09-03Imported Upstream version 1.1.1+rev1457upstream/1.1.1+rev1457etobi373-3363/+3502
2013-09-03Imported Debian patch 1.1.1+rev1355-1.1debian/1.1.1+rev1355-1.1Simon Paillard3-0/+215
2013-09-032013-09-03Imported Upstream version 1.1.1+rev1207upstream/1.1.1+rev1207etobi1282-2474/+68297
2013-09-03Imported Debian patch 1.1.1-3debian/1.1.1-3Debian VDR Team6-770/+7062
2013-09-03Imported Debian patch 1.1.1-2debian/1.1.1-2Thomas Schmidt4-1/+27
2013-09-03Imported Upstream version 1.1.1upstream/1.1.1etobi30-172/+2229
2013-09-03Imported Debian patch 1.1.0-11debian/1.1.0-11Debian VDR Team5-3/+83
2013-09-03Imported Debian patch 1.1.0-9debian/1.1.0-9Thomas Schmidt3-0/+33
2013-09-03Imported Debian patch 1.1.0-8debian/1.1.0-8Debian VDR Team9-560/+1531
2013-09-03Imported Debian patch 1.1.0-7debian/1.1.0-7Debian VDR Team4-324/+553
2013-09-03Imported Debian patch 1.1.0-6debian/1.1.0-6Debian VDR Team6-8/+21
2013-09-03Imported Debian patch 1.1.0-5debian/1.1.0-5Debian VDR Team15-0/+2186
class="k">this.bitCount = bitCount; } /** * Creates a new IR Code from a data array. * @param data the IR code data * @param bitCount the code length in bits. */ public IRCode(short[] data, int bitCount) { int length = (bitCount / 8) + ((bitCount % 8 > 0) ? 1 : 0); this.data = new short[length]; for (int i = 0; i < length; i++) this.data[i] = data[i]; this.bitCount = bitCount; } private short[] HexToData(String hexString) { if (hexString == null) return null; if (hexString.startsWith("0x")){ hexString = hexString.substring(2); } if (hexString.length() % 2 == 1) hexString = '0' + hexString; // Up to you whether to pad the first or last byte short[] data = new short[hexString.length() / 2]; for (int i = 0; i < data.length; i++){ data[i] = (short) Integer.parseInt(hexString.substring(i * 2, (i * 2) + 2), 16); } return data; } private char[] hexlookup = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; /** * String representation of the IR code. */ public String toString() { String out = ""; for(int i=0;i<data.length;i++) { out = out + (hexlookup[data[i] / 16]); out = out + (hexlookup[data[i] % 16]); } return out; } }