mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Added support for "registration descriptor"
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* $Id: descriptor.c 1.22 2007/02/03 11:45:58 kls Exp $
|
||||
* $Id: descriptor.c 2.1 2010/11/01 15:24:31 kls Exp $
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -1032,4 +1032,15 @@ void MHP_ApplicationIconsDescriptor::Parse() {
|
||||
data.setPointerAndOffset<const descr_application_icons_descriptor_end>(s, offset);
|
||||
}
|
||||
|
||||
int RegistrationDescriptor::getFormatIdentifier() const {
|
||||
return HILOHILO(s->format_identifier);
|
||||
}
|
||||
|
||||
void RegistrationDescriptor::Parse() {
|
||||
int offset=0;
|
||||
data.setPointerAndOffset<const descr_registration>(s, offset);
|
||||
if (checkSize(getLength()-offset))
|
||||
privateData.assign(data.getData(offset), getLength()-offset);
|
||||
}
|
||||
|
||||
} //end of namespace
|
||||
|
@@ -6,7 +6,7 @@
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* $Id: descriptor.h 1.16 2007/02/03 11:45:58 kls Exp $
|
||||
* $Id: descriptor.h 2.1 2010/11/01 15:24:32 kls Exp $
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -660,6 +660,16 @@ private:
|
||||
const descr_application_icons_descriptor_end *s;
|
||||
};
|
||||
|
||||
class RegistrationDescriptor : public Descriptor {
|
||||
public:
|
||||
int getFormatIdentifier() const;
|
||||
CharArray privateData;
|
||||
protected:
|
||||
virtual void Parse();
|
||||
private:
|
||||
const descr_registration *s;
|
||||
};
|
||||
|
||||
} //end of namespace
|
||||
|
||||
#endif //LIBSI_TABLE_H
|
||||
|
@@ -10,7 +10,7 @@
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* $Id: headers.h 1.9 2007/02/03 11:45:58 kls Exp $
|
||||
* $Id: headers.h 2.1 2010/11/01 15:24:32 kls Exp $
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -2006,6 +2006,18 @@ struct item_premiere_content_transmission_time {
|
||||
u_char start_time_s :8;
|
||||
};
|
||||
|
||||
/* 0x05 registration_descriptor */
|
||||
|
||||
#define DESCR_REGISTRATION_LEN 6
|
||||
struct descr_registration {
|
||||
u_char descriptor_tag :8;
|
||||
u_char descriptor_length :8;
|
||||
u_char format_identifier_hi_hi :8;
|
||||
u_char format_identifier_hi_lo :8;
|
||||
u_char format_identifier_lo_hi :8;
|
||||
u_char format_identifier_lo_lo :8;
|
||||
};
|
||||
|
||||
} //end of namespace
|
||||
|
||||
#endif //LIBSI_HEADERS_H
|
||||
|
@@ -6,7 +6,7 @@
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* $Id: si.c 2.2 2010/02/13 10:31:52 kls Exp $
|
||||
* $Id: si.c 2.3 2010/11/01 15:24:32 kls Exp $
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -606,6 +606,9 @@ Descriptor *Descriptor::getDescriptor(CharArray da, DescriptorTagDomain domain,
|
||||
case ExtensionDescriptorTag:
|
||||
d=new ExtensionDescriptor();
|
||||
break;
|
||||
case RegistrationDescriptorTag:
|
||||
d=new RegistrationDescriptor();
|
||||
break;
|
||||
|
||||
//note that it is no problem to implement one
|
||||
//of the unimplemented descriptors.
|
||||
@@ -614,7 +617,6 @@ Descriptor *Descriptor::getDescriptor(CharArray da, DescriptorTagDomain domain,
|
||||
case VideoStreamDescriptorTag:
|
||||
case AudioStreamDescriptorTag:
|
||||
case HierarchyDescriptorTag:
|
||||
case RegistrationDescriptorTag:
|
||||
case DataStreamAlignmentDescriptorTag:
|
||||
case TargetBackgroundGridDescriptorTag:
|
||||
case VideoWindowDescriptorTag:
|
||||
|
@@ -6,7 +6,7 @@
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* $Id: util.h 2.1 2008/05/22 10:49:08 kls Exp $
|
||||
* $Id: util.h 2.2 2010/11/01 15:24:32 kls Exp $
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#define HILO(x) (x##_hi << 8 | x##_lo)
|
||||
#define HILOHILO(x) (x##_hi_hi << 24 | x##_hi_lo << 16 | x##_lo_hi << 8 | x##_lo_lo)
|
||||
#define BCD_TIME_TO_SECONDS(x) ((3600 * ((10*((x##_h & 0xF0)>>4)) + (x##_h & 0xF))) + \
|
||||
(60 * ((10*((x##_m & 0xF0)>>4)) + (x##_m & 0xF))) + \
|
||||
((10*((x##_s & 0xF0)>>4)) + (x##_s & 0xF)))
|
||||
|
Reference in New Issue
Block a user