1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added support for DVB-T2 to libsi

This commit is contained in:
Klaus Schmidinger 2012-01-11 11:38:00 +01:00
parent 48de95f5d2
commit ed118b079f
6 changed files with 115 additions and 4 deletions

View File

@ -1121,6 +1121,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
for adding file name and line number to LOG_ERROR_STR() for adding file name and line number to LOG_ERROR_STR()
for replacing all calls to sleep() with cCondWait::SleepMs() for replacing all calls to sleep() with cCondWait::SleepMs()
for fixing cDvbSubtitleConverter::SetOsdData() for fixing cDvbSubtitleConverter::SetOsdData()
for adding support for DVB-T2 to libsi
Ralf Klueber <ralf.klueber@vodafone.com> Ralf Klueber <ralf.klueber@vodafone.com>
for reporting a bug in cutting a recording if there is only a single editing mark for reporting a bug in cutting a recording if there is only a single editing mark

View File

@ -6809,3 +6809,4 @@ Video Disk Recorder Revision History
- Fixed cDvbSubtitleConverter::SetOsdData() (thanks to Rolf Ahrenberg). - Fixed cDvbSubtitleConverter::SetOsdData() (thanks to Rolf Ahrenberg).
- Fixed cListBase::Move() in case From and To are equal (reported by Sundararaj - Fixed cListBase::Move() in case From and To are equal (reported by Sundararaj
Reel). Reel).
- Added support for DVB-T2 to libsi (thanks to Rolf Ahrenberg).

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (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; 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 { int PremiereContentTransmissionDescriptor::getOriginalNetworkId() const {
return HILO(s->original_network_id); return HILO(s->original_network_id);
} }

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* $Id: descriptor.h 2.3 2011/12/10 15:47:15 kls Exp $ * $Id: descriptor.h 2.4 2012/01/11 11:35:17 kls Exp $
* * * *
***************************************************************************/ ***************************************************************************/
@ -538,6 +538,25 @@ private:
const descr_extension *s; const descr_extension *s;
}; };
class T2DeliverySystemDescriptor : public Descriptor {
public:
int getExtendedDataFlag() const;
int getExtensionDescriptorTag() const;
int getPlpId() const;
int getT2SystemId() const;
int getSisoMiso() const;
int getBandwidth() const;
int getGuardInterval() const;
int getTransmissionMode() const;
int getOtherFrequencyFlag() const;
int getTfsFlag() const;
protected:
virtual void Parse();
private:
const descr_t2_delivery_system *s;
int extended_data_flag;
};
// Private DVB Descriptor Premiere.de // Private DVB Descriptor Premiere.de
// 0xF2 Content Transmission Descriptor // 0xF2 Content Transmission Descriptor
// http://dvbsnoop.sourceforge.net/examples/example-private-section.html // http://dvbsnoop.sourceforge.net/examples/example-private-section.html

View File

@ -10,7 +10,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* $Id: headers.h 2.3 2011/12/10 15:47:15 kls Exp $ * $Id: headers.h 2.4 2012/01/11 11:35:17 kls Exp $
* * * *
***************************************************************************/ ***************************************************************************/
@ -1839,6 +1839,37 @@ struct descr_extension {
u_char descriptor_tag_extension :8; u_char descriptor_tag_extension :8;
}; };
/* extension 0x04 t2_delivery_system_descriptor */
struct descr_t2_delivery_system {
u_char descriptor_tag :8;
u_char descriptor_length :8;
u_char descriptor_tag_extension :8;
u_char plp_id :8;
u_char t2_system_id_hi :8;
u_char t2_system_id_lo :8;
#if BYTE_ORDER == BIG_ENDIAN
u_char siso_miso :2;
u_char bandwidth :4;
u_char reserved :2;
u_char guard_interval :3;
u_char transmission_mode :3;
u_char other_frequency_flag :1;
u_char tfs_flag :1;
#else
u_char reserved :2;
u_char bandwidth :4;
u_char siso_miso :2;
u_char tfs_flag :1;
u_char other_frequency_flag :1;
u_char transmission_mode :3;
u_char guard_interval :3;
#endif
/* now follow cell_id, frequency_loop_length, centre_frequency,
subcell_info_loop_length, cell_id_extension, transposer_frequency
fields looping to the end */
};
/* MHP 0x00 application_descriptor */ /* MHP 0x00 application_descriptor */
#define DESCR_APPLICATION_LEN 3 #define DESCR_APPLICATION_LEN 3

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* $Id: si.h 2.4 2011/12/10 15:47:15 kls Exp $ * $Id: si.h 2.5 2012/01/11 11:35:17 kls Exp $
* * * *
***************************************************************************/ ***************************************************************************/
@ -134,6 +134,19 @@ enum DescriptorTag {
DTSDescriptorTag = 0x7B, DTSDescriptorTag = 0x7B,
AACDescriptorTag = 0x7C, AACDescriptorTag = 0x7C,
ExtensionDescriptorTag = 0x7F, ExtensionDescriptorTag = 0x7F,
// Extension descriptors
ImageIconDescriptorTag = 0x00,
CpcmDeliverySignallingDescriptor = 0x01,
CPDescriptorTag = 0x02,
CPIdentifierDescriptorTag = 0x03,
T2DeliverySystemDescriptorTag = 0x04,
SHDeliverySystemDescriptorTag = 0x05,
SupplementaryAudioDescriptorTag = 0x06,
NetworkChangeNotifyDescriptorTag = 0x07,
MessageDescriptorTag = 0x08,
TargetRegionDescriptorTag = 0x09,
TargetRegionNameDescriptorTag = 0x0A,
ServiceRelocatedDescriptorTag = 0x0B,
// Defined by ETSI TS 102 812 (MHP) // Defined by ETSI TS 102 812 (MHP)
// They once again start with 0x00 (see page 234, MHP specification) // They once again start with 0x00 (see page 234, MHP specification)