summaryrefslogtreecommitdiff
path: root/libsi/descriptor.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-01-11 11:38:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-01-11 11:38:00 +0100
commited118b079f0cc1f6c88c386ea3c2c9adf529b02e (patch)
tree2a4d45ac1d6dc6bd569c1be11dcd9e2b9b5989be /libsi/descriptor.c
parent48de95f5d2ed662d724a765ec11aa0eb2ef7dfb9 (diff)
downloadvdr-ed118b079f0cc1f6c88c386ea3c2c9adf529b02e.tar.gz
vdr-ed118b079f0cc1f6c88c386ea3c2c9adf529b02e.tar.bz2
Added support for DVB-T2 to libsi
Diffstat (limited to 'libsi/descriptor.c')
-rw-r--r--libsi/descriptor.c48
1 files changed, 47 insertions, 1 deletions
diff --git a/libsi/descriptor.c b/libsi/descriptor.c
index 5efa421c..07429b54 100644
--- a/libsi/descriptor.c
+++ b/libsi/descriptor.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: descriptor.c 2.3 2011/12/10 15:47:15 kls Exp $
+ * $Id: descriptor.c 2.4 2012/01/11 11:35:17 kls Exp $
* *
***************************************************************************/
@@ -876,6 +876,52 @@ int ExtensionDescriptor::getExtensionDescriptorTag() const {
return s->descriptor_tag_extension;
}
+void T2DeliverySystemDescriptor::Parse() {
+ int offset=0;
+ data.setPointerAndOffset<const descr_t2_delivery_system>(s, offset);
+ extended_data_flag = s->descriptor_length > 0x04;
+}
+
+int T2DeliverySystemDescriptor::getExtendedDataFlag() const {
+ return extended_data_flag;
+}
+
+int T2DeliverySystemDescriptor::getExtensionDescriptorTag() const {
+ return s->descriptor_tag_extension;
+}
+
+int T2DeliverySystemDescriptor::getPlpId() const {
+ return s->plp_id;
+}
+
+int T2DeliverySystemDescriptor::getT2SystemId() const {
+ return HILO(s->t2_system_id);
+}
+
+int T2DeliverySystemDescriptor::getSisoMiso() const {
+ return extended_data_flag ? s->siso_miso : -1;
+}
+
+int T2DeliverySystemDescriptor::getBandwidth() const {
+ return extended_data_flag ? s->bandwidth : -1;
+}
+
+int T2DeliverySystemDescriptor::getGuardInterval() const {
+ return extended_data_flag ? s->guard_interval : -1;
+}
+
+int T2DeliverySystemDescriptor::getTransmissionMode() const {
+ return extended_data_flag ? s->transmission_mode : -1;
+}
+
+int T2DeliverySystemDescriptor::getOtherFrequencyFlag() const {
+ return extended_data_flag ? s->other_frequency_flag : -1;
+}
+
+int T2DeliverySystemDescriptor::getTfsFlag() const {
+ return extended_data_flag ? s->tfs_flag : -1;
+}
+
int PremiereContentTransmissionDescriptor::getOriginalNetworkId() const {
return HILO(s->original_network_id);
}