Commit 61277eae authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar

mass rename of structs and functions

parent c1ace456
......@@ -5,6 +5,7 @@ use warnings;
use File::Find;
use Tie::File;
use Data::Dumper;
use File::Basename;
my @dr_headers;
......@@ -16,7 +17,37 @@ find(\&wanted_dr_h, 'src/descriptors');
for(@dr_headers) {
my $hdrinfo = parse_header($_);
next if not defined $hdrinfo;
if(not defined $hdrinfo) {
if(/dr_a1\.h$/) {
$hdrinfo = {
old => { stru => 'dvbpsi_service_location_dr',
gen => 'dvbpsi_GenServiceLocationDr',
decode => 'dvbpsi_DecodeServiceLocationDr'
},
new => { stru => 'dvbpsi_atsc_service_location_dr',
gen => 'dvbpsi_gen_atsc_service_location_dr',
decode => 'dvbpsi_decode_atsc_service_location_dr'
}
}
}
elsif(/dr_49\.h$/) {
$hdrinfo = {
old => { stru => 'dvbpsi_country_availability_dr',
gen => 'dvbpsi_GenCountryAvailabilityDr',
decode => 'dvbpsi_DecodeCountryAvailability'
},
new => { stru => 'dvbpsi_dvb_country_availability_dr',
gen => 'dvbpsi_gen_dvb_country_availability_dr',
decode => 'dvbpsi_decode_dvb_country_availability_dr'
}
}
}
else {
print STDERR "Failed to process $_\n";
next;
}
}
replace_names($hdrinfo);
}
exit 0;
......@@ -24,12 +55,11 @@ exit 0;
sub parse_header {
my $dr_h = shift;
my $sname;
my $decode_start;
my $fname;
my @decode_decl;
my @file;
my $rv;
tie @file, 'Tie::File', $dr_h or die "Can't open $dr_h";
print $dr_h . "\n";
for(@file) {
if(/^typedef struct dvbpsi_(.*?)_dr_(?:t|s)$/) {
......@@ -37,12 +67,11 @@ sub parse_header {
last;
}
}
return undef if not defined $sname;
goto end if not defined $sname;
for(my $i = 0 ; $i < scalar(@file) ; ++$i) {
if($file[$i] =~ /^dvbpsi_${sname}_dr_t *?\* *?dvbpsi_Decode(.*?)Dr/) {
$fname = $1;
$decode_start = $i;
push @decode_decl, $file[$i];
last if($file[$i] =~ /.*;.*/);
$i++;
......@@ -57,10 +86,59 @@ sub parse_header {
}
}
}
return undef if not defined $fname;
goto end if not defined $fname;
$dr_h =~ /dr_([0-9a-f]{2})\.h$/;
my $drnum = hex($1);
my $oldinfo = {
stru => "dvbpsi_${sname}_dr",
gen => "dvbpsi_Gen${fname}Dr",
decode => "dvbpsi_Decode${fname}Dr"
};
$rv = { old => $oldinfo, new => get_new_hdrinfo($sname, get_dr_system($drnum)) };
end:
untie @file;
return 0;
return $rv;
}
sub get_dr_system {
my $drnum = shift;
return "mpeg" if $drnum >= 2 && $drnum <= 63;
return "dvb" if $drnum >= 64 && $drnum <= 127;
return "atsc" if $drnum == 0xa0 || $drnum == 0x86 || $drnum == 0x81;
return "eacem" if $drnum == 0x83;
return "scte" if $drnum == 0x8a;
return "custom" if $drnum >= 128 && $drnum <= 254;
die "Forbidden descriptor $drnum";
}
sub get_new_hdrinfo {
(my $sname, my $sys) = @_;
return {
stru => "dvbpsi_${sys}_${sname}_dr",
gen => "dvbpsi_gen_${sys}_${sname}_dr",
decode => "dvbpsi_decode_${sys}_${sname}_dr"
}
}
my $replacer;
sub wanted_global_c_or_h {
return unless /\.(c|h)$/;
my @file;
my $old = $replacer->{old};
my $new = $replacer->{new};
tie @file, 'Tie::File', $_ or die "Cannot open $_";
for(@file) {
s/$old->{stru}/$new->{stru}/g;
s/$old->{gen}/$new->{gen}/g;
s/$old->{decode}/$new->{decode}/g;
}
untie @file;
}
sub replace_names {
$replacer = shift;
find(\&wanted_global_c_or_h, '.');
}
......@@ -414,7 +414,7 @@ static char const* GetTypeName(uint8_t type)
/*****************************************************************************
* DumpMaxBitrateDescriptor
*****************************************************************************/
static void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
static void DumpMaxBitrateDescriptor(dvbpsi_mpeg_max_bitrate_dr_t* bitrate_descriptor)
{
fprintf( stderr, "Bitrate: %d\n", bitrate_descriptor->i_max_bitrate);
}
......@@ -422,7 +422,7 @@ static void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor
/*****************************************************************************
* DumpSystemClockDescriptor
*****************************************************************************/
static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
static void DumpSystemClockDescriptor(dvbpsi_mpeg_system_clock_dr_t* p_clock_descriptor)
{
fprintf( stderr, "External clock: %s, Accuracy: %E\n",
p_clock_descriptor->b_external_clock_ref ? "Yes" : "No",
......@@ -433,7 +433,7 @@ static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descript
/*****************************************************************************
* DumpStreamIdentifierDescriptor
*****************************************************************************/
static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descriptor)
static void DumpStreamIdentifierDescriptor(dvbpsi_dvb_stream_identifier_dr_t* p_si_descriptor)
{
fprintf( stderr, "Component tag: %d\n",
p_si_descriptor->i_component_tag);
......@@ -442,7 +442,7 @@ static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_d
/*****************************************************************************
* DumpSubtitleDescriptor
*****************************************************************************/
static void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
static void DumpSubtitleDescriptor(dvbpsi_dvb_subtitling_dr_t* p_subtitle_descriptor)
{
int a;
......@@ -472,16 +472,16 @@ static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
switch (p_descriptor->i_tag)
{
case SYSTEM_CLOCK_DR:
DumpSystemClockDescriptor(dvbpsi_DecodeSystemClockDr(p_descriptor));
DumpSystemClockDescriptor(dvbpsi_decode_mpeg_system_clock_dr(p_descriptor));
break;
case MAX_BITRATE_DR:
DumpMaxBitrateDescriptor(dvbpsi_DecodeMaxBitrateDr(p_descriptor));
DumpMaxBitrateDescriptor(dvbpsi_decode_mpeg_max_bitrate_dr(p_descriptor));
break;
case STREAM_IDENTIFIER_DR:
DumpStreamIdentifierDescriptor(dvbpsi_DecodeStreamIdentifierDr(p_descriptor));
DumpStreamIdentifierDescriptor(dvbpsi_decode_dvb_stream_identifier_dr(p_descriptor));
break;
case SUBTITLING_DR:
DumpSubtitleDescriptor(dvbpsi_DecodeSubtitlingDr(p_descriptor));
DumpSubtitleDescriptor(dvbpsi_decode_dvb_subtitling_dr(p_descriptor));
break;
default:
fprintf( stderr, "\"");
......
......@@ -132,7 +132,7 @@ static char* GetTypeName(uint8_t type)
/*****************************************************************************
* DumpMaxBitrateDescriptor
*****************************************************************************/
static void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
static void DumpMaxBitrateDescriptor(dvbpsi_mpeg_max_bitrate_dr_t* bitrate_descriptor)
{
printf("Bitrate: %d\n", bitrate_descriptor->i_max_bitrate);
}
......@@ -140,7 +140,7 @@ static void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor
/*****************************************************************************
* DumpSystemClockDescriptor
*****************************************************************************/
static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
static void DumpSystemClockDescriptor(dvbpsi_mpeg_system_clock_dr_t* p_clock_descriptor)
{
printf("External clock: %s, Accuracy: %E\n",
p_clock_descriptor->b_external_clock_ref ? "Yes" : "No",
......@@ -151,7 +151,7 @@ static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descript
/*****************************************************************************
* DumpStreamIdentifierDescriptor
*****************************************************************************/
static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descriptor)
static void DumpStreamIdentifierDescriptor(dvbpsi_dvb_stream_identifier_dr_t* p_si_descriptor)
{
printf("Component tag: %d\n",
p_si_descriptor->i_component_tag);
......@@ -160,7 +160,7 @@ static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_d
/*****************************************************************************
* DumpSubtitleDescriptor
*****************************************************************************/
static void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
static void DumpSubtitleDescriptor(dvbpsi_dvb_subtitling_dr_t* p_subtitle_descriptor)
{
int a;
......@@ -190,16 +190,16 @@ static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
switch (p_descriptor->i_tag)
{
case SYSTEM_CLOCK_DR:
DumpSystemClockDescriptor(dvbpsi_DecodeSystemClockDr(p_descriptor));
DumpSystemClockDescriptor(dvbpsi_decode_mpeg_system_clock_dr(p_descriptor));
break;
case MAX_BITRATE_DR:
DumpMaxBitrateDescriptor(dvbpsi_DecodeMaxBitrateDr(p_descriptor));
DumpMaxBitrateDescriptor(dvbpsi_decode_mpeg_max_bitrate_dr(p_descriptor));
break;
case STREAM_IDENTIFIER_DR:
DumpStreamIdentifierDescriptor(dvbpsi_DecodeStreamIdentifierDr(p_descriptor));
DumpStreamIdentifierDescriptor(dvbpsi_decode_dvb_stream_identifier_dr(p_descriptor));
break;
case SUBTITLING_DR:
DumpSubtitleDescriptor(dvbpsi_DecodeSubtitlingDr(p_descriptor));
DumpSubtitleDescriptor(dvbpsi_decode_dvb_subtitling_dr(p_descriptor));
break;
default:
printf("\"");
......
This diff is collapsed.
......@@ -41,11 +41,11 @@
#include "dr_02.h"
/*****************************************************************************
* dvbpsi_DecodeVStreamDr
* dvbpsi_decode_mpeg_vstream_dr
*****************************************************************************/
dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_mpeg_vstream_dr_t * dvbpsi_decode_mpeg_vstream_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_vstream_dr_t * p_decoded;
dvbpsi_mpeg_vstream_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x02))
......@@ -56,7 +56,7 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_vstream_dr_t*)malloc(sizeof(dvbpsi_vstream_dr_t));
p_decoded = (dvbpsi_mpeg_vstream_dr_t*)malloc(sizeof(dvbpsi_mpeg_vstream_dr_t));
if(!p_decoded) return NULL;
/* Decode data and check the length */
......@@ -88,9 +88,9 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
/*****************************************************************************
* dvbpsi_GenVStreamDr
* dvbpsi_gen_mpeg_vstream_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_vstream_dr(dvbpsi_mpeg_vstream_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -123,7 +123,7 @@ dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_vstream_dr_t));
sizeof(dvbpsi_mpeg_vstream_dr_t));
}
return p_descriptor;
......
......@@ -41,20 +41,20 @@ extern "C" {
/*****************************************************************************
* dvbpsi_vstream_dr_t
* dvbpsi_mpeg_vstream_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_vstream_dr_s
* \struct dvbpsi_mpeg_vstream_dr_s
* \brief "video stream" descriptor structure.
*
* This structure is used to store a decoded "video stream" descriptor.
* (ISO/IEC 13818-1 section 2.6.2).
*/
/*!
* \typedef struct dvbpsi_vstream_dr_s dvbpsi_vstream_dr_t
* \brief dvbpsi_vstream_dr_t type definition.
* \typedef struct dvbpsi_mpeg_vstream_dr_s dvbpsi_mpeg_vstream_dr_t
* \brief dvbpsi_mpeg_vstream_dr_t type definition.
*/
typedef struct dvbpsi_vstream_dr_s
typedef struct dvbpsi_mpeg_vstream_dr_s
{
bool b_multiple_frame_rate; /*!< multiple_frame_rate_flag */
uint8_t i_frame_rate_code; /*!< frame_rate_code */
......@@ -67,36 +67,36 @@ typedef struct dvbpsi_vstream_dr_s
uint8_t i_chroma_format; /*!< chroma_format */
bool b_frame_rate_extension; /*!< frame_rate_extension_flag */
} dvbpsi_vstream_dr_t;
} dvbpsi_mpeg_vstream_dr_t;
/*****************************************************************************
* dvbpsi_DecodeVStreamDr
* dvbpsi_decode_mpeg_vstream_dr
*****************************************************************************/
/*!
* \fn dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(
* \fn dvbpsi_mpeg_vstream_dr_t * dvbpsi_decode_mpeg_vstream_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "video stream" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "video stream" descriptor structure which
* contains the decoded data.
*/
dvbpsi_vstream_dr_t* dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_mpeg_vstream_dr_t* dvbpsi_decode_mpeg_vstream_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenVStreamDr
* dvbpsi_gen_mpeg_vstream_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(
dvbpsi_vstream_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_vstream_dr(
dvbpsi_mpeg_vstream_dr_t * p_decoded, bool b_duplicate)
* \brief "video stream" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_vstream_dr(dvbpsi_mpeg_vstream_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,11 +42,11 @@
/*****************************************************************************
* dvbpsi_DecodeAStreamDr
* dvbpsi_decode_mpeg_astream_dr
*****************************************************************************/
dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_mpeg_astream_dr_t * dvbpsi_decode_mpeg_astream_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_astream_dr_t * p_decoded;
dvbpsi_mpeg_astream_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x03))
......@@ -57,7 +57,7 @@ dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor)
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_astream_dr_t*)malloc(sizeof(dvbpsi_astream_dr_t));
p_decoded = (dvbpsi_mpeg_astream_dr_t*)malloc(sizeof(dvbpsi_mpeg_astream_dr_t));
if(!p_decoded) return NULL;
/* Decode data and check the length */
......@@ -79,9 +79,9 @@ dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor)
/*****************************************************************************
* dvbpsi_GenAStreamDr
* dvbpsi_gen_mpeg_astream_dr
*****************************************************************************/
dvbpsi_descriptor_t *dvbpsi_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_mpeg_astream_dr(dvbpsi_mpeg_astream_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -103,7 +103,7 @@ dvbpsi_descriptor_t *dvbpsi_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_astream_dr_t));
sizeof(dvbpsi_mpeg_astream_dr_t));
}
return p_descriptor;
......
......@@ -41,56 +41,56 @@ extern "C" {
/*****************************************************************************
* dvbpsi_astream_dr_t
* dvbpsi_mpeg_astream_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_astream_dr_s
* \struct dvbpsi_mpeg_astream_dr_s
* \brief "audio stream" descriptor structure.
*
* This structure is used to store a decoded "audio stream" descriptor.
* (ISO/IEC 13818-1 section 2.6.4).
*/
/*!
* \typedef struct dvbpsi_astream_dr_s dvbpsi_astream_dr_t
* \brief dvbpsi_astream_dr_t type definition.
* \typedef struct dvbpsi_mpeg_astream_dr_s dvbpsi_mpeg_astream_dr_t
* \brief dvbpsi_mpeg_astream_dr_t type definition.
*/
typedef struct dvbpsi_astream_dr_s
typedef struct dvbpsi_mpeg_astream_dr_s
{
bool b_free_format; /*!< free_format_flag */
uint8_t i_id; /*!< ID */
uint8_t i_layer; /*!< layer */
bool b_variable_rate_audio_indicator; /*!< variable_rate_audio_indicator */
} dvbpsi_astream_dr_t;
} dvbpsi_mpeg_astream_dr_t;
/*****************************************************************************
* dvbpsi_DecodeAStreamDr
* dvbpsi_decode_mpeg_astream_dr
*****************************************************************************/
/*!
* \fn dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(
* \fn dvbpsi_mpeg_astream_dr_t * dvbpsi_decode_mpeg_astream_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "audio stream" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "audio stream" descriptor structure which
* contains the decoded data.
*/
dvbpsi_astream_dr_t* dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_mpeg_astream_dr_t* dvbpsi_decode_mpeg_astream_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenAStreamDr
* dvbpsi_gen_mpeg_astream_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenAStreamDr(
dvbpsi_astream_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_astream_dr(
dvbpsi_mpeg_astream_dr_t * p_decoded, bool b_duplicate)
* \brief "audio stream" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_astream_dr(dvbpsi_mpeg_astream_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeHierarchyDr
* dvbpsi_decode_mpeg_hierarchy_dr
*****************************************************************************/
dvbpsi_hierarchy_dr_t * dvbpsi_DecodeHierarchyDr(
dvbpsi_mpeg_hierarchy_dr_t * dvbpsi_decode_mpeg_hierarchy_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_hierarchy_dr_t * p_decoded;
dvbpsi_mpeg_hierarchy_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x04))
......@@ -58,7 +58,7 @@ dvbpsi_hierarchy_dr_t * dvbpsi_DecodeHierarchyDr(
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_hierarchy_dr_t*)malloc(sizeof(dvbpsi_hierarchy_dr_t));
p_decoded = (dvbpsi_mpeg_hierarchy_dr_t*)malloc(sizeof(dvbpsi_mpeg_hierarchy_dr_t));
if(!p_decoded) return NULL;
/* Decode data and check the length */
......@@ -80,9 +80,9 @@ dvbpsi_hierarchy_dr_t * dvbpsi_DecodeHierarchyDr(
/*****************************************************************************
* dvbpsi_GenHierarchyDr
* dvbpsi_gen_mpeg_hierarchy_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr(dvbpsi_hierarchy_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_hierarchy_dr(dvbpsi_mpeg_hierarchy_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -101,7 +101,7 @@ dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr(dvbpsi_hierarchy_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_hierarchy_dr_t));
sizeof(dvbpsi_mpeg_hierarchy_dr_t));
}
return p_descriptor;
......
......@@ -41,57 +41,57 @@ extern "C" {
/*****************************************************************************
* dvbpsi_hierarchy_dr_t
* dvbpsi_mpeg_hierarchy_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_hierarchy_dr_s
* \struct dvbpsi_mpeg_hierarchy_dr_s
* \brief "hierarchy" descriptor structure.
*
* This structure is used to store a decoded "hierarchy" descriptor.
* (ISO/IEC 13818-1 section 2.6.6).
*/
/*!
* \typedef struct dvbpsi_hierarchy_dr_s dvbpsi_hierarchy_dr_t
* \brief dvbpsi_hierarchy_dr_t type definition.
* \typedef struct dvbpsi_mpeg_hierarchy_dr_s dvbpsi_mpeg_hierarchy_dr_t
* \brief dvbpsi_mpeg_hierarchy_dr_t type definition.
*/
typedef struct dvbpsi_hierarchy_dr_s
typedef struct dvbpsi_mpeg_hierarchy_dr_s
{
uint8_t i_h_type; /*!< hierarchy_type */
uint8_t i_h_layer_index; /*!< hierarchy_layer_index */
uint8_t i_h_embedded_layer; /*!< hierarchy_embedded_layer */
uint8_t i_h_priority; /*!< hierarchy_priority */
} dvbpsi_hierarchy_dr_t;
} dvbpsi_mpeg_hierarchy_dr_t;
/*****************************************************************************
* dvbpsi_DecodeHierarchyDr
* dvbpsi_decode_mpeg_hierarchy_dr
*****************************************************************************/
/*!
* \fn dvbpsi_hierarchy_dr_t * dvbpsi_DecodeHierarchyDr(
* \fn dvbpsi_mpeg_hierarchy_dr_t * dvbpsi_decode_mpeg_hierarchy_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "hierarchy" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "hierarchy" descriptor structure which
* contains the decoded data.
*/
dvbpsi_hierarchy_dr_t* dvbpsi_DecodeHierarchyDr(
dvbpsi_mpeg_hierarchy_dr_t* dvbpsi_decode_mpeg_hierarchy_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenHierarchyDr
* dvbpsi_gen_mpeg_hierarchy_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr(
dvbpsi_hierarchy_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_hierarchy_dr(
dvbpsi_mpeg_hierarchy_dr_t * p_decoded, bool b_duplicate)
* \brief "hierarchy" descriptor generator.
* \param p_decoded pointer to a decoded "hierarchy" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr(dvbpsi_hierarchy_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_hierarchy_dr(dvbpsi_mpeg_hierarchy_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeRegistrationDr
* dvbpsi_decode_mpeg_registration_dr
*****************************************************************************/
dvbpsi_registration_dr_t * dvbpsi_DecodeRegistrationDr(
dvbpsi_mpeg_registration_dr_t * dvbpsi_decode_mpeg_registration_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_registration_dr_t * p_decoded;
dvbpsi_mpeg_registration_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x05))
......@@ -58,8 +58,8 @@ dvbpsi_registration_dr_t * dvbpsi_DecodeRegistrationDr(
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_registration_dr_t*)
malloc(sizeof(dvbpsi_registration_dr_t));
p_decoded = (dvbpsi_mpeg_registration_dr_t*)
malloc(sizeof(dvbpsi_mpeg_registration_dr_t));
if(!p_decoded) return NULL;
/* Decode data and check the length */
......@@ -89,9 +89,9 @@ dvbpsi_registration_dr_t * dvbpsi_DecodeRegistrationDr(
/*****************************************************************************
* dvbpsi_GenRegistrationDr
* dvbpsi_gen_mpeg_registration_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr(dvbpsi_registration_dr_t *p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_registration_dr(dvbpsi_mpeg_registration_dr_t *p_decoded,
bool b_duplicate)
{
if (p_decoded->i_additional_length > 251)
......@@ -119,7 +119,7 @@ dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr(dvbpsi_registration_dr_t *p_decod
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_registration_dr_t));
sizeof(dvbpsi_mpeg_registration_dr_t));
}
return p_descriptor;
......
......@@ -41,58 +41,58 @@ extern "C" {
/*****************************************************************************
* dvbpsi_registration_dr_t
* dvbpsi_mpeg_registration_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_registration_dr_s
* \struct dvbpsi_mpeg_registration_dr_s
* \brief "registration" descriptor structure.
*
* This structure is used to store a decoded "registration" descriptor.
* (ISO/IEC 13818-1 section 2.6.8).
*/
/*!
* \typedef struct dvbpsi_registration_dr_s dvbpsi_registration_dr_t
* \brief dvbpsi_registration_dr_t type definition.
* \typedef struct dvbpsi_mpeg_registration_dr_s dvbpsi_mpeg_registration_dr_t
* \brief dvbpsi_mpeg_registration_dr_t type definition.
*/
typedef struct dvbpsi_registration_dr_s
typedef struct dvbpsi_mpeg_registration_dr_s
{
uint32_t i_format_identifier; /*!< format_identifier */
uint8_t i_additional_length; /*!< length of the i_additional_info
array */
uint8_t i_additional_info[251]; /*!< additional_identification_info */
} dvbpsi_registration_dr_t;
} dvbpsi_mpeg_registration_dr_t;
/*****************************************************************************
* dvbpsi_DecodeRegistrationDr
* dvbpsi_decode_mpeg_registration_dr
*****************************************************************************/
/*!
* \fn dvbpsi_registration_dr_t * dvbpsi_DecodeRegistrationDr(
* \fn dvbpsi_mpeg_registration_dr_t * dvbpsi_decode_mpeg_registration_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "registration" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "registration" descriptor structure which
* contains the decoded data.
*/
dvbpsi_registration_dr_t* dvbpsi_DecodeRegistrationDr(
dvbpsi_mpeg_registration_dr_t* dvbpsi_decode_mpeg_registration_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenRegistrationDr
* dvbpsi_gen_mpeg_registration_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr(
dvbpsi_registration_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_registration_dr(
dvbpsi_mpeg_registration_dr_t * p_decoded, bool b_duplicate)
* \brief "registration" descriptor generator.
* \param p_decoded pointer to a decoded "registration" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr(
dvbpsi_registration_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_registration_dr(
dvbpsi_mpeg_registration_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeDSAlignmentDr
* dvbpsi_decode_mpeg_ds_alignment_dr
*****************************************************************************/
dvbpsi_ds_alignment_dr_t * dvbpsi_DecodeDSAlignmentDr(
dvbpsi_mpeg_ds_alignment_dr_t * dvbpsi_decode_mpeg_ds_alignment_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_ds_alignment_dr_t * p_decoded;
dvbpsi_mpeg_ds_alignment_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x06))
......@@ -61,7 +61,7 @@ dvbpsi_ds_alignment_dr_t * dvbpsi_DecodeDSAlignmentDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_ds_alignment_dr_t*) malloc(sizeof(dvbpsi_ds_alignment_dr_t));
p_decoded = (dvbpsi_mpeg_ds_alignment_dr_t*) malloc(sizeof(dvbpsi_mpeg_ds_alignment_dr_t));
if(!p_decoded) return NULL;
p_decoded->i_alignment_type = p_descriptor->p_data[0];
......@@ -73,10 +73,10 @@ dvbpsi_ds_alignment_dr_t * dvbpsi_DecodeDSAlignmentDr(
/*****************************************************************************
* dvbpsi_GenDSAlignmentDr
* dvbpsi_gen_mpeg_ds_alignment_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr(
dvbpsi_ds_alignment_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ds_alignment_dr(
dvbpsi_mpeg_ds_alignment_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -92,7 +92,7 @@ dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_ds_alignment_dr_t));
sizeof(dvbpsi_mpeg_ds_alignment_dr_t));
}
return p_descriptor;
......
......@@ -41,47 +41,47 @@ extern "C" {
/*****************************************************************************
* dvbpsi_ds_alignment_dr_t
* dvbpsi_mpeg_ds_alignment_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_ds_alignment_dr_s
* \struct dvbpsi_mpeg_ds_alignment_dr_s
* \brief "data stream alignment" descriptor structure.
*
* This structure is used to store a decoded "data stream alignment"
* descriptor. (ISO/IEC 13818-1 section 2.6.10).
*/
/*!
* \typedef struct dvbpsi_ds_alignment_dr_s dvbpsi_ds_alignment_dr_t
* \brief dvbpsi_ds_alignment_dr_t type definition.
* \typedef struct dvbpsi_mpeg_ds_alignment_dr_s dvbpsi_mpeg_ds_alignment_dr_t
* \brief dvbpsi_mpeg_ds_alignment_dr_t type definition.
*/
typedef struct dvbpsi_ds_alignment_dr_s
typedef struct dvbpsi_mpeg_ds_alignment_dr_s
{
uint8_t i_alignment_type; /*!< alignment_type */
} dvbpsi_ds_alignment_dr_t;
} dvbpsi_mpeg_ds_alignment_dr_t;
/*****************************************************************************
* dvbpsi_DecodeDSAlignmentDr
* dvbpsi_decode_mpeg_ds_alignment_dr
*****************************************************************************/
/*!
* \fn dvbpsi_ds_alignment_dr_t * dvbpsi_DecodeDSAlignmentDr(
* \fn dvbpsi_mpeg_ds_alignment_dr_t * dvbpsi_decode_mpeg_ds_alignment_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "data stream alignment" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "data stream alignment" descriptor structure
* which contains the decoded data.
*/
dvbpsi_ds_alignment_dr_t* dvbpsi_DecodeDSAlignmentDr(
dvbpsi_mpeg_ds_alignment_dr_t* dvbpsi_decode_mpeg_ds_alignment_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenDSAlignmentDr
* dvbpsi_gen_mpeg_ds_alignment_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr(
dvbpsi_ds_alignment_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ds_alignment_dr(
dvbpsi_mpeg_ds_alignment_dr_t * p_decoded, bool b_duplicate)
* \brief "data stream alignment" descriptor generator.
* \param p_decoded pointer to a decoded "data stream alignment" descriptor
* structure
......@@ -89,8 +89,8 @@ dvbpsi_ds_alignment_dr_t* dvbpsi_DecodeDSAlignmentDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr(
dvbpsi_ds_alignment_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ds_alignment_dr(
dvbpsi_mpeg_ds_alignment_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeTargetBgGridDr
* dvbpsi_decode_mpeg_target_bg_grid_dr
*****************************************************************************/
dvbpsi_target_bg_grid_dr_t * dvbpsi_DecodeTargetBgGridDr(
dvbpsi_mpeg_target_bg_grid_dr_t * dvbpsi_decode_mpeg_target_bg_grid_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_target_bg_grid_dr_t * p_decoded;
dvbpsi_mpeg_target_bg_grid_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x07))
......@@ -61,7 +61,7 @@ dvbpsi_target_bg_grid_dr_t * dvbpsi_DecodeTargetBgGridDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_target_bg_grid_dr_t*) malloc(sizeof(dvbpsi_target_bg_grid_dr_t));
p_decoded = (dvbpsi_mpeg_target_bg_grid_dr_t*) malloc(sizeof(dvbpsi_mpeg_target_bg_grid_dr_t));
if (!p_decoded)
return NULL;
......@@ -80,9 +80,9 @@ dvbpsi_target_bg_grid_dr_t * dvbpsi_DecodeTargetBgGridDr(
/*****************************************************************************
* dvbpsi_GenTargetBgGridDr
* dvbpsi_gen_mpeg_target_bg_grid_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr(dvbpsi_target_bg_grid_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_target_bg_grid_dr(dvbpsi_mpeg_target_bg_grid_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -103,7 +103,7 @@ dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr(dvbpsi_target_bg_grid_dr_t * p_de
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_target_bg_grid_dr_t));
sizeof(dvbpsi_mpeg_target_bg_grid_dr_t));
}
return p_descriptor;
......
......@@ -41,49 +41,49 @@ extern "C" {
/*****************************************************************************
* dvbpsi_target_bg_grid_dr_t
* dvbpsi_mpeg_target_bg_grid_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_target_bg_grid_dr_s
* \struct dvbpsi_mpeg_target_bg_grid_dr_s
* \brief "target background grid" descriptor structure.
*
* This structure is used to store a decoded "target background grid"
* descriptor. (ISO/IEC 13818-1 section 2.6.12).
*/
/*!
* \typedef struct dvbpsi_target_bg_grid_dr_s dvbpsi_target_bg_grid_dr_t
* \brief dvbpsi_target_bg_grid_dr_t type definition.
* \typedef struct dvbpsi_mpeg_target_bg_grid_dr_s dvbpsi_mpeg_target_bg_grid_dr_t
* \brief dvbpsi_mpeg_target_bg_grid_dr_t type definition.
*/
typedef struct dvbpsi_target_bg_grid_dr_s
typedef struct dvbpsi_mpeg_target_bg_grid_dr_s
{
uint16_t i_horizontal_size; /*!< horizontal_size */
uint16_t i_vertical_size; /*!< vertical_size */
uint8_t i_pel_aspect_ratio; /*!< pel_aspect_ratio */
} dvbpsi_target_bg_grid_dr_t;
} dvbpsi_mpeg_target_bg_grid_dr_t;
/*****************************************************************************
* dvbpsi_DecodeTargetBgGridDr
* dvbpsi_decode_mpeg_target_bg_grid_dr
*****************************************************************************/
/*!
* \fn dvbpsi_target_bg_grid_dr_t * dvbpsi_DecodeTargetBgGridDr(
* \fn dvbpsi_mpeg_target_bg_grid_dr_t * dvbpsi_decode_mpeg_target_bg_grid_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "target background grid" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "target background grid" descriptor structure
* which contains the decoded data.
*/
dvbpsi_target_bg_grid_dr_t* dvbpsi_DecodeTargetBgGridDr(
dvbpsi_mpeg_target_bg_grid_dr_t* dvbpsi_decode_mpeg_target_bg_grid_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenTargetBgGridDr
* dvbpsi_gen_mpeg_target_bg_grid_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr(
dvbpsi_target_bg_grid_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_target_bg_grid_dr(
dvbpsi_mpeg_target_bg_grid_dr_t * p_decoded, bool b_duplicate)
* \brief "target background grid" descriptor generator.
* \param p_decoded pointer to a decoded "target background grid" descriptor
* structure
......@@ -91,8 +91,8 @@ dvbpsi_target_bg_grid_dr_t* dvbpsi_DecodeTargetBgGridDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr(
dvbpsi_target_bg_grid_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_target_bg_grid_dr(
dvbpsi_mpeg_target_bg_grid_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,11 +42,11 @@
/*****************************************************************************
* dvbpsi_DecodeVWindowDr
* dvbpsi_decode_mpeg_vwindow_dr
*****************************************************************************/
dvbpsi_vwindow_dr_t * dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_mpeg_vwindow_dr_t * dvbpsi_decode_mpeg_vwindow_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_vwindow_dr_t * p_decoded;
dvbpsi_mpeg_vwindow_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x08))
......@@ -60,7 +60,7 @@ dvbpsi_vwindow_dr_t * dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor)
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_vwindow_dr_t*)malloc(sizeof(dvbpsi_vwindow_dr_t));
p_decoded = (dvbpsi_mpeg_vwindow_dr_t*)malloc(sizeof(dvbpsi_mpeg_vwindow_dr_t));
if (!p_decoded)
return NULL;
......@@ -79,9 +79,9 @@ dvbpsi_vwindow_dr_t * dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor)
/*****************************************************************************
* dvbpsi_GenVWindowDr
* dvbpsi_gen_mpeg_vwindow_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenVWindowDr(dvbpsi_vwindow_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_vwindow_dr(dvbpsi_mpeg_vwindow_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -103,7 +103,7 @@ dvbpsi_descriptor_t * dvbpsi_GenVWindowDr(dvbpsi_vwindow_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_vwindow_dr_t));
sizeof(dvbpsi_mpeg_vwindow_dr_t));
}
return p_descriptor;
......
......@@ -41,55 +41,55 @@ extern "C" {
/*****************************************************************************
* dvbpsi_vwindow_dr_t
* dvbpsi_mpeg_vwindow_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_vwindow_dr_s
* \struct dvbpsi_mpeg_vwindow_dr_s
* \brief "video window" descriptor structure.
*
* This structure is used to store a decoded "video window"
* descriptor. (ISO/IEC 13818-1 section 2.6.14).
*/
/*!
* \typedef struct dvbpsi_vwindow_dr_s dvbpsi_vwindow_dr_t
* \brief dvbpsi_vwindow_dr_t type definition.
* \typedef struct dvbpsi_mpeg_vwindow_dr_s dvbpsi_mpeg_vwindow_dr_t
* \brief dvbpsi_mpeg_vwindow_dr_t type definition.
*/
typedef struct dvbpsi_vwindow_dr_s
typedef struct dvbpsi_mpeg_vwindow_dr_s
{
uint16_t i_horizontal_offset; /*!< horizontal_offset */
uint16_t i_vertical_offset; /*!< vertical_offset */
uint8_t i_window_priority; /*!< window_priority */
} dvbpsi_vwindow_dr_t;
} dvbpsi_mpeg_vwindow_dr_t;
/*****************************************************************************
* dvbpsi_DecodeVWindowDr
* dvbpsi_decode_mpeg_vwindow_dr
*****************************************************************************/
/*!
* \fn dvbpsi_vwindow_dr_t * dvbpsi_DecodeVWindowDr(
* \fn dvbpsi_mpeg_vwindow_dr_t * dvbpsi_decode_mpeg_vwindow_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "video window" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "video window" descriptor structure which
* contains the decoded data.
*/
dvbpsi_vwindow_dr_t* dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_mpeg_vwindow_dr_t* dvbpsi_decode_mpeg_vwindow_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenVWindowDr
* dvbpsi_gen_mpeg_vwindow_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenVWindowDr(
dvbpsi_vwindow_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_vwindow_dr(
dvbpsi_mpeg_vwindow_dr_t * p_decoded, bool b_duplicate)
* \brief "video window" descriptor generator.
* \param p_decoded pointer to a decoded "video window" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenVWindowDr(dvbpsi_vwindow_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_vwindow_dr(dvbpsi_mpeg_vwindow_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,11 +42,11 @@
/*****************************************************************************
* dvbpsi_DecodeCADr
* dvbpsi_decode_mpeg_ca_dr
*****************************************************************************/
dvbpsi_ca_dr_t * dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_mpeg_ca_dr_t * dvbpsi_decode_mpeg_ca_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_ca_dr_t * p_decoded;
dvbpsi_mpeg_ca_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x09))
......@@ -60,7 +60,7 @@ dvbpsi_ca_dr_t * dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor)
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_ca_dr_t*)malloc(sizeof(dvbpsi_ca_dr_t));
p_decoded = (dvbpsi_mpeg_ca_dr_t*)malloc(sizeof(dvbpsi_mpeg_ca_dr_t));
if (!p_decoded)
return NULL;
......@@ -83,9 +83,9 @@ dvbpsi_ca_dr_t * dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor)
}
/*****************************************************************************
* dvbpsi_GenCADr
* dvbpsi_gen_mpeg_ca_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCADr(dvbpsi_ca_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ca_dr(dvbpsi_mpeg_ca_dr_t * p_decoded,
bool b_duplicate)
{
if (p_decoded->i_private_length > 251)
......@@ -112,7 +112,7 @@ dvbpsi_descriptor_t * dvbpsi_GenCADr(dvbpsi_ca_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_ca_dr_t));
sizeof(dvbpsi_mpeg_ca_dr_t));
}
return p_descriptor;
......
......@@ -41,20 +41,20 @@ extern "C" {
/*****************************************************************************
* dvbpsi_ca_dr_t
* dvbpsi_mpeg_ca_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_ca_dr_s
* \struct dvbpsi_mpeg_ca_dr_s
* \brief "conditional access" descriptor structure.
*
* This structure is used to store a decoded "conditional access"
* descriptor. (ISO/IEC 13818-1 section 2.6.16).
*/
/*!
* \typedef struct dvbpsi_ca_dr_s dvbpsi_ca_dr_t
* \brief dvbpsi_ca_dr_t type definition.
* \typedef struct dvbpsi_mpeg_ca_dr_s dvbpsi_mpeg_ca_dr_t
* \brief dvbpsi_mpeg_ca_dr_t type definition.
*/
typedef struct dvbpsi_ca_dr_s
typedef struct dvbpsi_mpeg_ca_dr_s
{
uint16_t i_ca_system_id; /*!< CA_system_ID */
uint16_t i_ca_pid; /*!< CA_PID */
......@@ -62,29 +62,29 @@ typedef struct dvbpsi_ca_dr_s
array */
uint8_t i_private_data[251]; /*!< private_data_byte */
} dvbpsi_ca_dr_t;
} dvbpsi_mpeg_ca_dr_t;
/*****************************************************************************
* dvbpsi_DecodeCADr
* dvbpsi_decode_mpeg_ca_dr
*****************************************************************************/
/*!
* \fn dvbpsi_ca_dr_t * dvbpsi_DecodeCADr(
* \fn dvbpsi_mpeg_ca_dr_t * dvbpsi_decode_mpeg_ca_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "conditional access" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "conditional access" descriptor structure which
* contains the decoded data.
*/
dvbpsi_ca_dr_t* dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_mpeg_ca_dr_t* dvbpsi_decode_mpeg_ca_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenCADr
* dvbpsi_gen_mpeg_ca_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenCADr(
dvbpsi_ca_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ca_dr(
dvbpsi_mpeg_ca_dr_t * p_decoded, bool b_duplicate)
* \brief "conditional access" descriptor generator.
* \param p_decoded pointer to a decoded "conditional access" descriptor
* structure
......@@ -92,7 +92,7 @@ dvbpsi_ca_dr_t* dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor);
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenCADr(dvbpsi_ca_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ca_dr(dvbpsi_mpeg_ca_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,11 +42,11 @@
/*****************************************************************************
* dvbpsi_DecodeISO639Dr
* dvbpsi_decode_mpeg_iso639_dr
*****************************************************************************/
dvbpsi_iso639_dr_t * dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_mpeg_iso639_dr_t * dvbpsi_decode_mpeg_iso639_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_iso639_dr_t * p_decoded;
dvbpsi_mpeg_iso639_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x0a))
......@@ -61,7 +61,7 @@ dvbpsi_iso639_dr_t * dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor)
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_iso639_dr_t*)malloc(sizeof(dvbpsi_iso639_dr_t));
p_decoded = (dvbpsi_mpeg_iso639_dr_t*)malloc(sizeof(dvbpsi_mpeg_iso639_dr_t));
if (!p_decoded)
return NULL;
......@@ -85,9 +85,9 @@ dvbpsi_iso639_dr_t * dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor)
/*****************************************************************************
* dvbpsi_GenISO639Dr
* dvbpsi_gen_mpeg_iso639_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(dvbpsi_iso639_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_iso639_dr(dvbpsi_mpeg_iso639_dr_t * p_decoded,
bool b_duplicate)
{
if (p_decoded->i_code_count > 64)
......@@ -116,7 +116,7 @@ dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(dvbpsi_iso639_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_iso639_dr_t));
sizeof(dvbpsi_mpeg_iso639_dr_t));
}
return p_descriptor;
......
......@@ -42,20 +42,20 @@ extern "C" {
#define DR_0A_API_VER 2 /*!< descriptor 0a API version */
/*****************************************************************************
* dvbpsi_iso639_dr_t
* dvbpsi_mpeg_iso639_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_iso639_dr_s
* \struct dvbpsi_mpeg_iso639_dr_s
* \brief "ISO 639 language" descriptor structure.
*
* This structure is used to store a decoded "ISO 639 language"
* descriptor. (ISO/IEC 13818-1 section 2.6.18).
*/
/*!
* \typedef struct dvbpsi_iso639_dr_s dvbpsi_iso639_dr_t
* \brief dvbpsi_iso639_dr_t type definition.
* \typedef struct dvbpsi_mpeg_iso639_dr_s dvbpsi_mpeg_iso639_dr_t
* \brief dvbpsi_mpeg_iso639_dr_t type definition.
*/
typedef struct dvbpsi_iso639_dr_s
typedef struct dvbpsi_mpeg_iso639_dr_s
{
uint8_t i_code_count; /*!< length of the i_iso_639_code
array */
......@@ -64,29 +64,29 @@ typedef struct dvbpsi_iso639_dr_s
uint8_t i_audio_type; /*!< audio_type */
} code[64]; /*!< list of ISO 639 codes */
} dvbpsi_iso639_dr_t;
} dvbpsi_mpeg_iso639_dr_t;
/*****************************************************************************
* dvbpsi_DecodeISO639Dr
* dvbpsi_decode_mpeg_iso639_dr
*****************************************************************************/
/*!
* \fn dvbpsi_iso639_dr_t * dvbpsi_DecodeISO639Dr(
* \fn dvbpsi_mpeg_iso639_dr_t * dvbpsi_decode_mpeg_iso639_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "ISO 639 language" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "ISO 639 language" descriptor structure which
* contains the decoded data.
*/
dvbpsi_iso639_dr_t* dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_mpeg_iso639_dr_t* dvbpsi_decode_mpeg_iso639_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenISO639Dr
* dvbpsi_gen_mpeg_iso639_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(
dvbpsi_iso639_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_iso639_dr(
dvbpsi_mpeg_iso639_dr_t * p_decoded, bool b_duplicate)
* \brief "ISO 639 language" descriptor generator.
* \param p_decoded pointer to a decoded "ISO 639 language" descriptor
* structure
......@@ -94,7 +94,7 @@ dvbpsi_iso639_dr_t* dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor);
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(dvbpsi_iso639_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_iso639_dr(dvbpsi_mpeg_iso639_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeSystemClockDr
* dvbpsi_decode_mpeg_system_clock_dr
*****************************************************************************/
dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr(
dvbpsi_mpeg_system_clock_dr_t * dvbpsi_decode_mpeg_system_clock_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_system_clock_dr_t * p_decoded;
dvbpsi_mpeg_system_clock_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x0b))
......@@ -63,7 +63,7 @@ dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr(
/* Allocate memory */
p_decoded =
(dvbpsi_system_clock_dr_t*)malloc(sizeof(dvbpsi_system_clock_dr_t));
(dvbpsi_mpeg_system_clock_dr_t*)malloc(sizeof(dvbpsi_mpeg_system_clock_dr_t));
if (!p_decoded)
return NULL;
......@@ -77,9 +77,9 @@ dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr(
}
/*****************************************************************************
* dvbpsi_GenSystemClockDr
* dvbpsi_gen_mpeg_system_clock_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr(dvbpsi_system_clock_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_system_clock_dr(dvbpsi_mpeg_system_clock_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -100,7 +100,7 @@ dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr(dvbpsi_system_clock_dr_t * p_decod
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_system_clock_dr_t));
sizeof(dvbpsi_mpeg_system_clock_dr_t));
}
return p_descriptor;
......
......@@ -41,50 +41,50 @@ extern "C" {
/*****************************************************************************
* dvbpsi_system_clock_dr_t
* dvbpsi_mpeg_system_clock_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_system_clock_dr_s
* \struct dvbpsi_mpeg_system_clock_dr_s
* \brief "system clock" descriptor structure.
*
* This structure is used to store a decoded "system clock"
* descriptor. (ISO/IEC 13818-1 section 2.6.20).
*/
/*!
* \typedef struct dvbpsi_system_clock_dr_s dvbpsi_system_clock_dr_t
* \brief dvbpsi_system_clock_dr_t type definition.
* \typedef struct dvbpsi_mpeg_system_clock_dr_s dvbpsi_mpeg_system_clock_dr_t
* \brief dvbpsi_mpeg_system_clock_dr_t type definition.
*/
typedef struct dvbpsi_system_clock_dr_s
typedef struct dvbpsi_mpeg_system_clock_dr_s
{
bool b_external_clock_ref; /*!< external_clock_reference_indicator
*/
uint8_t i_clock_accuracy_integer; /*!< clock_accuracy_integer */
uint8_t i_clock_accuracy_exponent; /*!< clock_accuracy_exponent */
} dvbpsi_system_clock_dr_t;
} dvbpsi_mpeg_system_clock_dr_t;
/*****************************************************************************
* dvbpsi_DecodeSystemClockDr
* dvbpsi_decode_mpeg_system_clock_dr
*****************************************************************************/
/*!
* \fn dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr(
* \fn dvbpsi_mpeg_system_clock_dr_t * dvbpsi_decode_mpeg_system_clock_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "system clock" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "system clock" descriptor structure which
* contains the decoded data.
*/
dvbpsi_system_clock_dr_t* dvbpsi_DecodeSystemClockDr(
dvbpsi_mpeg_system_clock_dr_t* dvbpsi_decode_mpeg_system_clock_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenSystemClockDr
* dvbpsi_gen_mpeg_system_clock_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr(
dvbpsi_system_clock_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_system_clock_dr(
dvbpsi_mpeg_system_clock_dr_t * p_decoded, bool b_duplicate)
* \brief "system clock" descriptor generator.
* \param p_decoded pointer to a decoded "system clock" descriptor
* structure
......@@ -92,8 +92,8 @@ dvbpsi_system_clock_dr_t* dvbpsi_DecodeSystemClockDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr(
dvbpsi_system_clock_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_system_clock_dr(
dvbpsi_mpeg_system_clock_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeMxBuffUtilizationDr
* dvbpsi_decode_mpeg_mx_buff_utilization_dr
*****************************************************************************/
dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr(
dvbpsi_mpeg_mx_buff_utilization_dr_t * dvbpsi_decode_mpeg_mx_buff_utilization_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_mx_buff_utilization_dr_t * p_decoded;
dvbpsi_mpeg_mx_buff_utilization_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x0c))
......@@ -61,8 +61,8 @@ dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_mx_buff_utilization_dr_t*)
malloc(sizeof(dvbpsi_mx_buff_utilization_dr_t));
p_decoded = (dvbpsi_mpeg_mx_buff_utilization_dr_t*)
malloc(sizeof(dvbpsi_mpeg_mx_buff_utilization_dr_t));
if (!p_decoded)
return NULL;
......@@ -79,10 +79,10 @@ dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr(
/*****************************************************************************
* dvbpsi_GenMxBuffUtilizationDr
* dvbpsi_gen_mpeg_mx_buff_utilization_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr(
dvbpsi_mx_buff_utilization_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_mx_buff_utilization_dr(
dvbpsi_mpeg_mx_buff_utilization_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -102,7 +102,7 @@ dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_mx_buff_utilization_dr_t));
sizeof(dvbpsi_mpeg_mx_buff_utilization_dr_t));
}
return p_descriptor;
......
......@@ -41,49 +41,49 @@ extern "C" {
/*****************************************************************************
* dvbpsi_mx_buff_utilization_dr_t
* dvbpsi_mpeg_mx_buff_utilization_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_mx_buff_utilization_dr_s
* \struct dvbpsi_mpeg_mx_buff_utilization_dr_s
* \brief "multiplex buffer utilization" descriptor structure.
*
* This structure is used to store a decoded "multiplex buffer utilization"
* descriptor. (ISO/IEC 13818-1 section 2.6.22).
*/
/*!
* \typedef struct dvbpsi_mx_buff_utilization_dr_s dvbpsi_mx_buff_utilization_dr_t
* \typedef struct dvbpsi_mpeg_mx_buff_utilization_dr_s dvbpsi_mpeg_mx_buff_utilization_dr_t
* \brief dvbpsi_systemclock_dr_t type definition.
*/
typedef struct dvbpsi_mx_buff_utilization_dr_s
typedef struct dvbpsi_mpeg_mx_buff_utilization_dr_s
{
bool b_mdv_valid; /*!< mdv_valid_flag */
uint16_t i_mx_delay_variation; /*!< multiplex_delay_variation */
uint8_t i_mx_strategy; /*!< multiplex_strategy */
} dvbpsi_mx_buff_utilization_dr_t;
} dvbpsi_mpeg_mx_buff_utilization_dr_t;
/*****************************************************************************
* dvbpsi_DecodeMxBuffUtilizationDr
* dvbpsi_decode_mpeg_mx_buff_utilization_dr
*****************************************************************************/
/*!
* \fn dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr(
* \fn dvbpsi_mpeg_mx_buff_utilization_dr_t * dvbpsi_decode_mpeg_mx_buff_utilization_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "multiplex buffer utilization" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "multiplex buffer utilization" descriptor
* structure which contains the decoded data.
*/
dvbpsi_mx_buff_utilization_dr_t* dvbpsi_DecodeMxBuffUtilizationDr(
dvbpsi_mpeg_mx_buff_utilization_dr_t* dvbpsi_decode_mpeg_mx_buff_utilization_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenMxBuffUtilizationDr
* dvbpsi_gen_mpeg_mx_buff_utilization_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr(
dvbpsi_mx_buff_utilization_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_mx_buff_utilization_dr(
dvbpsi_mpeg_mx_buff_utilization_dr_t * p_decoded, bool b_duplicate)
* \brief "multiplex buffer utilization" descriptor generator.
* \param p_decoded pointer to a decoded "system clock" descriptor
* structure
......@@ -91,8 +91,8 @@ dvbpsi_mx_buff_utilization_dr_t* dvbpsi_DecodeMxBuffUtilizationDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr(
dvbpsi_mx_buff_utilization_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_mx_buff_utilization_dr(
dvbpsi_mpeg_mx_buff_utilization_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeCopyrightDr
* dvbpsi_decode_mpeg_copyright_dr
*****************************************************************************/
dvbpsi_copyright_dr_t * dvbpsi_DecodeCopyrightDr(
dvbpsi_mpeg_copyright_dr_t * dvbpsi_decode_mpeg_copyright_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_copyright_dr_t * p_decoded;
dvbpsi_mpeg_copyright_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x0d))
......@@ -61,8 +61,8 @@ dvbpsi_copyright_dr_t * dvbpsi_DecodeCopyrightDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_copyright_dr_t*)
malloc(sizeof(dvbpsi_copyright_dr_t));
p_decoded = (dvbpsi_mpeg_copyright_dr_t*)
malloc(sizeof(dvbpsi_mpeg_copyright_dr_t));
if (!p_decoded)
return NULL;
......@@ -87,9 +87,9 @@ dvbpsi_copyright_dr_t * dvbpsi_DecodeCopyrightDr(
/*****************************************************************************
* dvbpsi_GenCopyrightDr
* dvbpsi_gen_mpeg_copyright_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr(dvbpsi_copyright_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_copyright_dr(dvbpsi_mpeg_copyright_dr_t * p_decoded,
bool b_duplicate)
{
if (p_decoded->i_additional_length > 251)
......@@ -116,7 +116,7 @@ dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr(dvbpsi_copyright_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_copyright_dr_t));
sizeof(dvbpsi_mpeg_copyright_dr_t));
}
return p_descriptor;
......
......@@ -41,58 +41,58 @@ extern "C" {
/*****************************************************************************
* dvbpsi_copyright_dr_t
* dvbpsi_mpeg_copyright_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_copyright_dr_s
* \struct dvbpsi_mpeg_copyright_dr_s
* \brief "copyright" descriptor structure.
*
* This structure is used to store a decoded "copyright" descriptor.
* (ISO/IEC 13818-1 section 2.6.24).
*/
/*!
* \typedef struct dvbpsi_copyright_dr_s dvbpsi_copyright_dr_t
* \brief dvbpsi_copyright_dr_t type definition.
* \typedef struct dvbpsi_mpeg_copyright_dr_s dvbpsi_mpeg_copyright_dr_t
* \brief dvbpsi_mpeg_copyright_dr_t type definition.
*/
typedef struct dvbpsi_copyright_dr_s
typedef struct dvbpsi_mpeg_copyright_dr_s
{
uint32_t i_copyright_identifier; /*!< copyright_identifier */
uint8_t i_additional_length; /*!< length of the i_additional_info
array */
uint8_t i_additional_info[251]; /*!< additional_copyright_info */
} dvbpsi_copyright_dr_t;
} dvbpsi_mpeg_copyright_dr_t;
/*****************************************************************************
* dvbpsi_DecodeCopyrightDr
* dvbpsi_decode_mpeg_copyright_dr
*****************************************************************************/
/*!
* \fn dvbpsi_copyright_dr_t * dvbpsi_DecodeCopyrightDr(
* \fn dvbpsi_mpeg_copyright_dr_t * dvbpsi_decode_mpeg_copyright_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "copyright" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "copyright" descriptor structure which
* contains the decoded data.
*/
dvbpsi_copyright_dr_t* dvbpsi_DecodeCopyrightDr(
dvbpsi_mpeg_copyright_dr_t* dvbpsi_decode_mpeg_copyright_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenCopyrightDr
* dvbpsi_gen_mpeg_copyright_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr(
dvbpsi_copyright_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_copyright_dr(
dvbpsi_mpeg_copyright_dr_t * p_decoded, bool b_duplicate)
* \brief "copyright" descriptor generator.
* \param p_decoded pointer to a decoded "copyright" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr(
dvbpsi_copyright_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_copyright_dr(
dvbpsi_mpeg_copyright_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeMaxBitrateDr
* dvbpsi_decode_mpeg_max_bitrate_dr
*****************************************************************************/
dvbpsi_max_bitrate_dr_t * dvbpsi_DecodeMaxBitrateDr(
dvbpsi_mpeg_max_bitrate_dr_t * dvbpsi_decode_mpeg_max_bitrate_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_max_bitrate_dr_t * p_decoded;
dvbpsi_mpeg_max_bitrate_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x0e))
......@@ -61,7 +61,7 @@ dvbpsi_max_bitrate_dr_t * dvbpsi_DecodeMaxBitrateDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_max_bitrate_dr_t*)malloc(sizeof(dvbpsi_max_bitrate_dr_t));
p_decoded = (dvbpsi_mpeg_max_bitrate_dr_t*)malloc(sizeof(dvbpsi_mpeg_max_bitrate_dr_t));
if (!p_decoded)
return NULL;
......@@ -76,9 +76,9 @@ dvbpsi_max_bitrate_dr_t * dvbpsi_DecodeMaxBitrateDr(
}
/*****************************************************************************
* dvbpsi_GenMaxBitrateDr
* dvbpsi_gen_mpeg_max_bitrate_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr(dvbpsi_max_bitrate_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_max_bitrate_dr(dvbpsi_mpeg_max_bitrate_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -96,7 +96,7 @@ dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr(dvbpsi_max_bitrate_dr_t * p_decoded
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_max_bitrate_dr_t));
sizeof(dvbpsi_mpeg_max_bitrate_dr_t));
}
return p_descriptor;
......
......@@ -41,55 +41,55 @@ extern "C" {
/*****************************************************************************
* dvbpsi_max_bitrate_dr_t
* dvbpsi_mpeg_max_bitrate_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_max_bitrate_dr_s
* \struct dvbpsi_mpeg_max_bitrate_dr_s
* \brief "maximum bitrate" descriptor structure.
*
* This structure is used to store a decoded "maximum bitrate" descriptor.
* (ISO/IEC 13818-1 section 2.6.26).
*/
/*!
* \typedef struct dvbpsi_max_bitrate_dr_s dvbpsi_max_bitrate_dr_t
* \brief dvbpsi_max_bitrate_dr_t type definition.
* \typedef struct dvbpsi_mpeg_max_bitrate_dr_s dvbpsi_mpeg_max_bitrate_dr_t
* \brief dvbpsi_mpeg_max_bitrate_dr_t type definition.
*/
typedef struct dvbpsi_max_bitrate_dr_s
typedef struct dvbpsi_mpeg_max_bitrate_dr_s
{
uint32_t i_max_bitrate; /*!< maximum_bitrate */
} dvbpsi_max_bitrate_dr_t;
} dvbpsi_mpeg_max_bitrate_dr_t;
/*****************************************************************************
* dvbpsi_DecodeMaxBitrateDr
* dvbpsi_decode_mpeg_max_bitrate_dr
*****************************************************************************/
/*!
* \fn dvbpsi_max_bitrate_dr_t * dvbpsi_DecodeMaxBitrateDr(
* \fn dvbpsi_mpeg_max_bitrate_dr_t * dvbpsi_decode_mpeg_max_bitrate_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "maximum bitrate" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "maximum bitrate" descriptor structure which
* contains the decoded data.
*/
dvbpsi_max_bitrate_dr_t* dvbpsi_DecodeMaxBitrateDr(
dvbpsi_mpeg_max_bitrate_dr_t* dvbpsi_decode_mpeg_max_bitrate_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenMaxBitrateDr
* dvbpsi_gen_mpeg_max_bitrate_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr(
dvbpsi_max_bitrate_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_max_bitrate_dr(
dvbpsi_mpeg_max_bitrate_dr_t * p_decoded, bool b_duplicate)
* \brief "maximum bitrate" descriptor generator.
* \param p_decoded pointer to a decoded "maximum bitrate" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr(
dvbpsi_max_bitrate_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_max_bitrate_dr(
dvbpsi_mpeg_max_bitrate_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodePrivateDataDr
* dvbpsi_decode_mpeg_private_data_dr
*****************************************************************************/
dvbpsi_private_data_dr_t * dvbpsi_DecodePrivateDataDr(
dvbpsi_mpeg_private_data_dr_t * dvbpsi_decode_mpeg_private_data_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_private_data_dr_t * p_decoded;
dvbpsi_mpeg_private_data_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x0f))
......@@ -61,7 +61,7 @@ dvbpsi_private_data_dr_t * dvbpsi_DecodePrivateDataDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_private_data_dr_t*)malloc(sizeof(dvbpsi_private_data_dr_t));
p_decoded = (dvbpsi_mpeg_private_data_dr_t*)malloc(sizeof(dvbpsi_mpeg_private_data_dr_t));
if (!p_decoded)
return NULL;
......@@ -77,10 +77,10 @@ dvbpsi_private_data_dr_t * dvbpsi_DecodePrivateDataDr(
/*****************************************************************************
* dvbpsi_GenPrivateDataDr
* dvbpsi_gen_mpeg_private_data_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr(
dvbpsi_private_data_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_private_data_dr(
dvbpsi_mpeg_private_data_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -99,7 +99,7 @@ dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_private_data_dr_t));
sizeof(dvbpsi_mpeg_private_data_dr_t));
}
return p_descriptor;
......
......@@ -41,47 +41,47 @@ extern "C" {
/*****************************************************************************
* dvbpsi_private_data_dr_t
* dvbpsi_mpeg_private_data_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_private_data_dr_s
* \struct dvbpsi_mpeg_private_data_dr_s
* \brief "private data indicator" descriptor structure.
*
* This structure is used to store a decoded "private data indicator"
* descriptor. (ISO/IEC 13818-1 section 2.6.28).
*/
/*!
* \typedef struct dvbpsi_private_data_dr_s dvbpsi_private_data_dr_t
* \brief dvbpsi_private_data_dr_t type definition.
* \typedef struct dvbpsi_mpeg_private_data_dr_s dvbpsi_mpeg_private_data_dr_t
* \brief dvbpsi_mpeg_private_data_dr_t type definition.
*/
typedef struct dvbpsi_private_data_dr_s
typedef struct dvbpsi_mpeg_private_data_dr_s
{
uint32_t i_private_data; /*!< private_data_indicator */
} dvbpsi_private_data_dr_t;
} dvbpsi_mpeg_private_data_dr_t;
/*****************************************************************************
* dvbpsi_DecodePrivateDataDr
* dvbpsi_decode_mpeg_private_data_dr
*****************************************************************************/
/*!
* \fn dvbpsi_private_data_dr_t * dvbpsi_DecodePrivateDataDr(
* \fn dvbpsi_mpeg_private_data_dr_t * dvbpsi_decode_mpeg_private_data_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "private data indicator" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "private data indicator" descriptor structure
* which contains the decoded data.
*/
dvbpsi_private_data_dr_t* dvbpsi_DecodePrivateDataDr(
dvbpsi_mpeg_private_data_dr_t* dvbpsi_decode_mpeg_private_data_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenPrivateDataDr
* dvbpsi_gen_mpeg_private_data_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr(
dvbpsi_private_data_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_mpeg_private_data_dr(
dvbpsi_mpeg_private_data_dr_t * p_decoded, bool b_duplicate)
* \brief "private data indicator" descriptor generator.
* \param p_decoded pointer to a decoded "private data indicator" descriptor
* structure
......@@ -89,8 +89,8 @@ dvbpsi_private_data_dr_t* dvbpsi_DecodePrivateDataDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr(
dvbpsi_private_data_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_private_data_dr(
dvbpsi_mpeg_private_data_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -33,10 +33,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "dr_10.h"
dvbpsi_smoothing_buffer_dr_t* dvbpsi_DecodeSmoothingBufferDr(
dvbpsi_mpeg_smoothing_buffer_dr_t* dvbpsi_decode_mpeg_smoothing_buffer_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_smoothing_buffer_dr_t * p_decoded;
dvbpsi_mpeg_smoothing_buffer_dr_t * p_decoded;
/* check the tag. */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x10))
......@@ -50,7 +50,7 @@ dvbpsi_smoothing_buffer_dr_t* dvbpsi_DecodeSmoothingBufferDr(
if (p_descriptor->i_length != 6)
return NULL;
p_decoded = (dvbpsi_smoothing_buffer_dr_t*)malloc(sizeof(*p_decoded));
p_decoded = (dvbpsi_mpeg_smoothing_buffer_dr_t*)malloc(sizeof(*p_decoded));
if (!p_decoded)
return NULL;
......@@ -69,8 +69,8 @@ dvbpsi_smoothing_buffer_dr_t* dvbpsi_DecodeSmoothingBufferDr(
return p_decoded;
}
dvbpsi_descriptor_t * dvbpsi_GenSmoothingBufferDr(
dvbpsi_smoothing_buffer_dr_t * p_decoded)
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_smoothing_buffer_dr(
dvbpsi_mpeg_smoothing_buffer_dr_t * p_decoded)
{
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x10, 6, NULL);
if (!p_descriptor)
......
......@@ -35,7 +35,7 @@ extern "C" {
#endif
/*!
* \struct dvbpsi_smoothing_buffer_dr_s
* \struct dvbpsi_mpeg_smoothing_buffer_dr_s
* \brief Smoothing buffer descriptor structure.
*
* This structure is used to store a decoded smoothing buffer descriptor.
......@@ -43,17 +43,17 @@ extern "C" {
*/
/*!
* \typedef struct dvbpsi_smoothing_buffer_dr_s dvbpsi_smoothing_buffer_dr_t
* \brief dvbpsi_smoothing_buffer_dr_t type definition.
* \typedef struct dvbpsi_mpeg_smoothing_buffer_dr_s dvbpsi_mpeg_smoothing_buffer_dr_t
* \brief dvbpsi_mpeg_smoothing_buffer_dr_t type definition.
*/
typedef struct dvbpsi_smoothing_buffer_dr_s
typedef struct dvbpsi_mpeg_smoothing_buffer_dr_s
{
/*! Value of the leak rate out of the SBn buffer, in units of 400 bits/s. */
uint32_t i_sb_leak_rate;
/*! Value of the size of the multiplexing buffer smoothing buffer SBn. */
uint32_t i_sb_size;
} dvbpsi_smoothing_buffer_dr_t;
} dvbpsi_mpeg_smoothing_buffer_dr_t;
/*!
* \brief Smoothing buffer descriptor decoder.
......@@ -61,7 +61,7 @@ typedef struct dvbpsi_smoothing_buffer_dr_s
* \return A pointer to a new smoothing buffer descriptor structure which
* contains the decoded data.
*/
dvbpsi_smoothing_buffer_dr_t* dvbpsi_DecodeSmoothingBufferDr(
dvbpsi_mpeg_smoothing_buffer_dr_t* dvbpsi_decode_mpeg_smoothing_buffer_dr(
dvbpsi_descriptor_t * p_descriptor);
/*!
......@@ -69,8 +69,8 @@ dvbpsi_smoothing_buffer_dr_t* dvbpsi_DecodeSmoothingBufferDr(
* \param p_decoded pointer to a decoded smoothing buffer descriptor structure.
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenSmoothingBufferDr(
dvbpsi_smoothing_buffer_dr_t * p_decoded);
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_smoothing_buffer_dr(
dvbpsi_mpeg_smoothing_buffer_dr_t * p_decoded);
#ifdef __cplusplus
}
......
......@@ -33,9 +33,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "dr_11.h"
dvbpsi_std_dr_t* dvbpsi_DecodeSTDDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_mpeg_std_dr_t* dvbpsi_decode_mpeg_std_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_std_dr_t * p_decoded;
dvbpsi_mpeg_std_dr_t * p_decoded;
/* check the tag. */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x11))
......@@ -49,7 +49,7 @@ dvbpsi_std_dr_t* dvbpsi_DecodeSTDDr(dvbpsi_descriptor_t * p_descriptor)
if (p_descriptor->i_length != 1)
return NULL;
p_decoded = (dvbpsi_std_dr_t*)malloc(sizeof(*p_decoded));
p_decoded = (dvbpsi_mpeg_std_dr_t*)malloc(sizeof(*p_decoded));
if (!p_decoded)
return NULL;
......@@ -60,7 +60,7 @@ dvbpsi_std_dr_t* dvbpsi_DecodeSTDDr(dvbpsi_descriptor_t * p_descriptor)
return p_decoded;
}
dvbpsi_descriptor_t * dvbpsi_GenSTDDr(dvbpsi_std_dr_t * p_decoded)
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_std_dr(dvbpsi_mpeg_std_dr_t * p_decoded)
{
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x11, 1, NULL);
if (!p_descriptor)
......
......@@ -35,7 +35,7 @@ extern "C" {
#endif
/*!
* \struct dvbpsi_std_dr_s
* \struct dvbpsi_mpeg_std_dr_s
* \brief STD descriptor structure.
*
* This structure is used to store a decoded STD descriptor. (ISO/IEC 13818-1
......@@ -43,13 +43,13 @@ extern "C" {
*/
/*!
* \typedef struct dvbpsi_std_dr_s dvbpsi_std_dr_t
* \brief dvbpsi_std_dr_t type definition.
* \typedef struct dvbpsi_mpeg_std_dr_s dvbpsi_mpeg_std_dr_t
* \brief dvbpsi_mpeg_std_dr_t type definition.
*/
typedef struct dvbpsi_std_dr_s
typedef struct dvbpsi_mpeg_std_dr_s
{
bool b_leak_valid_flag; /*!< leak_valid_flag */
} dvbpsi_std_dr_t;
} dvbpsi_mpeg_std_dr_t;
/*!
* \brief STD descriptor decoder.
......@@ -57,14 +57,14 @@ typedef struct dvbpsi_std_dr_s
* \return A pointer to a new STD descriptor structure which contains the
* decoded data.
*/
dvbpsi_std_dr_t* dvbpsi_DecodeSTDDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_mpeg_std_dr_t* dvbpsi_decode_mpeg_std_dr(dvbpsi_descriptor_t * p_descriptor);
/*!
* \brief STD descriptor generator.
* \param p_decoded pointer to a decoded STD descriptor structure.
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenSTDDr(dvbpsi_std_dr_t * p_decoded);
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_std_dr(dvbpsi_mpeg_std_dr_t * p_decoded);
#ifdef __cplusplus
}
......
......@@ -33,9 +33,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "dr_12.h"
dvbpsi_ibp_dr_t* dvbpsi_DecodeIBPDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_mpeg_ibp_dr_t* dvbpsi_decode_mpeg_ibp_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_ibp_dr_t * p_decoded;
dvbpsi_mpeg_ibp_dr_t * p_decoded;
/* check the tag. */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x12))
......@@ -49,7 +49,7 @@ dvbpsi_ibp_dr_t* dvbpsi_DecodeIBPDr(dvbpsi_descriptor_t * p_descriptor)
if (p_descriptor->i_length != 2)
return NULL;
p_decoded = (dvbpsi_ibp_dr_t*)malloc(sizeof(*p_decoded));
p_decoded = (dvbpsi_mpeg_ibp_dr_t*)malloc(sizeof(*p_decoded));
if (!p_decoded)
return NULL;
......@@ -71,7 +71,7 @@ dvbpsi_ibp_dr_t* dvbpsi_DecodeIBPDr(dvbpsi_descriptor_t * p_descriptor)
return p_decoded;
}
dvbpsi_descriptor_t * dvbpsi_GenIBPDr(dvbpsi_ibp_dr_t * p_decoded)
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ibp_dr(dvbpsi_mpeg_ibp_dr_t * p_decoded)
{
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x12, 2, NULL);
if (!p_descriptor)
......
......@@ -35,7 +35,7 @@ extern "C" {
#endif
/*!
* \struct dvbpsi_ibp_dr_s
* \struct dvbpsi_mpeg_ibp_dr_s
* \brief IBP descriptor structure.
*
* This structure is used to store a decoded IBP descriptor. (ISO/IEC 13818-1
......@@ -43,15 +43,15 @@ extern "C" {
*/
/*!
* \typedef struct dvbpsi_ibp_dr_s dvbpsi_ibp_dr_t
* \brief dvbpsi_ibp_dr_s type definition.
* \typedef struct dvbpsi_mpeg_ibp_dr_s dvbpsi_mpeg_ibp_dr_t
* \brief dvbpsi_mpeg_ibp_dr_s type definition.
*/
typedef struct dvbpsi_ibp_dr_s
typedef struct dvbpsi_mpeg_ibp_dr_s
{
bool b_closed_gop_flag; /*!< closed_gop_flag */
bool b_identical_gop_flag; /*!< identical_gop_flag */
uint16_t i_max_gop_length; /*!< max_gop_length */
} dvbpsi_ibp_dr_t;
} dvbpsi_mpeg_ibp_dr_t;
/*!
* \brief IBP descriptor decoder.
......@@ -59,14 +59,14 @@ typedef struct dvbpsi_ibp_dr_s
* \return A pointer to a new IBP descriptor structure which contains the
* decoded data.
*/
dvbpsi_ibp_dr_t* dvbpsi_DecodeIBPDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_mpeg_ibp_dr_t* dvbpsi_decode_mpeg_ibp_dr(dvbpsi_descriptor_t * p_descriptor);
/*!
* \brief IBP descriptor generator.
* \param p_decoded pointer to a decoded IBP descriptor structure.
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenIBPDr(dvbpsi_ibp_dr_t * p_decoded);
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_ibp_dr(dvbpsi_mpeg_ibp_dr_t * p_decoded);
#ifdef __cplusplus
}
......
......@@ -39,27 +39,27 @@ Decode Carousel Id Descriptor.
#include "dr_13.h"
static dvbpsi_carousel_id_dr_t *NewCarouselDr(const size_t i_private)
static dvbpsi_mpeg_carousel_id_dr_t *NewCarouselDr(const size_t i_private)
{
dvbpsi_carousel_id_dr_t *p_carousel;
dvbpsi_mpeg_carousel_id_dr_t *p_carousel;
if (i_private <= 0)
return NULL;
p_carousel = (dvbpsi_carousel_id_dr_t *)
calloc(1, sizeof(dvbpsi_carousel_id_dr_t) + i_private);
p_carousel = (dvbpsi_mpeg_carousel_id_dr_t *)
calloc(1, sizeof(dvbpsi_mpeg_carousel_id_dr_t) + i_private);
if (p_carousel)
{
p_carousel->p_private_data = ((uint8_t *)p_carousel + sizeof(dvbpsi_carousel_id_dr_t));
p_carousel->p_private_data = ((uint8_t *)p_carousel + sizeof(dvbpsi_mpeg_carousel_id_dr_t));
p_carousel->i_private_data_len = i_private;
}
return p_carousel;
}
/*****************************************************************************
* dvbpsi_DecodeCarouselIdDr
* dvbpsi_decode_mpeg_carousel_id_dr
*****************************************************************************/
dvbpsi_carousel_id_dr_t *dvbpsi_DecodeCarouselIdDr(dvbpsi_descriptor_t *p_descriptor)
dvbpsi_mpeg_carousel_id_dr_t *dvbpsi_decode_mpeg_carousel_id_dr(dvbpsi_descriptor_t *p_descriptor)
{
dvbpsi_carousel_id_dr_t *p_decoded;
dvbpsi_mpeg_carousel_id_dr_t *p_decoded;
/* Check the tag */
if (p_descriptor->i_tag != 0x13)
......
......@@ -31,38 +31,38 @@ Decode Carousel id Descriptor.
#define _DR_13_H
/*****************************************************************************
* dvbpsi_carousel_id_dr_s
* dvbpsi_mpeg_carousel_id_dr_s
*****************************************************************************/
/*!
* \struct dvbpsi_carousel_id_dr_s
* \struct dvbpsi_mpeg_carousel_id_dr_s
* \brief Data Broadcast id Descriptor
*
* This structure is used to store a decoded Carsouel ID descriptor.
*/
/*!
* \typedef struct dvbpsi_carousel_id_dr_s dvbpsi_carousel_id_dr_t
* \brief dvbpsi_carousel_id_dr_t type definition.
* \typedef struct dvbpsi_mpeg_carousel_id_dr_s dvbpsi_mpeg_carousel_id_dr_t
* \brief dvbpsi_mpeg_carousel_id_dr_t type definition.
*/
typedef struct dvbpsi_carousel_id_dr_s
typedef struct dvbpsi_mpeg_carousel_id_dr_s
{
uint32_t i_carousel_id; /*!< carousel identifier */
uint8_t i_private_data_len; /*!< length of private data pointer in bytes */
uint8_t *p_private_data; /*!< memory is allocated right after sizeof struct,
when freeing this struct the private data is
freed at the same time. */
} dvbpsi_carousel_id_dr_t;
} dvbpsi_mpeg_carousel_id_dr_t;
/*****************************************************************************
* dvbpsi_DecodeCarouselIdDr
* dvbpsi_decode_mpeg_carousel_id_dr
*****************************************************************************/
/*!
* \fn dvbpsi_carousel_id_dr_t *dvbpsi_DecodeCarouselIdDr(
* \fn dvbpsi_mpeg_carousel_id_dr_t *dvbpsi_decode_mpeg_carousel_id_dr(
* dvbpsi_descriptor_t *p_descriptor)
* \brief Decode a Carousel id descriptor (tag 0x13)
* \param p_descriptor Raw descriptor to decode.
* \return NULL if the descriptor could not be decoded or a pointer to a
* dvbpsi_carousel_id_dr_t structure.
* dvbpsi_mpeg_carousel_id_dr_t structure.
*/
dvbpsi_carousel_id_dr_t *dvbpsi_DecodeCarouselIdDr(dvbpsi_descriptor_t *p_descriptor);
dvbpsi_mpeg_carousel_id_dr_t *dvbpsi_decode_mpeg_carousel_id_dr(dvbpsi_descriptor_t *p_descriptor);
#endif
......@@ -39,18 +39,18 @@ Decode Assocation Tag Descriptor.
#include "dr_14.h"
static dvbpsi_association_tag_dr_t *NewAssociationTagDr(const size_t i_selector, const size_t i_private)
static dvbpsi_mpeg_association_tag_dr_t *NewAssociationTagDr(const size_t i_selector, const size_t i_private)
{
dvbpsi_association_tag_dr_t *p_tag;
dvbpsi_mpeg_association_tag_dr_t *p_tag;
if ((i_selector <= 0) || (i_private <= 0))
return NULL;
size_t i_size = sizeof(dvbpsi_association_tag_dr_t) + i_selector + i_private;
p_tag = (dvbpsi_association_tag_dr_t*) calloc(1, i_size);
size_t i_size = sizeof(dvbpsi_mpeg_association_tag_dr_t) + i_selector + i_private;
p_tag = (dvbpsi_mpeg_association_tag_dr_t*) calloc(1, i_size);
if (p_tag)
{
p_tag->p_selector = ((uint8_t*)p_tag + sizeof(dvbpsi_association_tag_dr_t));
p_tag->p_selector = ((uint8_t*)p_tag + sizeof(dvbpsi_mpeg_association_tag_dr_t));
p_tag->i_selector_len = i_selector;
p_tag->p_private_data = p_tag->p_selector + i_selector;
......@@ -60,11 +60,11 @@ static dvbpsi_association_tag_dr_t *NewAssociationTagDr(const size_t i_selector,
}
/*****************************************************************************
* dvbpsi_DecodeAssociationTagDr
* dvbpsi_decode_mpeg_association_tag_dr
*****************************************************************************/
dvbpsi_association_tag_dr_t *dvbpsi_DecodeAssociationTagDr(dvbpsi_descriptor_t *p_descriptor)
dvbpsi_mpeg_association_tag_dr_t *dvbpsi_decode_mpeg_association_tag_dr(dvbpsi_descriptor_t *p_descriptor)
{
dvbpsi_association_tag_dr_t *p_decoded;
dvbpsi_mpeg_association_tag_dr_t *p_decoded;
uint8_t selector_len;
uint8_t private_data_len;
......
......@@ -31,19 +31,19 @@ Decode Association Tag Descriptor.
#define _DR_14_H
/*****************************************************************************
* dvbpsi_association_tag_dr_s
* dvbpsi_mpeg_association_tag_dr_s
*****************************************************************************/
/*!
* \struct dvbpsi_association_tag_dr_s
* \struct dvbpsi_mpeg_association_tag_dr_s
* \brief Data Broadcast id Descriptor
*
* This structure is used to store a decoded Association Tag descriptor.
*/
/*!
* \typedef struct dvbpsi_association_tag_dr_s dvbpsi_association_tag_dr_t
* \brief dvbpsi_association_tag_dr_t type definition.
* \typedef struct dvbpsi_mpeg_association_tag_dr_s dvbpsi_mpeg_association_tag_dr_t
* \brief dvbpsi_mpeg_association_tag_dr_t type definition.
*/
typedef struct dvbpsi_association_tag_dr_s
typedef struct dvbpsi_mpeg_association_tag_dr_s
{
uint16_t i_tag; /*!< association tag identifier */
uint16_t i_use; /*!< indicator if association tag identifier is in use */
......@@ -55,19 +55,19 @@ typedef struct dvbpsi_association_tag_dr_s
uint8_t *p_private_data; /*!< pointer to private data. Memory is allocated
right after sizeof struct, when freeing this
struct the private data is freed at the same time. */
} dvbpsi_association_tag_dr_t;
} dvbpsi_mpeg_association_tag_dr_t;
/*****************************************************************************
* dvbpsi_DecodeAssociationTagDr
* dvbpsi_decode_mpeg_association_tag_dr
*****************************************************************************/
/*!
* \fn dvbpsi_association_tag_dr_t *dvbpsi_DecodeAssociationTagDr(
* \fn dvbpsi_mpeg_association_tag_dr_t *dvbpsi_decode_mpeg_association_tag_dr(
* dvbpsi_descriptor_t *p_descriptor)
* \brief Decode a Association Tag descriptor (tag 0x14)
* \param p_descriptor Raw descriptor to decode.
* \return NULL if the descriptor could not be decoded or a pointer to a
* dvbpsi_association_tag_dr_t structure.
* dvbpsi_mpeg_association_tag_dr_t structure.
*/
dvbpsi_association_tag_dr_t *dvbpsi_DecodeAssociationTagDr(dvbpsi_descriptor_t *p_descriptor);
dvbpsi_mpeg_association_tag_dr_t *dvbpsi_decode_mpeg_association_tag_dr(dvbpsi_descriptor_t *p_descriptor);
#endif
......@@ -33,10 +33,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "dr_1b.h"
dvbpsi_mpeg4_video_dr_t* dvbpsi_DecodeMPEG4VideoDr(
dvbpsi_mpeg_mpeg4_video_dr_t* dvbpsi_decode_mpeg_mpeg4_video_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_mpeg4_video_dr_t * p_decoded;
dvbpsi_mpeg_mpeg4_video_dr_t * p_decoded;
/* check the tag. */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x1b))
......@@ -50,7 +50,7 @@ dvbpsi_mpeg4_video_dr_t* dvbpsi_DecodeMPEG4VideoDr(
if (p_descriptor->i_length != 1)
return NULL;
p_decoded = (dvbpsi_mpeg4_video_dr_t*)malloc(sizeof(*p_decoded));
p_decoded = (dvbpsi_mpeg_mpeg4_video_dr_t*)malloc(sizeof(*p_decoded));
if (!p_decoded)
return NULL;
......@@ -61,8 +61,8 @@ dvbpsi_mpeg4_video_dr_t* dvbpsi_DecodeMPEG4VideoDr(
return p_decoded;
}
dvbpsi_descriptor_t * dvbpsi_GenMPEG4VideoDr(
dvbpsi_mpeg4_video_dr_t * p_decoded)
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_mpeg4_video_dr(
dvbpsi_mpeg_mpeg4_video_dr_t * p_decoded)
{
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x1b, 1, NULL);
if (!p_descriptor)
......
......@@ -102,7 +102,7 @@ typedef enum dvbpsi_mpeg4_visual_profile_and_level_s
} dvbpsi_mpeg4_visual_profile_and_level_t;
/*!
* \struct dvbpsi_mpeg4_video_dr_s
* \struct dvbpsi_mpeg_mpeg4_video_dr_s
* \brief MPEG-4 video descriptor structure.
*
* This structure is used to store a decoded MPEG-4 video descriptor. (ISO/IEC
......@@ -110,14 +110,14 @@ typedef enum dvbpsi_mpeg4_visual_profile_and_level_s
*/
/*!
* \typedef struct dvbpsi_mpeg4_video_dr_s dvbpsi_mpeg4_video_dr_t
* \brief dvbpsi_mpeg4_video_dr_t type definition.
* \typedef struct dvbpsi_mpeg_mpeg4_video_dr_s dvbpsi_mpeg_mpeg4_video_dr_t
* \brief dvbpsi_mpeg_mpeg4_video_dr_t type definition.
*/
typedef struct dvbpsi_mpeg4_video_dr_s
typedef struct dvbpsi_mpeg_mpeg4_video_dr_s
{
/*! MPEG-4_visual_profile_and_level */
dvbpsi_mpeg4_visual_profile_and_level_t i_mpeg4_visual_profile_and_level;
} dvbpsi_mpeg4_video_dr_t;
} dvbpsi_mpeg_mpeg4_video_dr_t;
/*!
* \brief MPEG-4 video descriptor decoder.
......@@ -125,7 +125,7 @@ typedef struct dvbpsi_mpeg4_video_dr_s
* \return A pointer to a new MPEG-4 video descriptor structure which contains
* the decoded data.
*/
dvbpsi_mpeg4_video_dr_t* dvbpsi_DecodeMPEG4VideoDr(
dvbpsi_mpeg_mpeg4_video_dr_t* dvbpsi_decode_mpeg_mpeg4_video_dr(
dvbpsi_descriptor_t * p_descriptor);
/*!
......@@ -133,8 +133,8 @@ dvbpsi_mpeg4_video_dr_t* dvbpsi_DecodeMPEG4VideoDr(
* \param p_decoded pointer to a decoded MPEG-4 video descriptor structure.
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenMPEG4VideoDr(
dvbpsi_mpeg4_video_dr_t * p_decoded);
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_mpeg4_video_dr(
dvbpsi_mpeg_mpeg4_video_dr_t * p_decoded);
#ifdef __cplusplus
}
......
......@@ -33,10 +33,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "dr_1c.h"
dvbpsi_mpeg4_audio_dr_t* dvbpsi_DecodeMPEG4AudioDr(
dvbpsi_mpeg_mpeg4_audio_dr_t* dvbpsi_decode_mpeg_mpeg4_audio_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_mpeg4_audio_dr_t * p_decoded;
dvbpsi_mpeg_mpeg4_audio_dr_t * p_decoded;
/* check the tag. */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x1c))
......@@ -50,7 +50,7 @@ dvbpsi_mpeg4_audio_dr_t* dvbpsi_DecodeMPEG4AudioDr(
if (p_descriptor->i_length != 1)
return NULL;
p_decoded = (dvbpsi_mpeg4_audio_dr_t*)malloc(sizeof(*p_decoded));
p_decoded = (dvbpsi_mpeg_mpeg4_audio_dr_t*)malloc(sizeof(*p_decoded));
if (!p_decoded)
return NULL;
......@@ -61,8 +61,8 @@ dvbpsi_mpeg4_audio_dr_t* dvbpsi_DecodeMPEG4AudioDr(
return p_decoded;
}
dvbpsi_descriptor_t * dvbpsi_GenMPEG4AudioDr(
dvbpsi_mpeg4_audio_dr_t * p_decoded)
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_mpeg4_audio_dr(
dvbpsi_mpeg_mpeg4_audio_dr_t * p_decoded)
{
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x1c, 1, NULL);
if (!p_descriptor)
......
......@@ -37,7 +37,7 @@ extern "C" {
#endif
/*!
* \struct dvbpsi_mpeg4_audio_dr_s
* \struct dvbpsi_mpeg_mpeg4_audio_dr_s
* \brief MPEG-4 audio descriptor structure.
*
* This structure is used to store a decoded MPEG-4 audio descriptor. (ISO/IEC
......@@ -45,14 +45,14 @@ extern "C" {
*/
/*!
* \typedef struct dvbpsi_mpeg4_audio_dr_s dvbpsi_mpeg4_audio_dr_t
* \brief dvbpsi_mpeg4_audio_dr_t type definition.
* \typedef struct dvbpsi_mpeg_mpeg4_audio_dr_s dvbpsi_mpeg_mpeg4_audio_dr_t
* \brief dvbpsi_mpeg_mpeg4_audio_dr_t type definition.
*/
typedef struct dvbpsi_mpeg4_audio_dr_s
typedef struct dvbpsi_mpeg_mpeg4_audio_dr_s
{
/*! MPEG-4_audio_profile_and_level */
dvbpsi_aac_profile_and_level_t i_mpeg4_audio_profile_and_level;
} dvbpsi_mpeg4_audio_dr_t;
} dvbpsi_mpeg_mpeg4_audio_dr_t;
/*!
* \brief MPEG-4 audio descriptor decoder.
......@@ -60,7 +60,7 @@ typedef struct dvbpsi_mpeg4_audio_dr_s
* \return A pointer to a new MPEG-4 audio descriptor structure which contains
* the decoded data.
*/
dvbpsi_mpeg4_audio_dr_t* dvbpsi_DecodeMPEG4AudioDr(
dvbpsi_mpeg_mpeg4_audio_dr_t* dvbpsi_decode_mpeg_mpeg4_audio_dr(
dvbpsi_descriptor_t * p_descriptor);
/*!
......@@ -68,8 +68,8 @@ dvbpsi_mpeg4_audio_dr_t* dvbpsi_DecodeMPEG4AudioDr(
* \param p_decoded pointer to a decoded MPEG-4 audio descriptor structure.
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenMPEG4AudioDr(
dvbpsi_mpeg4_audio_dr_t * p_decoded);
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_mpeg4_audio_dr(
dvbpsi_mpeg_mpeg4_audio_dr_t * p_decoded);
#ifdef __cplusplus
}
......
......@@ -39,7 +39,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* indicator}, and a reserved field. they all sum up to 24 bits. */
#define DR_24_MIN_SIZE 3
static int decode_content_reference_id(dvbpsi_content_labelling_dr_t *p_decoded,
static int decode_content_reference_id(dvbpsi_mpeg_content_labelling_dr_t *p_decoded,
const uint8_t **pp_data, uint8_t *pi_left)
{
uint8_t i_left = *pi_left;
......@@ -73,7 +73,7 @@ static int decode_content_reference_id(dvbpsi_content_labelling_dr_t *p_decoded,
return 0;
}
static int decode_content_time_base_indicator(dvbpsi_content_labelling_dr_t
static int decode_content_time_base_indicator(dvbpsi_mpeg_content_labelling_dr_t
*p_decoded, const uint8_t **pp_data, uint8_t *pi_left)
{
const uint8_t *p_data = *pp_data;
......@@ -144,10 +144,10 @@ static int decode_content_time_base_indicator(dvbpsi_content_labelling_dr_t
return 0;
}
dvbpsi_content_labelling_dr_t* dvbpsi_DecodeContentLabellingDr(
dvbpsi_mpeg_content_labelling_dr_t* dvbpsi_decode_mpeg_content_labelling_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_content_labelling_dr_t *p_decoded;
dvbpsi_mpeg_content_labelling_dr_t *p_decoded;
const uint8_t *p_data = p_descriptor->p_data;
uint8_t i_left = p_descriptor->i_length;
......@@ -226,7 +226,7 @@ err:
}
static unsigned int generate_get_descriptor_size(const
dvbpsi_content_labelling_dr_t * p_decoded)
dvbpsi_mpeg_content_labelling_dr_t * p_decoded)
{
unsigned int size = DR_24_MIN_SIZE + p_decoded->i_private_data_len;
......@@ -251,7 +251,7 @@ static unsigned int generate_get_descriptor_size(const
}
static bool generate_check_struct_valid(const
dvbpsi_content_labelling_dr_t * p_decoded)
dvbpsi_mpeg_content_labelling_dr_t * p_decoded)
{
/* check if the pointers are valid if relevant sizes are nonzero. also,
* check if i_content_reference_id_record_length isn't zero if the flag is
......@@ -272,8 +272,8 @@ static bool generate_check_struct_valid(const
return true;
}
dvbpsi_descriptor_t * dvbpsi_GenContentLabellingDr(
dvbpsi_content_labelling_dr_t * p_decoded)
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_content_labelling_dr(
dvbpsi_mpeg_content_labelling_dr_t * p_decoded)
{
unsigned int size;
dvbpsi_descriptor_t * p_descriptor;
......
......@@ -35,7 +35,7 @@ extern "C" {
#endif
/*!
* \struct dvbpsi_content_labelling_dr_s
* \struct dvbpsi_mpeg_content_labelling_dr_s
* \brief Content labelling descriptor structure.
*
* This structure is used to store a decoded content labelling descriptor.
......@@ -43,10 +43,10 @@ extern "C" {
*/
/*!
* \typedef struct dvbpsi_content_labelling_dr_s dvbpsi_content_labelling_dr_t
* \brief dvbpsi_content_labelling_dr_t type definition.
* \typedef struct dvbpsi_mpeg_content_labelling_dr_s dvbpsi_mpeg_content_labelling_dr_t
* \brief dvbpsi_mpeg_content_labelling_dr_t type definition.
*/
typedef struct dvbpsi_content_labelling_dr_s
typedef struct dvbpsi_mpeg_content_labelling_dr_s
{
uint16_t i_metadata_application_format; /*!< metadata_application_format */
......@@ -102,7 +102,7 @@ typedef struct dvbpsi_content_labelling_dr_s
* descriptor. Memory is allocated by the decoder when decoding, and by the
* caller when generating. */
uint8_t *p_private_data;
} dvbpsi_content_labelling_dr_t;
} dvbpsi_mpeg_content_labelling_dr_t;
/*!
* \brief Content labelling descriptor decoder.
......@@ -110,7 +110,7 @@ typedef struct dvbpsi_content_labelling_dr_s
* \return A pointer to a new content labelling descriptor structure which
* contains the decoded data.
*/
dvbpsi_content_labelling_dr_t* dvbpsi_DecodeContentLabellingDr(
dvbpsi_mpeg_content_labelling_dr_t* dvbpsi_decode_mpeg_content_labelling_dr(
dvbpsi_descriptor_t * p_descriptor);
/*!
......@@ -118,8 +118,8 @@ dvbpsi_content_labelling_dr_t* dvbpsi_DecodeContentLabellingDr(
* \param p_decoded pointer to a decoded content labelling descriptor structure.
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenContentLabellingDr(
dvbpsi_content_labelling_dr_t * p_decoded);
dvbpsi_descriptor_t * dvbpsi_gen_mpeg_content_labelling_dr(
dvbpsi_mpeg_content_labelling_dr_t * p_decoded);
#ifdef __cplusplus
}
......
......@@ -40,12 +40,12 @@
#include "dr_40.h"
/*****************************************************************************
* dvbpsi_DecodeNetworkNameDr
* dvbpsi_decode_dvb_network_name_dr
*****************************************************************************/
dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
dvbpsi_dvb_network_name_dr_t* dvbpsi_decode_dvb_network_name_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_network_name_dr_t * p_decoded;
dvbpsi_dvb_network_name_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x40))
......@@ -56,7 +56,7 @@ dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_network_name_dr_t*)calloc(1, sizeof(dvbpsi_network_name_dr_t));
p_decoded = (dvbpsi_dvb_network_name_dr_t*)calloc(1, sizeof(dvbpsi_dvb_network_name_dr_t));
if (!p_decoded)
return NULL;
......@@ -75,10 +75,10 @@ dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
/*****************************************************************************
* dvbpsi_GenNetworkNameDr
* dvbpsi_gen_dvb_network_name_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenNetworkNameDr(
dvbpsi_network_name_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_network_name_dr(
dvbpsi_dvb_network_name_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -98,7 +98,7 @@ dvbpsi_descriptor_t * dvbpsi_GenNetworkNameDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_network_name_dr_t));
sizeof(dvbpsi_dvb_network_name_dr_t));
}
return p_descriptor;
......
......@@ -39,51 +39,51 @@ extern "C" {
#endif
/*****************************************************************************
* dvbpsi_network_name_dr_t
* dvbpsi_dvb_network_name_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_network_name_dr_t
* \struct dvbpsi_dvb_network_name_dr_t
* \brief "network name" descriptor structure.
*
* This structure is used to store a decoded "network name"
* descriptor. (ETSI EN 300 468 section 6.2.27).
*/
/*!
* \typedef struct dvbpsi_network_nameg_dr_s dvbpsi_network_name_dr_t
* \brief dvbpsi_network_name_dr_t type definition.
* \typedef struct dvbpsi_network_nameg_dr_s dvbpsi_dvb_network_name_dr_t
* \brief dvbpsi_dvb_network_name_dr_t type definition.
*/
/*!
* \struct dvbpsi_network_name_dr_s
* \brief struct dvbpsi_network_name_dr_s definition @see dvbpsi_network_name_dr_t
* \struct dvbpsi_dvb_network_name_dr_s
* \brief struct dvbpsi_dvb_network_name_dr_s definition @see dvbpsi_dvb_network_name_dr_t
*/
typedef struct dvbpsi_network_name_dr_s
typedef struct dvbpsi_dvb_network_name_dr_s
{
uint8_t i_name_length; /*!< length of the i_name_byte array */
uint8_t i_name_byte[255]; /*!< the name of the delivery system */
} dvbpsi_network_name_dr_t;
} dvbpsi_dvb_network_name_dr_t;
/*****************************************************************************
* dvbpsi_DecodeNetworkNameDr
* dvbpsi_decode_dvb_network_name_dr
*****************************************************************************/
/*!
* \fn dvbpsi_network_name_dr_t * dvbpsi_DecodeNetworkNameDr(
* \fn dvbpsi_dvb_network_name_dr_t * dvbpsi_decode_dvb_network_name_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "network name" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "network name" descriptor structure
* which contains the decoded data.
*/
dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
dvbpsi_dvb_network_name_dr_t* dvbpsi_decode_dvb_network_name_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenNetworkNameDr
* dvbpsi_gen_dvb_network_name_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenNetworkNameDr(
dvbpsi_network_name_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_network_name_dr(
dvbpsi_dvb_network_name_dr_t * p_decoded, bool b_duplicate)
* \brief "network name" descriptor generator.
* \param p_decoded pointer to a decoded "network name" descriptor
* structure
......@@ -91,8 +91,8 @@ dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenNetworkNameDr(
dvbpsi_network_name_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_network_name_dr(
dvbpsi_dvb_network_name_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -40,12 +40,12 @@
#include "dr_41.h"
/*****************************************************************************
* dvbpsi_DecodeServiceListDr
* dvbpsi_decode_dvb_service_list_dr
*****************************************************************************/
dvbpsi_service_list_dr_t* dvbpsi_DecodeServiceListDr(
dvbpsi_dvb_service_list_dr_t* dvbpsi_decode_dvb_service_list_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_service_list_dr_t * p_decoded;
dvbpsi_dvb_service_list_dr_t * p_decoded;
/* Check the tag */
if (p_descriptor->i_tag != 0x41)
......@@ -63,7 +63,7 @@ dvbpsi_service_list_dr_t* dvbpsi_DecodeServiceListDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_service_list_dr_t*)calloc(1, sizeof(dvbpsi_service_list_dr_t));
p_decoded = (dvbpsi_dvb_service_list_dr_t*)calloc(1, sizeof(dvbpsi_dvb_service_list_dr_t));
if (!p_decoded)
return NULL;
......@@ -84,10 +84,10 @@ dvbpsi_service_list_dr_t* dvbpsi_DecodeServiceListDr(
/*****************************************************************************
* dvbpsi_GenServiceListDr
* dvbpsi_gen_dvb_service_list_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenServiceListDr(
dvbpsi_service_list_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_service_list_dr(
dvbpsi_dvb_service_list_dr_t * p_decoded,
bool b_duplicate)
{
/* Check the length */
......@@ -113,7 +113,7 @@ dvbpsi_descriptor_t * dvbpsi_GenServiceListDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_service_list_dr_t));
sizeof(dvbpsi_dvb_service_list_dr_t));
}
return p_descriptor;
......
......@@ -39,20 +39,20 @@ extern "C" {
#endif
/*****************************************************************************
* dvbpsi_network_name_dr_t
* dvbpsi_dvb_network_name_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_service_list_dr_s
* \struct dvbpsi_dvb_service_list_dr_s
* \brief "service list" descriptor structure.
*
* This structure is used to store a decoded "service list"
* descriptor. (ETSI EN 300 468 section 6.2.35).
*/
/*!
* \typedef struct dvbpsi_service_list_dr_s dvbpsi_service_list_dr_t
* \brief dvbpsi_service_list_dr_t type definition.
* \typedef struct dvbpsi_dvb_service_list_dr_s dvbpsi_dvb_service_list_dr_t
* \brief dvbpsi_dvb_service_list_dr_t type definition.
*/
typedef struct dvbpsi_service_list_dr_s
typedef struct dvbpsi_dvb_service_list_dr_s
{
uint8_t i_service_count; /*!< length of the i_service_list
array */
......@@ -61,29 +61,29 @@ typedef struct dvbpsi_service_list_dr_s
uint8_t i_service_type; /*!< service type */
} i_service[64]; /*!< array of services */
} dvbpsi_service_list_dr_t;
} dvbpsi_dvb_service_list_dr_t;
/*****************************************************************************
* dvbpsi_DecodeServiceListDr
* dvbpsi_decode_dvb_service_list_dr
*****************************************************************************/
/*!
* \fn dvbpsi_service_list_dr_t * dvbpsi_DecodeServiceListDr(
* \fn dvbpsi_dvb_service_list_dr_t * dvbpsi_decode_dvb_service_list_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "service list" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "service list" descriptor structure
* which contains the decoded data.
*/
dvbpsi_service_list_dr_t* dvbpsi_DecodeServiceListDr(
dvbpsi_dvb_service_list_dr_t* dvbpsi_decode_dvb_service_list_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenServiceListDr
* dvbpsi_gen_dvb_service_list_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenServiceListDr(
dvbpsi_service_list_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_service_list_dr(
dvbpsi_dvb_service_list_dr_t * p_decoded, bool b_duplicate)
* \brief "service list" descriptor generator.
* \param p_decoded pointer to a decoded "service list" descriptor
* structure
......@@ -91,8 +91,8 @@ dvbpsi_service_list_dr_t* dvbpsi_DecodeServiceListDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenServiceListDr(
dvbpsi_service_list_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_service_list_dr(
dvbpsi_dvb_service_list_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -43,12 +43,12 @@
/*****************************************************************************
* dvbpsi_DecodeStuffingDr
* dvbpsi_decode_dvb_stuffing_dr
*****************************************************************************/
dvbpsi_stuffing_dr_t * dvbpsi_DecodeStuffingDr(
dvbpsi_dvb_stuffing_dr_t * dvbpsi_decode_dvb_stuffing_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_stuffing_dr_t * p_decoded;
dvbpsi_dvb_stuffing_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x42))
......@@ -59,7 +59,7 @@ dvbpsi_stuffing_dr_t * dvbpsi_DecodeStuffingDr(
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_stuffing_dr_t*)malloc(sizeof(dvbpsi_stuffing_dr_t));
p_decoded = (dvbpsi_dvb_stuffing_dr_t*)malloc(sizeof(dvbpsi_dvb_stuffing_dr_t));
if (!p_decoded)
return NULL;
......@@ -78,9 +78,9 @@ dvbpsi_stuffing_dr_t * dvbpsi_DecodeStuffingDr(
/*****************************************************************************
* dvbpsi_GenStuffingDr
* dvbpsi_gen_dvb_stuffing_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(dvbpsi_stuffing_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_stuffing_dr(dvbpsi_dvb_stuffing_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -100,7 +100,7 @@ dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(dvbpsi_stuffing_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_stuffing_dr_t));
sizeof(dvbpsi_dvb_stuffing_dr_t));
}
return p_descriptor;
......
......@@ -42,49 +42,49 @@ extern "C" {
/*****************************************************************************
* dvbpsi_stuffing_dr_t
* dvbpsi_dvb_stuffing_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_stuffing_dr_s
* \struct dvbpsi_dvb_stuffing_dr_s
* \brief "stuffing" descriptor structure.
*
* This structure is used to store a decoded "stuffing"
* descriptor. (ETSI EN 300 468 section 6.2.35).
*/
/*!
* \typedef struct dvbpsi_stuffing_dr_s dvbpsi_stuffing_dr_t
* \brief dvbpsi_stuffing_dr_t type definition.
* \typedef struct dvbpsi_dvb_stuffing_dr_s dvbpsi_dvb_stuffing_dr_t
* \brief dvbpsi_dvb_stuffing_dr_t type definition.
*/
typedef struct dvbpsi_stuffing_dr_s
typedef struct dvbpsi_dvb_stuffing_dr_s
{
uint8_t i_stuffing_length; /*!< length of the i_stuffing_byte
array */
uint8_t i_stuffing_byte[255]; /*!< stuffing_bytes */
} dvbpsi_stuffing_dr_t;
} dvbpsi_dvb_stuffing_dr_t;
/*****************************************************************************
* dvbpsi_DecodeStuffingDr
* dvbpsi_decode_dvb_stuffing_dr
*****************************************************************************/
/*!
* \fn dvbpsi_stuffing_dr_t * dvbpsi_DecodeStuffingDr(
* \fn dvbpsi_dvb_stuffing_dr_t * dvbpsi_decode_dvb_stuffing_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "stuffing" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "stuffing" descriptor structure
* which contains the decoded data.
*/
dvbpsi_stuffing_dr_t* dvbpsi_DecodeStuffingDr(
dvbpsi_dvb_stuffing_dr_t* dvbpsi_decode_dvb_stuffing_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenStuffingDr
* dvbpsi_gen_dvb_stuffing_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(
dvbpsi_stuffing_dr_t *p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_stuffing_dr(
dvbpsi_dvb_stuffing_dr_t *p_decoded, bool b_duplicate)
* \brief "stuffing" descriptor generator.
* \param p_decoded pointer to a decoded "stuffing" descriptor
* structure
......@@ -92,8 +92,8 @@ dvbpsi_stuffing_dr_t* dvbpsi_DecodeStuffingDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(
dvbpsi_stuffing_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_stuffing_dr(
dvbpsi_dvb_stuffing_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeSatDelivSysDr
* dvbpsi_decode_dvb_sat_deliv_sys_dr
*****************************************************************************/
dvbpsi_sat_deliv_sys_dr_t * dvbpsi_DecodeSatDelivSysDr(
dvbpsi_dvb_sat_deliv_sys_dr_t * dvbpsi_decode_dvb_sat_deliv_sys_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_sat_deliv_sys_dr_t * p_decoded;
dvbpsi_dvb_sat_deliv_sys_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x43))
......@@ -58,7 +58,7 @@ dvbpsi_sat_deliv_sys_dr_t * dvbpsi_DecodeSatDelivSysDr(
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_sat_deliv_sys_dr_t*)malloc(sizeof(dvbpsi_sat_deliv_sys_dr_t));
p_decoded = (dvbpsi_dvb_sat_deliv_sys_dr_t*)malloc(sizeof(dvbpsi_dvb_sat_deliv_sys_dr_t));
if (!p_decoded)
return NULL;
......@@ -87,10 +87,10 @@ dvbpsi_sat_deliv_sys_dr_t * dvbpsi_DecodeSatDelivSysDr(
/*****************************************************************************
* dvbpsi_GenSatDelivSysDr
* dvbpsi_gen_dvb_sat_deliv_sys_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr(
dvbpsi_sat_deliv_sys_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_sat_deliv_sys_dr(
dvbpsi_dvb_sat_deliv_sys_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -121,7 +121,7 @@ dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_sat_deliv_sys_dr_t));
sizeof(dvbpsi_dvb_sat_deliv_sys_dr_t));
}
return p_descriptor;
......
......@@ -41,20 +41,20 @@ extern "C" {
/*****************************************************************************
* dvbpsi_sat_deliv_sys_dr_t
* dvbpsi_dvb_sat_deliv_sys_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_sat_deliv_sys_dr_s
* \struct dvbpsi_dvb_sat_deliv_sys_dr_s
* \brief satellite delivery system descriptor structure.
*
* This structure is used to store a decoded satellite delivery system
* descriptor. (ETSI EN 300 468 section 6.2.13.2).
*/
/*!
* \typedef struct dvbpsi_sat_deliv_sys_dr_s dvbpsi_sat_deliv_sys_dr_t
* \brief dvbpsi_sat_deliv_sys_dr_t type definition.
* \typedef struct dvbpsi_dvb_sat_deliv_sys_dr_s dvbpsi_dvb_sat_deliv_sys_dr_t
* \brief dvbpsi_dvb_sat_deliv_sys_dr_t type definition.
*/
typedef struct dvbpsi_sat_deliv_sys_dr_s
typedef struct dvbpsi_dvb_sat_deliv_sys_dr_s
{
uint32_t i_frequency; /*!< frequency */
uint16_t i_orbital_position; /*!< orbital position */
......@@ -66,30 +66,30 @@ typedef struct dvbpsi_sat_deliv_sys_dr_s
uint32_t i_symbol_rate; /*!< symbol rate */
uint8_t i_fec_inner; /*!< FEC inner */
} dvbpsi_sat_deliv_sys_dr_t;
} dvbpsi_dvb_sat_deliv_sys_dr_t;
/*****************************************************************************
* dvbpsi_DecodeSatDelivSysDr
* dvbpsi_decode_dvb_sat_deliv_sys_dr
*****************************************************************************/
/*!
* \fn dvbpsi_sat_deliv_sys_dr_t * dvbpsi_DecodeSatDelivSysDr(
* \fn dvbpsi_dvb_sat_deliv_sys_dr_t * dvbpsi_decode_dvb_sat_deliv_sys_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief satellite delivery system descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new satellite delivery system descriptor structure
* which contains the decoded data.
*/
dvbpsi_sat_deliv_sys_dr_t* dvbpsi_DecodeSatDelivSysDr(
dvbpsi_dvb_sat_deliv_sys_dr_t* dvbpsi_decode_dvb_sat_deliv_sys_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenSatDelivSysDr
* dvbpsi_gen_dvb_sat_deliv_sys_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr(
dvbpsi_sat_deliv_sys_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_sat_deliv_sys_dr(
dvbpsi_dvb_sat_deliv_sys_dr_t * p_decoded, bool b_duplicate)
* \brief satellite delivery system descriptor generator.
* \param p_decoded pointer to a decoded satellite delivery system descriptor
* descriptor structure
......@@ -97,8 +97,8 @@ dvbpsi_sat_deliv_sys_dr_t* dvbpsi_DecodeSatDelivSysDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr(
dvbpsi_sat_deliv_sys_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_sat_deliv_sys_dr(
dvbpsi_dvb_sat_deliv_sys_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,12 +42,12 @@
/*****************************************************************************
* dvbpsi_DecodeCableDelivSysDr
* dvbpsi_decode_dvb_cable_deliv_sys_dr
*****************************************************************************/
dvbpsi_cable_deliv_sys_dr_t * dvbpsi_DecodeCableDelivSysDr(
dvbpsi_dvb_cable_deliv_sys_dr_t * dvbpsi_decode_dvb_cable_deliv_sys_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_cable_deliv_sys_dr_t * p_decoded;
dvbpsi_dvb_cable_deliv_sys_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x44))
......@@ -59,7 +59,7 @@ dvbpsi_cable_deliv_sys_dr_t * dvbpsi_DecodeCableDelivSysDr(
/* Allocate memory */
p_decoded =
(dvbpsi_cable_deliv_sys_dr_t*)malloc(sizeof(dvbpsi_cable_deliv_sys_dr_t));
(dvbpsi_dvb_cable_deliv_sys_dr_t*)malloc(sizeof(dvbpsi_dvb_cable_deliv_sys_dr_t));
if (!p_decoded)
return NULL;
......@@ -82,10 +82,10 @@ dvbpsi_cable_deliv_sys_dr_t * dvbpsi_DecodeCableDelivSysDr(
}
/*****************************************************************************
* dvbpsi_GenCableDelivSysDr
* dvbpsi_gen_dvb_cable_deliv_sys_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCableDelivSysDr(
dvbpsi_cable_deliv_sys_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_cable_deliv_sys_dr(
dvbpsi_dvb_cable_deliv_sys_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -114,7 +114,7 @@ dvbpsi_descriptor_t * dvbpsi_GenCableDelivSysDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_cable_deliv_sys_dr_t));
sizeof(dvbpsi_dvb_cable_deliv_sys_dr_t));
}
return p_descriptor;
......
......@@ -42,20 +42,20 @@ extern "C" {
/*****************************************************************************
* dvbpsi_cable_deliv_sys_dr_t
* dvbpsi_dvb_cable_deliv_sys_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_cable_deliv_sys_dr_s
* \struct dvbpsi_dvb_cable_deliv_sys_dr_s
* \brief cable delivery system descriptor structure.
*
* This structure is used to store a decoded cable delivery system
* descriptor. (ETSI EN 300 468 section 6.2.13.1).
*/
/*!
* \typedef struct dvbpsi_cable_deliv_sys_dr_s dvbpsi_cable_deliv_sys_dr_t
* \brief dvbpsi_cable_deliv_sys_dr_t type definition.
* \typedef struct dvbpsi_dvb_cable_deliv_sys_dr_s dvbpsi_dvb_cable_deliv_sys_dr_t
* \brief dvbpsi_dvb_cable_deliv_sys_dr_t type definition.
*/
typedef struct dvbpsi_cable_deliv_sys_dr_s
typedef struct dvbpsi_dvb_cable_deliv_sys_dr_s
{
uint32_t i_frequency; /*!< frequency */
uint8_t i_modulation; /*!< modulation type */
......@@ -63,30 +63,30 @@ typedef struct dvbpsi_cable_deliv_sys_dr_s
uint8_t i_fec_inner; /*!< FEC inner */
uint8_t i_fec_outer; /*!< FEC outer*/
} dvbpsi_cable_deliv_sys_dr_t;
} dvbpsi_dvb_cable_deliv_sys_dr_t;
/*****************************************************************************
* dvbpsi_DecodeCableDelivSysDr
* dvbpsi_decode_dvb_cable_deliv_sys_dr
*****************************************************************************/
/*!
* \fn dvbpsi_cable_deliv_sys_dr_t * dvbpsi_DecodeCableDelivSysDr(
* \fn dvbpsi_dvb_cable_deliv_sys_dr_t * dvbpsi_decode_dvb_cable_deliv_sys_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief cable delivery system descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new cable delivery system descriptor structure
* which contains the decoded data.
*/
dvbpsi_cable_deliv_sys_dr_t* dvbpsi_DecodeCableDelivSysDr(
dvbpsi_dvb_cable_deliv_sys_dr_t* dvbpsi_decode_dvb_cable_deliv_sys_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenCableDelivSysDr
* dvbpsi_gen_dvb_cable_deliv_sys_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenCableDelivSysDr(
dvbpsi_cable_deliv_sys_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_cable_deliv_sys_dr(
dvbpsi_dvb_cable_deliv_sys_dr_t * p_decoded, bool b_duplicate)
* \brief cable delivery system descriptor generator.
* \param p_decoded pointer to a decoded cable delivery system descriptor
* descriptor structure
......@@ -94,8 +94,8 @@ dvbpsi_cable_deliv_sys_dr_t* dvbpsi_DecodeCableDelivSysDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenCableDelivSysDr(
dvbpsi_cable_deliv_sys_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_cable_deliv_sys_dr(
dvbpsi_dvb_cable_deliv_sys_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -41,9 +41,9 @@
#include "dr_45.h"
/*****************************************************************************
* dvbpsi_DecodeVBIDataDr
* dvbpsi_decode_dvb_vbi_dr
*****************************************************************************/
dvbpsi_vbi_dr_t * dvbpsi_DecodeVBIDataDr(
dvbpsi_dvb_vbi_dr_t * dvbpsi_decode_dvb_vbi_dr(
dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
......@@ -61,13 +61,13 @@ dvbpsi_vbi_dr_t * dvbpsi_DecodeVBIDataDr(
return NULL;
/* */
dvbpsi_vbi_dr_t * p_decoded;
dvbpsi_dvb_vbi_dr_t * p_decoded;
uint8_t i_services_number = p_descriptor->i_length / 2;
if (i_services_number > DVBPSI_VBI_DR_MAX)
i_services_number = DVBPSI_VBI_DR_MAX;
/* Allocate memory */
p_decoded = (dvbpsi_vbi_dr_t*)malloc(sizeof(dvbpsi_vbi_dr_t));
p_decoded = (dvbpsi_dvb_vbi_dr_t*)malloc(sizeof(dvbpsi_dvb_vbi_dr_t));
if (!p_decoded)
return NULL;
......@@ -101,9 +101,9 @@ dvbpsi_vbi_dr_t * dvbpsi_DecodeVBIDataDr(
}
/*****************************************************************************
* dvbpsi_GenVBIDataDr
* dvbpsi_gen_dvb_vbi_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr(dvbpsi_vbi_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_vbi_dr(dvbpsi_dvb_vbi_dr_t * p_decoded,
bool b_duplicate)
{
if (p_decoded->i_services_number > DVBPSI_VBI_DR_MAX)
......@@ -142,7 +142,7 @@ dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr(dvbpsi_vbi_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_vbi_dr_t));
sizeof(dvbpsi_dvb_vbi_dr_t));
}
return p_descriptor;
......
......@@ -93,53 +93,53 @@ typedef struct dvbpsi_vbidata_s
/*!
* \def DVBPSI_VBI_DR_MAX
* \brief Maximum number of dvbpsi_vbidata_t entries present in
* @see dvbpsi_vbi_dr_t
* @see dvbpsi_dvb_vbi_dr_t
*/
#define DVBPSI_VBI_DR_MAX 85
/*****************************************************************************
* dvbpsi_vbi_dr_t
* dvbpsi_dvb_vbi_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_vbi_dr_s
* \struct dvbpsi_dvb_vbi_dr_s
* \brief "teletext" descriptor structure.
*
* This structure is used to store a decoded "VBI data"
* descriptor. (ETSI EN 300 468 version 1.7.1 section 6.2.46).
*/
/*!
* \typedef struct dvbpsi_vbi_dr_s dvbpsi_vbi_dr_t
* \brief dvbpsi_vbi_dr_t type definition.
* \typedef struct dvbpsi_dvb_vbi_dr_s dvbpsi_dvb_vbi_dr_t
* \brief dvbpsi_dvb_vbi_dr_t type definition.
*/
typedef struct dvbpsi_vbi_dr_s
typedef struct dvbpsi_dvb_vbi_dr_s
{
uint8_t i_services_number; /*!< service number */
dvbpsi_vbidata_t p_services[DVBPSI_VBI_DR_MAX]; /*!< services table */
} dvbpsi_vbi_dr_t;
} dvbpsi_dvb_vbi_dr_t;
/*****************************************************************************
* dvbpsi_DecodeVBIDataDr
* dvbpsi_decode_dvb_vbi_dr
*****************************************************************************/
/*!
* \fn dvbpsi_vbi_dr_t * dvbpsi_DecodeVBIDataDr(
* \fn dvbpsi_dvb_vbi_dr_t * dvbpsi_decode_dvb_vbi_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "VBI data" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "VBI data" descriptor structure
* which contains the decoded data.
*/
dvbpsi_vbi_dr_t* dvbpsi_DecodeVBIDataDr(
dvbpsi_dvb_vbi_dr_t* dvbpsi_decode_dvb_vbi_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenVBIDataDr
* dvbpsi_gen_dvb_vbi_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr(
dvbpsi_vbi_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_vbi_dr(
dvbpsi_dvb_vbi_dr_t * p_decoded, bool b_duplicate)
* \brief "VBI data" descriptor generator.
* \param p_decoded pointer to a decoded "VBI data" descriptor
* structure
......@@ -147,8 +147,8 @@ dvbpsi_vbi_dr_t* dvbpsi_DecodeVBIDataDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr(
dvbpsi_vbi_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_vbi_dr(
dvbpsi_dvb_vbi_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -43,12 +43,12 @@
/*****************************************************************************
* dvbpsi_DecodeBouquetNameDr
* dvbpsi_decode_dvb_bouquet_name_dr
*****************************************************************************/
dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr(
dvbpsi_dvb_bouquet_name_dr_t * dvbpsi_decode_dvb_bouquet_name_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_bouquet_name_dr_t * p_decoded;
dvbpsi_dvb_bouquet_name_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x47))
......@@ -59,7 +59,7 @@ dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr(
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = (dvbpsi_bouquet_name_dr_t*)malloc(sizeof(dvbpsi_bouquet_name_dr_t));
p_decoded = (dvbpsi_dvb_bouquet_name_dr_t*)malloc(sizeof(dvbpsi_dvb_bouquet_name_dr_t));
if (!p_decoded)
return NULL;
......@@ -78,9 +78,9 @@ dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr(
/*****************************************************************************
* dvbpsi_GenBouquetNameDr
* dvbpsi_gen_dvb_bouquet_name_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(dvbpsi_bouquet_name_dr_t *p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_bouquet_name_dr(dvbpsi_dvb_bouquet_name_dr_t *p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -100,7 +100,7 @@ dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(dvbpsi_bouquet_name_dr_t *p_decode
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_bouquet_name_dr_t));
sizeof(dvbpsi_dvb_bouquet_name_dr_t));
}
return p_descriptor;
......
......@@ -42,48 +42,48 @@ extern "C" {
/*****************************************************************************
* dvbpsi_bouquet_name_dr_t
* dvbpsi_dvb_bouquet_name_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_bouquet_name_dr_s
* \struct dvbpsi_dvb_bouquet_name_dr_s
* \brief "bouquet name" descriptor structure.
*
* This structure is used to store a decoded "bouquet name"
* descriptor. (ETSI EN 300 468 section 6.2.3).
*/
/*!
* \typedef struct dvbpsi_bouquet_name_dr_s dvbpsi_bouquet_name_dr_t
* \brief dvbpsi_bouquet_name_dr_t type definition.
* \typedef struct dvbpsi_dvb_bouquet_name_dr_s dvbpsi_dvb_bouquet_name_dr_t
* \brief dvbpsi_dvb_bouquet_name_dr_t type definition.
*/
typedef struct dvbpsi_bouquet_name_dr_s
typedef struct dvbpsi_dvb_bouquet_name_dr_s
{
uint8_t i_name_length; /*!< length of thr i_char array */
uint8_t i_char[255]; /*!< char */
} dvbpsi_bouquet_name_dr_t;
} dvbpsi_dvb_bouquet_name_dr_t;
/*****************************************************************************
* dvbpsi_DecodeBouquetNameDr
* dvbpsi_decode_dvb_bouquet_name_dr
*****************************************************************************/
/*!
* \fn dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr(
* \fn dvbpsi_dvb_bouquet_name_dr_t * dvbpsi_decode_dvb_bouquet_name_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "bouquet name" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "bouquet name" descriptor structure
* which contains the decoded data.
*/
dvbpsi_bouquet_name_dr_t* dvbpsi_DecodeBouquetNameDr(
dvbpsi_dvb_bouquet_name_dr_t* dvbpsi_decode_dvb_bouquet_name_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenBouquetNameDr
* dvbpsi_gen_dvb_bouquet_name_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(
dvbpsi_bouquet_name_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_bouquet_name_dr(
dvbpsi_dvb_bouquet_name_dr_t * p_decoded, bool b_duplicate)
* \brief "bouquet name" descriptor generator.
* \param p_decoded pointer to a decoded "bouquet name" descriptor
* structure
......@@ -91,8 +91,8 @@ dvbpsi_bouquet_name_dr_t* dvbpsi_DecodeBouquetNameDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(
dvbpsi_bouquet_name_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_bouquet_name_dr(
dvbpsi_dvb_bouquet_name_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -43,9 +43,9 @@
/*****************************************************************************
* dvbpsi_DecodeServiceDr
* dvbpsi_decode_dvb_service_dr
*****************************************************************************/
dvbpsi_service_dr_t * dvbpsi_DecodeServiceDr(
dvbpsi_dvb_service_dr_t * dvbpsi_decode_dvb_service_dr(
dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
......@@ -60,8 +60,8 @@ dvbpsi_service_dr_t * dvbpsi_DecodeServiceDr(
return NULL;
/* Allocate memory */
dvbpsi_service_dr_t * p_decoded;
p_decoded = (dvbpsi_service_dr_t*)calloc(1, sizeof(dvbpsi_service_dr_t));
dvbpsi_dvb_service_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_service_dr_t*)calloc(1, sizeof(dvbpsi_dvb_service_dr_t));
if (!p_decoded)
return NULL;
......@@ -106,9 +106,9 @@ dvbpsi_service_dr_t * dvbpsi_DecodeServiceDr(
}
/*****************************************************************************
* dvbpsi_GenServiceDr
* dvbpsi_gen_dvb_service_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenServiceDr(dvbpsi_service_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_service_dr(dvbpsi_dvb_service_dr_t * p_decoded,
bool b_duplicate)
{
if (p_decoded->i_service_provider_name_length > 252)
......@@ -146,7 +146,7 @@ dvbpsi_descriptor_t * dvbpsi_GenServiceDr(dvbpsi_service_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_service_dr_t));
sizeof(dvbpsi_dvb_service_dr_t));
}
return p_descriptor;
......
......@@ -42,20 +42,20 @@ extern "C" {
/*****************************************************************************
* dvbpsi_service_dr_t
* dvbpsi_dvb_service_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_service_dr_s
* \struct dvbpsi_dvb_service_dr_s
* \brief "service" descriptor structure.
*
* This structure is used to store a decoded "service"
* descriptor. (ETSI EN 300 468 section 6.2.30).
*/
/*!
* \typedef struct dvbpsi_service_dr_s dvbpsi_service_dr_t
* \brief dvbpsi_service_dr_t type definition.
* \typedef struct dvbpsi_dvb_service_dr_s dvbpsi_dvb_service_dr_t
* \brief dvbpsi_dvb_service_dr_t type definition.
*/
typedef struct dvbpsi_service_dr_s
typedef struct dvbpsi_dvb_service_dr_s
{
uint8_t i_service_type; /*!< service_type*/
uint8_t i_service_provider_name_length; /*!< length of the
......@@ -65,21 +65,21 @@ typedef struct dvbpsi_service_dr_s
i_service_name array*/
uint8_t i_service_name[252]; /*!< name of the service */
} dvbpsi_service_dr_t;
} dvbpsi_dvb_service_dr_t;
/*****************************************************************************
* dvbpsi_DecodeServiceDataDr
*****************************************************************************/
/*!
* \fn dvbpsi_service_dr_t * dvbpsi_DecodeServiceDr(
* \fn dvbpsi_dvb_service_dr_t * dvbpsi_decode_dvb_service_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "service" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "service" descriptor structure
* which contains the decoded data.
*/
dvbpsi_service_dr_t* dvbpsi_DecodeServiceDr(
dvbpsi_dvb_service_dr_t* dvbpsi_decode_dvb_service_dr(
dvbpsi_descriptor_t * p_descriptor);
......@@ -87,8 +87,8 @@ dvbpsi_service_dr_t* dvbpsi_DecodeServiceDr(
* dvbpsi_GenServiceDataDr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenServiceDr(
dvbpsi_service_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_service_dr(
dvbpsi_dvb_service_dr_t * p_decoded, bool b_duplicate)
* \brief "service" descriptor generator.
* \param p_decoded pointer to a decoded "service" descriptor
* structure
......@@ -96,8 +96,8 @@ dvbpsi_service_dr_t* dvbpsi_DecodeServiceDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenServiceDr(
dvbpsi_service_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_service_dr(
dvbpsi_dvb_service_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -40,12 +40,12 @@
#include "dr_49.h"
/*****************************************************************************
* dvbpsi_DecodeCountryAvailability
* dvbpsi_decode_dvb_country_availability_dr
*****************************************************************************/
dvbpsi_country_availability_dr_t* dvbpsi_DecodeCountryAvailability(
dvbpsi_dvb_country_availability_dr_t* dvbpsi_decode_dvb_country_availability_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_country_availability_dr_t * p_decoded;
dvbpsi_dvb_country_availability_dr_t * p_decoded;
/* Check the tag */
if (p_descriptor->i_tag != 0x49)
......@@ -63,7 +63,7 @@ dvbpsi_country_availability_dr_t* dvbpsi_DecodeCountryAvailability(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_country_availability_dr_t*)calloc(1, sizeof(dvbpsi_country_availability_dr_t));
p_decoded = (dvbpsi_dvb_country_availability_dr_t*)calloc(1, sizeof(dvbpsi_dvb_country_availability_dr_t));
if (!p_decoded)
return NULL;
......@@ -85,10 +85,10 @@ dvbpsi_country_availability_dr_t* dvbpsi_DecodeCountryAvailability(
/*****************************************************************************
* dvbpsi_GenCountryAvailabilityDr
* dvbpsi_gen_dvb_country_availability_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCountryAvailabilityDr(
dvbpsi_country_availability_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_country_availability_dr(
dvbpsi_dvb_country_availability_dr_t * p_decoded,
bool b_duplicate)
{
/* Check the length */
......@@ -116,7 +116,7 @@ dvbpsi_descriptor_t * dvbpsi_GenCountryAvailabilityDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_country_availability_dr_t));
sizeof(dvbpsi_dvb_country_availability_dr_t));
}
return p_descriptor;
......
......@@ -40,24 +40,24 @@ extern "C" {
/*****************************************************************************
* dvbpsi_country_availability_dr_t
* dvbpsi_dvb_country_availability_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_country_availability_dr_t
* \struct dvbpsi_dvb_country_availability_dr_t
* \brief "country availability" descriptor structure.
*
* This structure is used to store a decoded "country availability"
* descriptor. (ETSI EN 300 468 section 6.2.10).
*/
/*!
* \typedef struct dvbpsi_country_availability_dr_s dvbpsi_country_availability_dr_t
* \brief dvbpsi_country_availability_dr_t type definition.
* \typedef struct dvbpsi_dvb_country_availability_dr_s dvbpsi_dvb_country_availability_dr_t
* \brief dvbpsi_dvb_country_availability_dr_t type definition.
*/
/*!
* \struct dvbpsi_country_availability_dr_s
* \brief dvbpsi_country_availability_dr_s type definition @see dvbpsi_country_availability_dr_t
* \struct dvbpsi_dvb_country_availability_dr_s
* \brief dvbpsi_dvb_country_availability_dr_s type definition @see dvbpsi_dvb_country_availability_dr_t
*/
typedef struct dvbpsi_country_availability_dr_s
typedef struct dvbpsi_dvb_country_availability_dr_s
{
bool b_country_availability_flag; /*!< country availability flag */
uint8_t i_code_count; /*!< length of the i_iso_639_code
......@@ -66,28 +66,28 @@ typedef struct dvbpsi_country_availability_dr_s
iso_639_language_code_t iso_639_code; /*!< ISO_639 language code */
} code[84]; /*!< ISO_639_language_code array */
} dvbpsi_country_availability_dr_t;
} dvbpsi_dvb_country_availability_dr_t;
/*****************************************************************************
* dvbpsi_DecodeCountryAvailabilityDr
* dvbpsi_decode_dvb_country_availability_drDr
*****************************************************************************/
/*!
* \fn dvbpsi_country_availability_dr_t * dvbpsi_DecodeCountryAvailability(
* \fn dvbpsi_dvb_country_availability_dr_t * dvbpsi_decode_dvb_country_availability_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "country availability" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "country availability" descriptor structure
* which contains the decoded data.
*/
dvbpsi_country_availability_dr_t* dvbpsi_DecodeCountryAvailability(
dvbpsi_dvb_country_availability_dr_t* dvbpsi_decode_dvb_country_availability_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenCountryAvailabilityDr
* dvbpsi_gen_dvb_country_availability_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenCountryAvailabilityDr(
dvbpsi_country_availability_dr_t * p_decoded,
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_country_availability_dr(
dvbpsi_dvb_country_availability_dr_t * p_decoded,
bool b_duplicate)
* \brief "country availability" descriptor generator.
* \param p_decoded pointer to a decoded "country availability" descriptor
......@@ -96,8 +96,8 @@ dvbpsi_country_availability_dr_t* dvbpsi_DecodeCountryAvailability(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenCountryAvailabilityDr(
dvbpsi_country_availability_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_country_availability_dr(
dvbpsi_dvb_country_availability_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -44,9 +44,9 @@
#define DR_4A_MIN_SIZE 7
/*****************************************************************************
* dvbpsi_DecodeLinkageDr
* dvbpsi_decode_dvb_linkage_dr
*****************************************************************************/
dvbpsi_linkage_dr_t* dvbpsi_DecodeLinkageDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_dvb_linkage_dr_t* dvbpsi_decode_dvb_linkage_dr(dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
if (p_descriptor->i_tag != 0x4A)
......@@ -79,8 +79,8 @@ dvbpsi_linkage_dr_t* dvbpsi_DecodeLinkageDr(dvbpsi_descriptor_t * p_descriptor)
return NULL;
/* Allocate memory */
dvbpsi_linkage_dr_t * p_decoded;
p_decoded = (dvbpsi_linkage_dr_t*)calloc(1, sizeof(dvbpsi_linkage_dr_t));
dvbpsi_dvb_linkage_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_linkage_dr_t*)calloc(1, sizeof(dvbpsi_dvb_linkage_dr_t));
if (!p_decoded)
return NULL;
......@@ -140,9 +140,9 @@ dvbpsi_linkage_dr_t* dvbpsi_DecodeLinkageDr(dvbpsi_descriptor_t * p_descriptor)
}
/*****************************************************************************
* dvbpsi_GenCountryAvailabilityDr
* dvbpsi_gen_dvb_country_availability_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenLinkageDr(dvbpsi_linkage_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_linkage_dr(dvbpsi_dvb_linkage_dr_t * p_decoded,
bool b_duplicate)
{
/* Check the length */
......@@ -226,7 +226,7 @@ dvbpsi_descriptor_t * dvbpsi_GenLinkageDr(dvbpsi_linkage_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_linkage_dr_t));
sizeof(dvbpsi_dvb_linkage_dr_t));
}
return p_descriptor;
......
......@@ -39,24 +39,24 @@ extern "C" {
#endif
/*****************************************************************************
* dvbpsi_linkage_dr_t
* dvbpsi_dvb_linkage_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_linkage_dr_t
* \struct dvbpsi_dvb_linkage_dr_t
* \brief "linkage" descriptor structure.
*
* This structure is used to store a decoded "linkage"
* descriptor. (ETSI EN 300 468 section 6.2.10).
*/
/*!
* \typedef struct dvbpsi_linkage_dr_s dvbpsi_linkage_dr_t
* \brief dvbpsi_linkage_dr_t type definition.
* \typedef struct dvbpsi_dvb_linkage_dr_s dvbpsi_dvb_linkage_dr_t
* \brief dvbpsi_dvb_linkage_dr_t type definition.
*/
/*!
* \struct dvbpsi_linkage_dr_s
* \brief struct dvbpsi_linkage_dr_s @see dvbpsi_linkage_dr_t
* \struct dvbpsi_dvb_linkage_dr_s
* \brief struct dvbpsi_dvb_linkage_dr_s @see dvbpsi_dvb_linkage_dr_t
*/
typedef struct dvbpsi_linkage_dr_s
typedef struct dvbpsi_dvb_linkage_dr_s
{
uint16_t i_transport_stream_id; /*!< transport stream id */
uint16_t i_original_network_id; /*!< original network id */
......@@ -82,26 +82,26 @@ typedef struct dvbpsi_linkage_dr_s
array */
uint8_t i_private_data[246]; /*!< private data */
} dvbpsi_linkage_dr_t;
} dvbpsi_dvb_linkage_dr_t;
/*****************************************************************************
* dvbpsi_DecodeLinkageDr
* dvbpsi_decode_dvb_linkage_dr
*****************************************************************************/
/*!
* \fn dvbpsi_linkage_dr_t * dvbpsi_DecodeLinkageDr(
* \fn dvbpsi_dvb_linkage_dr_t * dvbpsi_decode_dvb_linkage_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "linkage" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "linkage" descriptor structure
* which contains the decoded data.
*/
dvbpsi_linkage_dr_t* dvbpsi_DecodeLinkageDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_dvb_linkage_dr_t* dvbpsi_decode_dvb_linkage_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenLinkageDr
* dvbpsi_gen_dvb_linkage_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t *dvbpsi_GenLinkageDr(dvbpsi_linkage_dr_t *p_decoded,
* \fn dvbpsi_descriptor_t *dvbpsi_gen_dvb_linkage_dr(dvbpsi_dvb_linkage_dr_t *p_decoded,
bool b_duplicate);
* \brief "linkage" descriptor generator.
* \param p_decoded pointer to a decoded "linkage" descriptor structure
......@@ -109,7 +109,7 @@ dvbpsi_linkage_dr_t* dvbpsi_DecodeLinkageDr(dvbpsi_descriptor_t * p_descriptor);
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t *dvbpsi_GenLinkageDr(dvbpsi_linkage_dr_t * p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_linkage_dr(dvbpsi_dvb_linkage_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -40,9 +40,9 @@
#include "dr_4b.h"
/*****************************************************************************
* dvbpsi_DecodeNVODReferenceDr
* dvbpsi_decode_dvb_nvod_ref_dr
*****************************************************************************/
dvbpsi_nvod_ref_dr_t* dvbpsi_DecodeNVODReferenceDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_dvb_nvod_ref_dr_t* dvbpsi_decode_dvb_nvod_ref_dr(dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
if (p_descriptor->i_tag != 0x4B)
......@@ -59,8 +59,8 @@ dvbpsi_nvod_ref_dr_t* dvbpsi_DecodeNVODReferenceDr(dvbpsi_descriptor_t * p_descr
return NULL;
/* Allocate memory */
dvbpsi_nvod_ref_dr_t * p_decoded;
p_decoded = (dvbpsi_nvod_ref_dr_t*)calloc(1, sizeof(dvbpsi_nvod_ref_dr_t));
dvbpsi_dvb_nvod_ref_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_nvod_ref_dr_t*)calloc(1, sizeof(dvbpsi_dvb_nvod_ref_dr_t));
if (!p_decoded)
return NULL;
......@@ -86,9 +86,9 @@ dvbpsi_nvod_ref_dr_t* dvbpsi_DecodeNVODReferenceDr(dvbpsi_descriptor_t * p_descr
}
/*****************************************************************************
* dvbpsi_GenNVODReferenceDr
* dvbpsi_gen_dvb_nvod_ref_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenNVODReferenceDr(dvbpsi_nvod_ref_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_nvod_ref_dr(dvbpsi_dvb_nvod_ref_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -117,7 +117,7 @@ dvbpsi_descriptor_t * dvbpsi_GenNVODReferenceDr(dvbpsi_nvod_ref_dr_t * p_decoded
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_nvod_ref_dr_t));
sizeof(dvbpsi_dvb_nvod_ref_dr_t));
}
return p_descriptor;
......
......@@ -44,12 +44,12 @@ extern "C" {
* \struct dvbpsi_nvod_ref_t
* \brief one "NVOD reference" structure.
*
* This structure is used since dvbpsi_nvod_ref_dr_t structure will contain
* This structure is used since dvbpsi_dvb_nvod_ref_dr_t structure will contain
* several of these structures
*/
/*!
* \typedef struct dvbpsi_nvod_ref_s dvbpsi_nvod_ref_t
* \brief dvbpsi_nvod_ref_dr_t type definition.
* \brief dvbpsi_dvb_nvod_ref_dr_t type definition.
*/
/*!
* \struct dvbpsi_nvod_ref_s
......@@ -63,43 +63,43 @@ typedef struct dvbpsi_nvod_ref_s
} dvbpsi_nvod_ref_t;
/*****************************************************************************
* dvbpsi_nvod_ref_dr_t
* dvbpsi_dvb_nvod_ref_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_nvod_ref_dr_s
* \struct dvbpsi_dvb_nvod_ref_dr_s
* \brief "NVOD reference" descriptor structure.
*
* This structure is used to store a decoded "Near Video On Demand (NVOD) reference"
* descriptor. (ETSI EN 300 468 section 6.2.26).
*/
/*!
* \typedef struct dvbpsi_nvod_ref_dr_s dvbpsi_nvod_ref_dr_t
* \brief dvbpsi_nvod_ref_dr_t type definition.
* \typedef struct dvbpsi_dvb_nvod_ref_dr_s dvbpsi_dvb_nvod_ref_dr_t
* \brief dvbpsi_dvb_nvod_ref_dr_t type definition.
*/
typedef struct dvbpsi_nvod_ref_dr_s
typedef struct dvbpsi_dvb_nvod_ref_dr_s
{
uint8_t i_references; /*!< number of nvod references */
dvbpsi_nvod_ref_t p_nvod_refs[43]; /*!< NVOD references */
} dvbpsi_nvod_ref_dr_t;
} dvbpsi_dvb_nvod_ref_dr_t;
/*****************************************************************************
* dvbpsi_DecodeNVODReferenceDr
* dvbpsi_decode_dvb_nvod_ref_dr
*****************************************************************************/
/*!
* \fn dvbpsi_nvod_ref_dr_t * dvbpsi_DecodeNVODReferenceDr(
* \fn dvbpsi_dvb_nvod_ref_dr_t * dvbpsi_decode_dvb_nvod_ref_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "NVOD reference" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "NVOD reference" descriptor structure
* which contains the decoded data.
*/
dvbpsi_nvod_ref_dr_t* dvbpsi_DecodeNVODReferenceDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_dvb_nvod_ref_dr_t* dvbpsi_decode_dvb_nvod_ref_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenNVODReferenceDr
* dvbpsi_gen_dvb_nvod_ref_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t *dvbpsi_GenNVODReferenceDr(dvbpsi_nvod_ref_dr_t *p_decoded,
* \fn dvbpsi_descriptor_t *dvbpsi_gen_dvb_nvod_ref_dr(dvbpsi_dvb_nvod_ref_dr_t *p_decoded,
bool b_duplicate);
* \brief "NVOD reference" descriptor generator.
* \param p_decoded pointer to a decoded "NVOD reference" descriptor structure
......@@ -107,7 +107,7 @@ dvbpsi_nvod_ref_dr_t* dvbpsi_DecodeNVODReferenceDr(dvbpsi_descriptor_t * p_descr
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t *dvbpsi_GenNVODReferenceDr(dvbpsi_nvod_ref_dr_t * p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_nvod_ref_dr(dvbpsi_dvb_nvod_ref_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -40,9 +40,9 @@
#include "dr_4c.h"
/*****************************************************************************
* dvbpsi_DecodeTimeShiftedServiceDr
* dvbpsi_decode_dvb_tshifted_service_dr
*****************************************************************************/
dvbpsi_tshifted_service_dr_t* dvbpsi_DecodeTimeShiftedServiceDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_dvb_tshifted_service_dr_t* dvbpsi_decode_dvb_tshifted_service_dr(dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x4c))
......@@ -56,8 +56,8 @@ dvbpsi_tshifted_service_dr_t* dvbpsi_DecodeTimeShiftedServiceDr(dvbpsi_descripto
return NULL;
/* Allocate memory */
dvbpsi_tshifted_service_dr_t *p_decoded;
p_decoded = (dvbpsi_tshifted_service_dr_t*)calloc(1, sizeof(dvbpsi_tshifted_service_dr_t));
dvbpsi_dvb_tshifted_service_dr_t *p_decoded;
p_decoded = (dvbpsi_dvb_tshifted_service_dr_t*)calloc(1, sizeof(dvbpsi_dvb_tshifted_service_dr_t));
if (!p_decoded)
return NULL;
......@@ -71,9 +71,9 @@ dvbpsi_tshifted_service_dr_t* dvbpsi_DecodeTimeShiftedServiceDr(dvbpsi_descripto
}
/*****************************************************************************
* dvbpsi_GenTimeShiftedServiceDr
* dvbpsi_gen_dvb_tshifted_service_dr
*****************************************************************************/
dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedServiceDr(dvbpsi_tshifted_service_dr_t *p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_tshifted_service_dr(dvbpsi_dvb_tshifted_service_dr_t *p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -90,7 +90,7 @@ dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedServiceDr(dvbpsi_tshifted_service_dr_t
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_tshifted_service_dr_t));
sizeof(dvbpsi_dvb_tshifted_service_dr_t));
}
return p_descriptor;
......
......@@ -39,46 +39,46 @@ extern "C" {
#endif
/*****************************************************************************
* dvbpsi_tshifted_service_dr_t
* dvbpsi_dvb_tshifted_service_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_tshifted_service_dr_t
* \struct dvbpsi_dvb_tshifted_service_dr_t
* \brief "time shifted service" descriptor structure.
*
* This structure is used to store a decoded "time shifted service"
* descriptor. (ETSI EN 300 468 section 6.2.45).
*/
/*!
* \typedef struct dvbpsi_tshifted_service_dr_s dvbpsi_tshifted_service_dr_t
* \brief dvbpsi_tshifted_service_dr_t type definition.
* \typedef struct dvbpsi_dvb_tshifted_service_dr_s dvbpsi_dvb_tshifted_service_dr_t
* \brief dvbpsi_dvb_tshifted_service_dr_t type definition.
*/
/*!
* \struct dvbpsi_tshifted_service_dr_s
* \brief struct dvbpsi_tshifted_service_dr_s @see dvbpsi_tshifted_service_dr_t
* \struct dvbpsi_dvb_tshifted_service_dr_s
* \brief struct dvbpsi_dvb_tshifted_service_dr_s @see dvbpsi_dvb_tshifted_service_dr_t
*/
typedef struct dvbpsi_tshifted_service_dr_s
typedef struct dvbpsi_dvb_tshifted_service_dr_s
{
uint16_t i_ref_service_id; /*!< reference service id */
} dvbpsi_tshifted_service_dr_t;
} dvbpsi_dvb_tshifted_service_dr_t;
/*****************************************************************************
* dvbpsi_DecodeTimeShiftedServiceDr
* dvbpsi_decode_dvb_tshifted_service_dr
*****************************************************************************/
/*!
* \fn dvbpsi_tshifted_service_dr_t *dvbpsi_DecodeTimeShiftedServiceDr(
* \fn dvbpsi_dvb_tshifted_service_dr_t *dvbpsi_decode_dvb_tshifted_service_dr(
dvbpsi_descriptor_t *p_descriptor)
* \brief "time shifted service" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "time shifted service" descriptor structure
* which contains the decoded data.
*/
dvbpsi_tshifted_service_dr_t* dvbpsi_DecodeTimeShiftedServiceDr(dvbpsi_descriptor_t *p_descriptor);
dvbpsi_dvb_tshifted_service_dr_t* dvbpsi_decode_dvb_tshifted_service_dr(dvbpsi_descriptor_t *p_descriptor);
/*****************************************************************************
* dvbpsi_GenTimeShiftedServiceDr
* dvbpsi_gen_dvb_tshifted_service_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedServiceDr(dvbpsi_tshifted_service_dr_t *p_decoded,
* \fn dvbpsi_descriptor_t *dvbpsi_gen_dvb_tshifted_service_dr(dvbpsi_dvb_tshifted_service_dr_t *p_decoded,
bool b_duplicate);
* \brief "time shifted service" descriptor generator.
* \param p_decoded pointer to a decoded "time shifted service" descriptor structure
......@@ -86,7 +86,7 @@ dvbpsi_tshifted_service_dr_t* dvbpsi_DecodeTimeShiftedServiceDr(dvbpsi_descripto
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedServiceDr(dvbpsi_tshifted_service_dr_t *p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_tshifted_service_dr(dvbpsi_dvb_tshifted_service_dr_t *p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -41,11 +41,11 @@
#include "dr_4d.h"
/*****************************************************************************
* dvbpsi_DecodeShortEventDr
* dvbpsi_decode_dvb_short_event_dr
*****************************************************************************/
dvbpsi_short_event_dr_t * dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_dvb_short_event_dr_t * dvbpsi_decode_dvb_short_event_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_short_event_dr_t * p_decoded;
dvbpsi_dvb_short_event_dr_t * p_decoded;
int i_len1;
int i_len2;
......@@ -70,7 +70,7 @@ dvbpsi_short_event_dr_t * dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_desc
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = malloc(sizeof(dvbpsi_short_event_dr_t));
p_decoded = malloc(sizeof(dvbpsi_dvb_short_event_dr_t));
if (!p_decoded)
return NULL;
......@@ -89,9 +89,9 @@ dvbpsi_short_event_dr_t * dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_desc
}
/*****************************************************************************
* dvbpsi_GenShortEventDr
* dvbpsi_gen_dvb_short_event_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenShortEventDr(dvbpsi_short_event_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_short_event_dr(dvbpsi_dvb_short_event_dr_t * p_decoded,
bool b_duplicate)
{
uint8_t i_len1 = p_decoded->i_event_name_length;
......@@ -116,7 +116,7 @@ dvbpsi_descriptor_t * dvbpsi_GenShortEventDr(dvbpsi_short_event_dr_t * p_decoded
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_short_event_dr_t));
sizeof(dvbpsi_dvb_short_event_dr_t));
}
return p_descriptor;
......
......@@ -41,19 +41,19 @@ extern "C" {
/*****************************************************************************
* dvbpsi_short_event_dr_t
* dvbpsi_dvb_short_event_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_short_event_dr_s
* \struct dvbpsi_dvb_short_event_dr_s
* \brief "short event" descriptor structure.
*
* This structure is used to store a decoded "short event" descriptor.
*/
/*!
* \typedef struct dvbpsi_short_event_dr_s dvbpsi_short_event_dr_t
* \brief dvbpsi_short_event_dr_t type definition.
* \typedef struct dvbpsi_dvb_short_event_dr_s dvbpsi_dvb_short_event_dr_t
* \brief dvbpsi_dvb_short_event_dr_t type definition.
*/
typedef struct dvbpsi_short_event_dr_s
typedef struct dvbpsi_dvb_short_event_dr_s
{
uint8_t i_iso_639_code[3]; /*!< ISO 639 language code */
int i_event_name_length; /*!< length of event name */
......@@ -61,36 +61,36 @@ typedef struct dvbpsi_short_event_dr_s
int i_text_length; /*!< text length */
uint8_t i_text[256]; /*!< "short event" text */
} dvbpsi_short_event_dr_t;
} dvbpsi_dvb_short_event_dr_t;
/*****************************************************************************
* dvbpsi_DecodeShortEventDr
* dvbpsi_decode_dvb_short_event_dr
*****************************************************************************/
/*!
* \fn dvbpsi_short_event_dr_t * dvbpsi_DecodeShortEventDr(
* \fn dvbpsi_dvb_short_event_dr_t * dvbpsi_decode_dvb_short_event_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "short event" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "short event" descriptor structure which
* contains the decoded data.
*/
dvbpsi_short_event_dr_t* dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_dvb_short_event_dr_t* dvbpsi_decode_dvb_short_event_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenShortEventDr
* dvbpsi_gen_dvb_short_event_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenShortEventDr(
dvbpsi_short_event_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_short_event_dr(
dvbpsi_dvb_short_event_dr_t * p_decoded, bool b_duplicate)
* \brief "short event" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenShortEventDr(dvbpsi_short_event_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_short_event_dr(dvbpsi_dvb_short_event_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -41,11 +41,11 @@
#include "dr_4e.h"
/*****************************************************************************
* dvbpsi_DecodeExtendedEventDr
* dvbpsi_decode_dvb_extended_event_dr
*****************************************************************************/
dvbpsi_extended_event_dr_t * dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_dvb_extended_event_dr_t * dvbpsi_decode_dvb_extended_event_dr(dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_extended_event_dr_t * p_decoded;
dvbpsi_dvb_extended_event_dr_t * p_decoded;
int i_len;
int i_pos;
uint8_t *p;
......@@ -60,7 +60,7 @@ dvbpsi_extended_event_dr_t * dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t *
return p_descriptor->p_decoded;
/* Allocate memory */
p_decoded = malloc(sizeof(dvbpsi_extended_event_dr_t));
p_decoded = malloc(sizeof(dvbpsi_dvb_extended_event_dr_t));
if (!p_decoded)
return NULL;
......@@ -103,9 +103,9 @@ dvbpsi_extended_event_dr_t * dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t *
/*****************************************************************************
* dvbpsi_GenExtendedEventDr
* dvbpsi_gen_dvb_extended_event_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(dvbpsi_extended_event_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_extended_event_dr(dvbpsi_dvb_extended_event_dr_t * p_decoded,
bool b_duplicate)
{
int i_len;
......@@ -151,7 +151,7 @@ dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(dvbpsi_extended_event_dr_t * p_d
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_extended_event_dr_t));
sizeof(dvbpsi_dvb_extended_event_dr_t));
}
return p_descriptor;
......
......@@ -41,19 +41,19 @@ extern "C" {
/*****************************************************************************
* dvbpsi_extended_event_dr_t
* dvbpsi_dvb_extended_event_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_extended_event_dr_s
* \struct dvbpsi_dvb_extended_event_dr_s
* \brief "extended event" descriptor structure.
*
* This structure is used to store a decoded "extended event" descriptor.
*/
/*!
* \typedef struct dvbpsi_short_event_dr_s dvbpsi_extended_event_dr_t
* \brief dvbpsi_extended_event_dr_t type definition.
* \typedef struct dvbpsi_dvb_short_event_dr_s dvbpsi_dvb_extended_event_dr_t
* \brief dvbpsi_dvb_extended_event_dr_t type definition.
*/
typedef struct dvbpsi_extended_event_dr_s
typedef struct dvbpsi_dvb_extended_event_dr_s
{
uint8_t i_descriptor_number; /*!< descriptor number */
uint8_t i_last_descriptor_number; /*!< last descriptor number */
......@@ -70,36 +70,36 @@ typedef struct dvbpsi_extended_event_dr_s
uint8_t *i_text; /*!< text */
uint8_t i_buffer[256]; /*!< do not used*/
} dvbpsi_extended_event_dr_t;
} dvbpsi_dvb_extended_event_dr_t;
/*****************************************************************************
* dvbpsi_DecodeExtendedEventDr
* dvbpsi_decode_dvb_extended_event_dr
*****************************************************************************/
/*!
* \fn dvbpsi_extended_event_dr_t * dvbpsi_DecodeExtendedEventDr(
* \fn dvbpsi_dvb_extended_event_dr_t * dvbpsi_decode_dvb_extended_event_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "short event" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "short event" descriptor structure which
* contains the decoded data.
*/
dvbpsi_extended_event_dr_t* dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_dvb_extended_event_dr_t* dvbpsi_decode_dvb_extended_event_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenExtendedEventDr
* dvbpsi_gen_dvb_extended_event_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(
dvbpsi_extended_event_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_extended_event_dr(
dvbpsi_dvb_extended_event_dr_t * p_decoded, bool b_duplicate)
* \brief "short event" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(dvbpsi_extended_event_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_extended_event_dr(dvbpsi_dvb_extended_event_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -40,9 +40,9 @@
#include "dr_4f.h"
/*****************************************************************************
* dvbpsi_DecodeTimeShiftedEventDr
* dvbpsi_decode_dvb_tshifted_ev_dr
*****************************************************************************/
dvbpsi_tshifted_ev_dr_t* dvbpsi_DecodeTimeShiftedEventDr(dvbpsi_descriptor_t * p_descriptor) {
dvbpsi_dvb_tshifted_ev_dr_t* dvbpsi_decode_dvb_tshifted_ev_dr(dvbpsi_descriptor_t * p_descriptor) {
/* Check the tag */
if (p_descriptor->i_tag != 0x4F)
return NULL;
......@@ -56,8 +56,8 @@ dvbpsi_tshifted_ev_dr_t* dvbpsi_DecodeTimeShiftedEventDr(dvbpsi_descriptor_t * p
return NULL;
/* Allocate memory */
dvbpsi_tshifted_ev_dr_t * p_decoded;
p_decoded = (dvbpsi_tshifted_ev_dr_t*)calloc(1, sizeof(dvbpsi_tshifted_ev_dr_t));
dvbpsi_dvb_tshifted_ev_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_tshifted_ev_dr_t*)calloc(1, sizeof(dvbpsi_dvb_tshifted_ev_dr_t));
if (!p_decoded)
return NULL;
......@@ -73,9 +73,9 @@ dvbpsi_tshifted_ev_dr_t* dvbpsi_DecodeTimeShiftedEventDr(dvbpsi_descriptor_t * p
}
/*****************************************************************************
* dvbpsi_GenTimeShiftedEventDr
* dvbpsi_gen_dvb_tshifted_ev_dr
*****************************************************************************/
dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedEventDr(dvbpsi_tshifted_ev_dr_t * p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_tshifted_ev_dr(dvbpsi_dvb_tshifted_ev_dr_t * p_decoded,
bool b_duplicate) {
/* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor =
......@@ -94,7 +94,7 @@ dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedEventDr(dvbpsi_tshifted_ev_dr_t * p_de
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_tshifted_ev_dr_t));
sizeof(dvbpsi_dvb_tshifted_ev_dr_t));
}
return p_descriptor;
......
......@@ -39,47 +39,47 @@ extern "C" {
#endif
/*****************************************************************************
* dvbpsi_tshifted_ev_dr_t
* dvbpsi_dvb_tshifted_ev_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_tshifted_ev_dr_t
* \struct dvbpsi_dvb_tshifted_ev_dr_t
* \brief "time shifted event" descriptor structure.
*
* This structure is used to store a decoded "time shifted event"
* descriptor. (ETSI EN 300 468 section 6.2.44).
*/
/*!
* \typedef struct dvbpsi_tshifted_ev_dr_s dvbpsi_tshifted_ev_dr_t
* \brief dvbpsi_tshifted_ev_dr_t type definition.
* \typedef struct dvbpsi_dvb_tshifted_ev_dr_s dvbpsi_dvb_tshifted_ev_dr_t
* \brief dvbpsi_dvb_tshifted_ev_dr_t type definition.
*/
/*!
* \struct dvbpsi_tshifted_ev_dr_s
* \brief struct dvbpsi_tshifted_ev_dr_s @see dvbpsi_tshifted_ev_dr_t
* \struct dvbpsi_dvb_tshifted_ev_dr_s
* \brief struct dvbpsi_dvb_tshifted_ev_dr_s @see dvbpsi_dvb_tshifted_ev_dr_t
*/
typedef struct dvbpsi_tshifted_ev_dr_s
typedef struct dvbpsi_dvb_tshifted_ev_dr_s
{
uint16_t i_ref_service_id; /*!< reference service id */
uint16_t i_ref_event_id; /*!< reference service id */
} dvbpsi_tshifted_ev_dr_t;
} dvbpsi_dvb_tshifted_ev_dr_t;
/*****************************************************************************
* dvbpsi_DecodeTimeShiftedEventDr
* dvbpsi_decode_dvb_tshifted_ev_dr
*****************************************************************************/
/*!
* \fn dvbpsi_tshifted_ev_dr_t * dvbpsi_DecodeTimeShiftedEventDr(
* \fn dvbpsi_dvb_tshifted_ev_dr_t * dvbpsi_decode_dvb_tshifted_ev_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "time shifted event" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "time shifted event" descriptor structure
* which contains the decoded data.
*/
dvbpsi_tshifted_ev_dr_t* dvbpsi_DecodeTimeShiftedEventDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_dvb_tshifted_ev_dr_t* dvbpsi_decode_dvb_tshifted_ev_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenTimeShiftedEventDr
* dvbpsi_gen_dvb_tshifted_ev_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedEventDr(dvbpsi_tshifted_ev_dr_t *p_decoded,
* \fn dvbpsi_descriptor_t *dvbpsi_gen_dvb_tshifted_ev_dr(dvbpsi_dvb_tshifted_ev_dr_t *p_decoded,
bool b_duplicate);
* \brief "time shifted event" descriptor generator.
* \param p_decoded pointer to a decoded "time shifted event" descriptor structure
......@@ -87,7 +87,7 @@ dvbpsi_tshifted_ev_dr_t* dvbpsi_DecodeTimeShiftedEventDr(dvbpsi_descriptor_t * p
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t *dvbpsi_GenTimeShiftedEventDr(dvbpsi_tshifted_ev_dr_t * p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_tshifted_ev_dr(dvbpsi_dvb_tshifted_ev_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -40,9 +40,9 @@
#include "dr_50.h"
/*****************************************************************************
* dvbpsi_DecodeComponentDr
* dvbpsi_decode_dvb_component_dr
*****************************************************************************/
dvbpsi_component_dr_t* dvbpsi_DecodeComponentDr(dvbpsi_descriptor_t * p_descriptor)
dvbpsi_dvb_component_dr_t* dvbpsi_decode_dvb_component_dr(dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
if (p_descriptor->i_tag != 0x50)
......@@ -57,8 +57,8 @@ dvbpsi_component_dr_t* dvbpsi_DecodeComponentDr(dvbpsi_descriptor_t * p_descript
return NULL;
/* Allocate memory */
dvbpsi_component_dr_t * p_decoded;
p_decoded = (dvbpsi_component_dr_t*)calloc(1, sizeof(dvbpsi_component_dr_t));
dvbpsi_dvb_component_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_component_dr_t*)calloc(1, sizeof(dvbpsi_dvb_component_dr_t));
if (!p_decoded)
return NULL;
......@@ -90,9 +90,9 @@ dvbpsi_component_dr_t* dvbpsi_DecodeComponentDr(dvbpsi_descriptor_t * p_descript
}
/*****************************************************************************
* dvbpsi_GenComponentDr
* dvbpsi_gen_dvb_component_dr
*****************************************************************************/
dvbpsi_descriptor_t *dvbpsi_GenComponentDr(dvbpsi_component_dr_t * p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_component_dr(dvbpsi_dvb_component_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -114,7 +114,7 @@ dvbpsi_descriptor_t *dvbpsi_GenComponentDr(dvbpsi_component_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_component_dr_t));
sizeof(dvbpsi_dvb_component_dr_t));
}
return p_descriptor;
......
......@@ -39,24 +39,24 @@ extern "C" {
#endif
/*****************************************************************************
* dvbpsi_component_dr_t
* dvbpsi_dvb_component_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_component_dr_t
* \struct dvbpsi_dvb_component_dr_t
* \brief "Component" descriptor structure.
*
* This structure is used to store a decoded "Component"
* descriptor. (ETSI EN 300 468 section 6.2.8).
*/
/*!
* \typedef struct dvbpsi_component_dr_s dvbpsi_component_dr_t
* \brief dvbpsi_component_dr_t type definition.
* \typedef struct dvbpsi_dvb_component_dr_s dvbpsi_dvb_component_dr_t
* \brief dvbpsi_dvb_component_dr_t type definition.
*/
/*!
* \struct dvbpsi_component_dr_s
* \brief struct dvbpsi_component_dr_s @see dvbpsi_component_dr_t
* \struct dvbpsi_dvb_component_dr_s
* \brief struct dvbpsi_dvb_component_dr_s @see dvbpsi_dvb_component_dr_t
*/
typedef struct dvbpsi_component_dr_t
typedef struct dvbpsi_dvb_component_dr_t
{
uint8_t i_stream_content; /*!< stream content */
uint8_t i_component_type; /*!< component type */
......@@ -65,26 +65,26 @@ typedef struct dvbpsi_component_dr_t
int i_text_length; /*!< text length */
uint8_t *i_text; /*!< text */
} dvbpsi_component_dr_t;
} dvbpsi_dvb_component_dr_t;
/*****************************************************************************
* dvbpsi_DecodeComponentDr
* dvbpsi_decode_dvb_component_dr
*****************************************************************************/
/*!
* \fn dvbpsi_component_dr_t * dvbpsi_DecodeComponentDr(
* \fn dvbpsi_dvb_component_dr_t * dvbpsi_decode_dvb_component_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "Component" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "Component" descriptor structure
* which contains the decoded data.
*/
dvbpsi_component_dr_t* dvbpsi_DecodeComponentDr(dvbpsi_descriptor_t * p_descriptor);
dvbpsi_dvb_component_dr_t* dvbpsi_decode_dvb_component_dr(dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenComponentDr
* dvbpsi_gen_dvb_component_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t *dvbpsi_GenComponentDr(dvbpsi_component_dr_t *p_decoded,
* \fn dvbpsi_descriptor_t *dvbpsi_gen_dvb_component_dr(dvbpsi_dvb_component_dr_t *p_decoded,
bool b_duplicate);
* \brief "Component" descriptor generator.
* \param p_decoded pointer to a decoded "Component" descriptor structure
......@@ -92,7 +92,7 @@ dvbpsi_component_dr_t* dvbpsi_DecodeComponentDr(dvbpsi_descriptor_t * p_descript
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t *dvbpsi_GenComponentDr(dvbpsi_component_dr_t * p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_component_dr(dvbpsi_dvb_component_dr_t * p_decoded,
bool b_duplicate);
#ifdef __cplusplus
......
......@@ -41,12 +41,12 @@
/*****************************************************************************
* dvbpsi_DecodeStreamIdentifierDr
* dvbpsi_decode_dvb_stream_identifier_dr
*****************************************************************************/
dvbpsi_stream_identifier_dr_t * dvbpsi_DecodeStreamIdentifierDr(
dvbpsi_dvb_stream_identifier_dr_t * dvbpsi_decode_dvb_stream_identifier_dr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_stream_identifier_dr_t * p_decoded;
dvbpsi_dvb_stream_identifier_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x52))
......@@ -60,7 +60,7 @@ dvbpsi_stream_identifier_dr_t * dvbpsi_DecodeStreamIdentifierDr(
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_stream_identifier_dr_t*)malloc(sizeof(dvbpsi_stream_identifier_dr_t));
p_decoded = (dvbpsi_dvb_stream_identifier_dr_t*)malloc(sizeof(dvbpsi_dvb_stream_identifier_dr_t));
if (!p_decoded)
return NULL;
......@@ -73,10 +73,10 @@ dvbpsi_stream_identifier_dr_t * dvbpsi_DecodeStreamIdentifierDr(
/*****************************************************************************
* dvbpsi_GenStreamIdentifierDr
* dvbpsi_gen_dvb_stream_identifier_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr(
dvbpsi_stream_identifier_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_stream_identifier_dr(
dvbpsi_dvb_stream_identifier_dr_t * p_decoded,
bool b_duplicate)
{
/* Create the descriptor */
......@@ -92,7 +92,7 @@ dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_stream_identifier_dr_t));
sizeof(dvbpsi_dvb_stream_identifier_dr_t));
}
return p_descriptor;
......
......@@ -40,46 +40,46 @@ extern "C" {
/*****************************************************************************
* dvbpsi_stream_identifier_dr_s
* dvbpsi_dvb_stream_identifier_dr_s
*****************************************************************************/
/*!
* \struct dvbpsi_stream_identifier_dr_s
* \struct dvbpsi_dvb_stream_identifier_dr_s
* \brief "stream identifier" descriptor structure.
*
* This structure is used to store a decoded "stream identifier"
* descriptor. (ETSI EN 300 468 section 6.2.37).
*/
/*!
* \typedef struct dvbpsi_stream_identifier_dr_s dvbpsi_stream_identifier_dr_t
* \brief dvbpsi_stream_identifier_dr_t type definition.
* \typedef struct dvbpsi_dvb_stream_identifier_dr_s dvbpsi_dvb_stream_identifier_dr_t
* \brief dvbpsi_dvb_stream_identifier_dr_t type definition.
*/
typedef struct dvbpsi_stream_identifier_dr_s
typedef struct dvbpsi_dvb_stream_identifier_dr_s
{
uint8_t i_component_tag; /*!< component tag*/
} dvbpsi_stream_identifier_dr_t;
} dvbpsi_dvb_stream_identifier_dr_t;
/*****************************************************************************
* dvbpsi_DecodeStreamIdentifierDr
* dvbpsi_decode_dvb_stream_identifier_dr
*****************************************************************************/
/*!
* \fn dvbpsi_stream_identifier_dr_t * dvbpsi_DecodeStreamIdentifierDr(
* \fn dvbpsi_dvb_stream_identifier_dr_t * dvbpsi_decode_dvb_stream_identifier_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "stream identifier" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "stream identifier" descriptor structure
* which contains the decoded data.
*/
dvbpsi_stream_identifier_dr_t* dvbpsi_DecodeStreamIdentifierDr(
dvbpsi_dvb_stream_identifier_dr_t* dvbpsi_decode_dvb_stream_identifier_dr(
dvbpsi_descriptor_t * p_descriptor);
/*****************************************************************************
* dvbpsi_GenStreamIdentifierDr
* dvbpsi_gen_dvb_stream_identifier_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr(
dvbpsi_stream_identifier_dr_t *p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_stream_identifier_dr(
dvbpsi_dvb_stream_identifier_dr_t *p_decoded, bool b_duplicate)
* \brief "stream identifier" descriptor generator.
* \param p_decoded pointer to a decoded "stream identifier" descriptor
* structure
......@@ -87,8 +87,8 @@ dvbpsi_stream_identifier_dr_t* dvbpsi_DecodeStreamIdentifierDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr(
dvbpsi_stream_identifier_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_stream_identifier_dr(
dvbpsi_dvb_stream_identifier_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -40,11 +40,11 @@
#include "dr_53.h"
/*****************************************************************************
* dvbpsi_DecodeCAIdentifierDr
* dvbpsi_decode_dvb_ca_identifier_dr
*****************************************************************************/
dvbpsi_ca_identifier_dr_t * dvbpsi_DecodeCAIdentifierDr(dvbpsi_descriptor_t *p_descriptor)
dvbpsi_dvb_ca_identifier_dr_t * dvbpsi_decode_dvb_ca_identifier_dr(dvbpsi_descriptor_t *p_descriptor)
{
dvbpsi_ca_identifier_dr_t * p_decoded;
dvbpsi_dvb_ca_identifier_dr_t * p_decoded;
/* Check the tag */
if (!dvbpsi_CanDecodeAsDescriptor(p_descriptor, 0x53))
......@@ -58,7 +58,7 @@ dvbpsi_ca_identifier_dr_t * dvbpsi_DecodeCAIdentifierDr(dvbpsi_descriptor_t *p_d
return NULL;
/* Allocate memory */
p_decoded = (dvbpsi_ca_identifier_dr_t*)calloc(1, sizeof(dvbpsi_ca_identifier_dr_t));
p_decoded = (dvbpsi_dvb_ca_identifier_dr_t*)calloc(1, sizeof(dvbpsi_dvb_ca_identifier_dr_t));
if (!p_decoded)
return NULL;
......@@ -81,9 +81,9 @@ dvbpsi_ca_identifier_dr_t * dvbpsi_DecodeCAIdentifierDr(dvbpsi_descriptor_t *p_d
/*****************************************************************************
* dvbpsi_GenCAIdentifierDr
* dvbpsi_gen_dvb_ca_identifier_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCAIdentifierDr(dvbpsi_ca_identifier_dr_t *p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_ca_identifier_dr(dvbpsi_dvb_ca_identifier_dr_t *p_decoded,
bool b_duplicate)
{
if (p_decoded->i_number > DVBPSI_CA_SYSTEM_ID_DR_MAX)
......@@ -106,7 +106,7 @@ dvbpsi_descriptor_t * dvbpsi_GenCAIdentifierDr(dvbpsi_ca_identifier_dr_t *p_deco
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_ca_identifier_dr_t));
sizeof(dvbpsi_dvb_ca_identifier_dr_t));
}
return p_descriptor;
......
......@@ -60,52 +60,52 @@ typedef struct dvbpsi_ca_system_s
/*!
* \def DVBPSI_CA_SYSTEM_ID_DR_MAX
* \brief Maximum number of dvbpsi_ca_system_t entries present in @see dvbpsi_ca_identifier_dr_t
* \brief Maximum number of dvbpsi_ca_system_t entries present in @see dvbpsi_dvb_ca_identifier_dr_t
*/
#define DVBPSI_CA_SYSTEM_ID_DR_MAX 127
/*****************************************************************************
* dvbpsi_ca_identifier_dr_s
* dvbpsi_dvb_ca_identifier_dr_s
*****************************************************************************/
/*!
* \struct dvbpsi_ca_identifier_dr_s
* \struct dvbpsi_dvb_ca_identifier_dr_s
* \brief "CA identifier" descriptor structure.
*
* This structure is used to store a decoded "CA identifier"
* descriptor. (ETSI EN 300 468 section 6.2.5).
*/
/*!
* \typedef struct dvbpsi_ca_identifier_dr_s dvbpsi_ca_identifier_dr_t
* \brief dvbpsi_ca_identifier_dr_t type definition.
* \typedef struct dvbpsi_dvb_ca_identifier_dr_s dvbpsi_dvb_ca_identifier_dr_t
* \brief dvbpsi_dvb_ca_identifier_dr_t type definition.
*/
typedef struct dvbpsi_ca_identifier_dr_s
typedef struct dvbpsi_dvb_ca_identifier_dr_s
{
uint8_t i_number; /*!< number of CA system identifiers */
dvbpsi_ca_system_t p_system[DVBPSI_CA_SYSTEM_ID_DR_MAX]; /*!< CA system identifiers */
} dvbpsi_ca_identifier_dr_t;
} dvbpsi_dvb_ca_identifier_dr_t;
/*****************************************************************************
* dvbpsi_DecodeCAIdentifierDr
* dvbpsi_decode_dvb_ca_identifier_dr
*****************************************************************************/
/*!
* \fn dvbpsi_da_identifier_dr_t * dvbpsi_DecodeCAIdentifierDr(
* \fn dvbpsi_da_identifier_dr_t * dvbpsi_decode_dvb_ca_identifier_dr(
dvbpsi_descriptor_t *p_descriptor)
* \brief "DA identifier" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "CA identifier" descriptor structure
* which contains the decoded data.
*/
dvbpsi_ca_identifier_dr_t* dvbpsi_DecodeCAIdentifierDr(dvbpsi_descriptor_t *p_descriptor);
dvbpsi_dvb_ca_identifier_dr_t* dvbpsi_decode_dvb_ca_identifier_dr(dvbpsi_descriptor_t *p_descriptor);
/*****************************************************************************
* dvbpsi_GenStreamIdentifierDr
* dvbpsi_gen_dvb_stream_identifier_dr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t *dvbpsi_GenCAIdentifierDr(
dvbpsi_ca_identifier_dr_t *p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t *dvbpsi_gen_dvb_ca_identifier_dr(
dvbpsi_dvb_ca_identifier_dr_t *p_decoded, bool b_duplicate)
* \brief "CA identifier" descriptor generator.
* \param p_decoded pointer to a decoded "CA identifier" descriptor
* structure
......@@ -113,7 +113,7 @@ dvbpsi_ca_identifier_dr_t* dvbpsi_DecodeCAIdentifierDr(dvbpsi_descriptor_t *p_de
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t *dvbpsi_GenCAIdentifierDr(dvbpsi_ca_identifier_dr_t *p_decoded,
dvbpsi_descriptor_t *dvbpsi_gen_dvb_ca_identifier_dr(dvbpsi_dvb_ca_identifier_dr_t *p_decoded,
bool b_duplicate);
......
......@@ -40,9 +40,9 @@
/*****************************************************************************
* dvbpsi_DecodeContentDr
* dvbpsi_decode_dvb_content_dr
*****************************************************************************/
dvbpsi_content_dr_t * dvbpsi_DecodeContentDr(
dvbpsi_dvb_content_dr_t * dvbpsi_decode_dvb_content_dr(
dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
......@@ -58,8 +58,8 @@ dvbpsi_content_dr_t * dvbpsi_DecodeContentDr(
return NULL;
/* Allocate memory */
dvbpsi_content_dr_t * p_decoded;
p_decoded = (dvbpsi_content_dr_t*)malloc(sizeof(dvbpsi_content_dr_t));
dvbpsi_dvb_content_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_content_dr_t*)malloc(sizeof(dvbpsi_dvb_content_dr_t));
if (!p_decoded)
return NULL;
......@@ -81,10 +81,10 @@ dvbpsi_content_dr_t * dvbpsi_DecodeContentDr(
/*****************************************************************************
* dvbpsi_GenContentDr
* dvbpsi_gen_dvb_content_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenContentDr(
dvbpsi_content_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_content_dr(
dvbpsi_dvb_content_dr_t * p_decoded,
bool b_duplicate)
{
if (p_decoded->i_contents_number > DVBPSI_CONTENT_DR_MAX)
......@@ -109,7 +109,7 @@ dvbpsi_descriptor_t * dvbpsi_GenContentDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_content_dr_t));
sizeof(dvbpsi_dvb_content_dr_t));
}
return p_descriptor;
......
......@@ -194,44 +194,44 @@ typedef struct dvbpsi_content_s
/*!
* \def DVBPSI_CONTENT_DR_MAX
* \brief Maximum number of dvbps_content_t entries present in @see dvbpsi_content_dr_t
* \brief Maximum number of dvbps_content_t entries present in @see dvbpsi_dvb_content_dr_t
*/
#define DVBPSI_CONTENT_DR_MAX 64
/*****************************************************************************
* dvbpsi_content_dr_t
* dvbpsi_dvb_content_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_content_dr_s
* \struct dvbpsi_dvb_content_dr_s
* \brief "content" descriptor structure.
*
* This structure is used to store a decoded "content"
* descriptor. (ETSI EN 300 468 section 6.2.9).
*/
/*!
* \typedef struct dvbpsi_content_dr_s dvbpsi_content_dr_t
* \brief dvbpsi_content_dr_t type definition.
* \typedef struct dvbpsi_dvb_content_dr_s dvbpsi_dvb_content_dr_t
* \brief dvbpsi_dvb_content_dr_t type definition.
*/
typedef struct dvbpsi_content_dr_s
typedef struct dvbpsi_dvb_content_dr_s
{
uint8_t i_contents_number; /*!< number of content */
dvbpsi_content_t p_content[DVBPSI_CONTENT_DR_MAX]; /*!< parental rating table */
} dvbpsi_content_dr_t;
} dvbpsi_dvb_content_dr_t;
/*****************************************************************************
* dvbpsi_DecodeContentDataDr
*****************************************************************************/
/*!
* \fn dvbpsi_content_dr_t * dvbpsi_DecodeContentDr(
* \fn dvbpsi_dvb_content_dr_t * dvbpsi_decode_dvb_content_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "content" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "content" descriptor structure
* which contains the decoded data.
*/
dvbpsi_content_dr_t* dvbpsi_DecodeContentDr(
dvbpsi_dvb_content_dr_t* dvbpsi_decode_dvb_content_dr(
dvbpsi_descriptor_t * p_descriptor);
......@@ -239,8 +239,8 @@ dvbpsi_content_dr_t* dvbpsi_DecodeContentDr(
* dvbpsi_GenContentDataDr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenContentDr(
dvbpsi_content_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_content_dr(
dvbpsi_dvb_content_dr_t * p_decoded, bool b_duplicate)
* \brief "content" descriptor generator.
* \param p_decoded pointer to a decoded "content" descriptor
* structure
......@@ -248,8 +248,8 @@ dvbpsi_content_dr_t* dvbpsi_DecodeContentDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenContentDr(
dvbpsi_content_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_content_dr(
dvbpsi_dvb_content_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -42,9 +42,9 @@
/*****************************************************************************
* dvbpsi_DecodeParentalRatingDr
* dvbpsi_decode_dvb_parental_rating_dr
*****************************************************************************/
dvbpsi_parental_rating_dr_t * dvbpsi_DecodeParentalRatingDr(
dvbpsi_dvb_parental_rating_dr_t * dvbpsi_decode_dvb_parental_rating_dr(
dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
......@@ -60,8 +60,8 @@ dvbpsi_parental_rating_dr_t * dvbpsi_DecodeParentalRatingDr(
return NULL;
/* Allocate memory */
dvbpsi_parental_rating_dr_t * p_decoded;
p_decoded = (dvbpsi_parental_rating_dr_t*)malloc(sizeof(dvbpsi_parental_rating_dr_t));
dvbpsi_dvb_parental_rating_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_parental_rating_dr_t*)malloc(sizeof(dvbpsi_dvb_parental_rating_dr_t));
if (!p_decoded)
return NULL;
......@@ -87,10 +87,10 @@ dvbpsi_parental_rating_dr_t * dvbpsi_DecodeParentalRatingDr(
/*****************************************************************************
* dvbpsi_GenParentalRatingDr
* dvbpsi_gen_dvb_parental_rating_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr(
dvbpsi_parental_rating_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_parental_rating_dr(
dvbpsi_dvb_parental_rating_dr_t * p_decoded,
bool b_duplicate)
{
uint8_t i_length;
......@@ -128,7 +128,7 @@ dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr(
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_parental_rating_dr_t));
sizeof(dvbpsi_dvb_parental_rating_dr_t));
}
return p_descriptor;
......
......@@ -66,40 +66,40 @@ typedef struct dvbpsi_parental_rating_s
#define DVBPSI_PARENTAL_RATING_DR_MAX 64
/*****************************************************************************
* dvbpsi_parental_rating_dr_t
* dvbpsi_dvb_parental_rating_dr_t
*****************************************************************************/
/*!
* \struct dvbpsi_parental_rating_dr_s
* \struct dvbpsi_dvb_parental_rating_dr_s
* \brief "parental_rating" descriptor structure.
*
* This structure is used to store a decoded "parental_rating"
* descriptor. (ETSI EN 300 468 section 6.2.26).
*/
/*!
* \typedef struct dvbpsi_parental_rating_dr_s dvbpsi_parental_rating_dr_t
* \brief dvbpsi_parental_rating_dr_t type definition.
* \typedef struct dvbpsi_dvb_parental_rating_dr_s dvbpsi_dvb_parental_rating_dr_t
* \brief dvbpsi_dvb_parental_rating_dr_t type definition.
*/
typedef struct dvbpsi_parental_rating_dr_s
typedef struct dvbpsi_dvb_parental_rating_dr_s
{
uint8_t i_ratings_number; /*!< number of rating */
dvbpsi_parental_rating_t
p_parental_rating[DVBPSI_PARENTAL_RATING_DR_MAX]; /*!< parental rating table */
} dvbpsi_parental_rating_dr_t;
} dvbpsi_dvb_parental_rating_dr_t;
/*****************************************************************************
* dvbpsi_DecodeParentalRatingDataDr
*****************************************************************************/
/*!
* \fn dvbpsi_parental_rating_dr_t * dvbpsi_DecodeParentalRatingDr(
* \fn dvbpsi_dvb_parental_rating_dr_t * dvbpsi_decode_dvb_parental_rating_dr(
dvbpsi_descriptor_t * p_descriptor)
* \brief "parental_rating" descriptor decoder.
* \param p_descriptor pointer to the descriptor structure
* \return a pointer to a new "parental_rating" descriptor structure
* which contains the decoded data.
*/
dvbpsi_parental_rating_dr_t* dvbpsi_DecodeParentalRatingDr(
dvbpsi_dvb_parental_rating_dr_t* dvbpsi_decode_dvb_parental_rating_dr(
dvbpsi_descriptor_t * p_descriptor);
......@@ -107,8 +107,8 @@ dvbpsi_parental_rating_dr_t* dvbpsi_DecodeParentalRatingDr(
* dvbpsi_GenParentalRatingDataDr
*****************************************************************************/
/*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr(
dvbpsi_parental_rating_dr_t * p_decoded, bool b_duplicate)
* \fn dvbpsi_descriptor_t * dvbpsi_gen_dvb_parental_rating_dr(
dvbpsi_dvb_parental_rating_dr_t * p_decoded, bool b_duplicate)
* \brief "parental_rating" descriptor generator.
* \param p_decoded pointer to a decoded "parental_rating" descriptor
* structure
......@@ -116,8 +116,8 @@ dvbpsi_parental_rating_dr_t* dvbpsi_DecodeParentalRatingDr(
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr(
dvbpsi_parental_rating_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_parental_rating_dr(
dvbpsi_dvb_parental_rating_dr_t * p_decoded,
bool b_duplicate);
......
......@@ -41,9 +41,9 @@
#include "dr_56.h"
/*****************************************************************************
* dvbpsi_DecodeTeletextDr
* dvbpsi_decode_dvb_teletext_dr
*****************************************************************************/
dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr(
dvbpsi_dvb_teletext_dr_t * dvbpsi_decode_dvb_teletext_dr(
dvbpsi_descriptor_t * p_descriptor)
{
/* Check the tag */
......@@ -63,8 +63,8 @@ dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr(
return NULL;
/* Allocate memory */
dvbpsi_teletext_dr_t * p_decoded;
p_decoded = (dvbpsi_teletext_dr_t*)malloc(sizeof(dvbpsi_teletext_dr_t));
dvbpsi_dvb_teletext_dr_t * p_decoded;
p_decoded = (dvbpsi_dvb_teletext_dr_t*)malloc(sizeof(dvbpsi_dvb_teletext_dr_t));
if (!p_decoded)
return NULL;
......@@ -95,9 +95,9 @@ dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr(
/*****************************************************************************
* dvbpsi_GenTeletextDr
* dvbpsi_gen_dvb_teletext_dr
*****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(dvbpsi_teletext_dr_t * p_decoded,
dvbpsi_descriptor_t * dvbpsi_gen_dvb_teletext_dr(dvbpsi_dvb_teletext_dr_t * p_decoded,
bool b_duplicate)
{
if (p_decoded->i_pages_number > DVBPSI_TELETEXT_DR_MAX)
......@@ -129,7 +129,7 @@ dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(dvbpsi_teletext_dr_t * p_decoded,
/* Duplicate decoded data */
p_descriptor->p_decoded =
dvbpsi_DuplicateDecodedDescriptor(p_decoded,
sizeof(dvbpsi_teletext_dr_t));
sizeof(dvbpsi_dvb_teletext_dr_t));
}
return p_descriptor;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -40,11 +40,11 @@ Decode Frequency List Descriptor.
#include "dr_62.h"
/*****************************************************************************
* dvbpsi_DecodeFrequencyListDr
* dvbpsi_decode_dvb_frequency_list_dr
*****************************************************************************/
dvbpsi_frequency_list_dr_t *dvbpsi_DecodeFrequencyListDr(dvbpsi_descriptor_t *p_descriptor)
dvbpsi_dvb_frequency_list_dr_t *dvbpsi_decode_dvb_frequency_list_dr(dvbpsi_descriptor_t *p_descriptor)
{
dvbpsi_frequency_list_dr_t *p_decoded;
dvbpsi_dvb_frequency_list_dr_t *p_decoded;
int i;
/* Check the tag */
if (p_descriptor->i_tag != 0x62)
......@@ -58,7 +58,7 @@ dvbpsi_frequency_list_dr_t *dvbpsi_DecodeFrequencyListDr(dvbpsi_descriptor_t *p_
if ((p_descriptor->i_length - 1) % 4)
return NULL;
p_decoded = (dvbpsi_frequency_list_dr_t*)malloc(sizeof(dvbpsi_frequency_list_dr_t));
p_decoded = (dvbpsi_dvb_frequency_list_dr_t*)malloc(sizeof(dvbpsi_dvb_frequency_list_dr_t));
if (!p_decoded)
return NULL;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment