Skip to content

Commit da7806e

Browse files
committed
added TransportStreamDescriptor
1 parent 3c4f270 commit da7806e

File tree

3 files changed

+55
-5
lines changed

3 files changed

+55
-5
lines changed

src/main/java/nl/digitalekabeltelevisie/data/mpeg/descriptors/Descriptor.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ public Descriptor(byte[] b, TableSection parent) {
9898
parentTableSection = parent;
9999
}
100100

101-
@Deprecated
102-
public Descriptor(byte[] b, int offset, TableSection parent) {
103-
this(b, parent);
104-
}
105-
106101
public int getDescriptorLength() {
107102
return descriptorLength;
108103
}

src/main/java/nl/digitalekabeltelevisie/data/mpeg/descriptors/DescriptorFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ private static Descriptor getDVBSIDescriptor(byte[] data, TableSection tableSect
499499
return new ScramblingDescriptor(data, tableSection);
500500
case 0x66:
501501
return new DataBroadcastIDDescriptor(data, tableSection);
502+
case 0x67:
503+
return new TransportStreamDescriptor(data, tableSection);
502504
case 0x69:
503505
return new PDCDescriptor(data, tableSection);
504506
case 0x6A:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
*
3+
* http://www.digitalekabeltelevisie.nl/dvb_inspector
4+
*
5+
* This code is Copyright 2009-2025 by Eric Berendsen ([email protected])
6+
*
7+
* This file is part of DVB Inspector.
8+
*
9+
* DVB Inspector is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* DVB Inspector is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with DVB Inspector. If not, see <http://www.gnu.org/licenses/>.
21+
*
22+
* The author requests that he be notified of any application, applet, or
23+
* other binary that makes use of this code, but that's more out of curiosity
24+
* than anything and is not required.
25+
*
26+
*/
27+
28+
package nl.digitalekabeltelevisie.data.mpeg.descriptors;
29+
30+
import static nl.digitalekabeltelevisie.util.Utils.getBytes;
31+
32+
import nl.digitalekabeltelevisie.controller.KVP;
33+
import nl.digitalekabeltelevisie.data.mpeg.psi.TableSection;
34+
35+
36+
public class TransportStreamDescriptor extends Descriptor {
37+
38+
private final byte[] bytes;
39+
40+
public TransportStreamDescriptor(byte[] b, TableSection parent) {
41+
super(b, parent);
42+
bytes = getBytes(b, 2, descriptorLength);
43+
}
44+
45+
46+
@Override
47+
public KVP getJTreeNode(int modus){
48+
KVP t = super.getJTreeNode(modus);
49+
t.add(new KVP("bytes",bytes));
50+
return t;
51+
}
52+
53+
}

0 commit comments

Comments
 (0)