Commit 0eebb7f2 authored by Jean-Paul Saman's avatar Jean-Paul Saman

booleanize variables used as booleans

Type int was used with some variables prefixed with b_ treating them
as booleans. This patch turns them into real booleans.
parent 26a42d94
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
/***************************************************************************** /*****************************************************************************
* ReadPacket * ReadPacket
*****************************************************************************/ *****************************************************************************/
static int ReadPacket(int i_fd, uint8_t* p_dst) static bool ReadPacket(int i_fd, uint8_t* p_dst)
{ {
int i = 187; int i = 187;
int i_rc = 1; int i_rc = 1;
...@@ -75,7 +75,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst) ...@@ -75,7 +75,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst)
i -= i_rc; i -= i_rc;
} }
return (i == 0) ? 1 : 0; return (i == 0) ? true : false;
} }
...@@ -229,7 +229,7 @@ int main(int i_argc, char* pa_argv[]) ...@@ -229,7 +229,7 @@ int main(int i_argc, char* pa_argv[])
int i_fd; int i_fd;
uint8_t data[188]; uint8_t data[188];
dvbpsi_t *p_dvbpsi; dvbpsi_t *p_dvbpsi;
int b_ok; bool b_ok;
if(i_argc != 2) if(i_argc != 2)
return 1; return 1;
......
...@@ -591,7 +591,7 @@ int main(int i_argc, char* pa_argv[]) ...@@ -591,7 +591,7 @@ int main(int i_argc, char* pa_argv[])
uint8_t *p_data = NULL; uint8_t *p_data = NULL;
ts_stream_t *p_stream = NULL; ts_stream_t *p_stream = NULL;
int i_len = 0; int i_len = 0;
int b_verbose = 0; bool b_verbose = false;
/* parser commandline arguments */ /* parser commandline arguments */
do { do {
...@@ -626,7 +626,7 @@ int main(int i_argc, char* pa_argv[]) ...@@ -626,7 +626,7 @@ int main(int i_argc, char* pa_argv[])
break; break;
#endif #endif
case 'v': case 'v':
b_verbose = 1; b_verbose = true;
break; break;
case -1: case -1:
break; break;
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
/***************************************************************************** /*****************************************************************************
* ReadPacket * ReadPacket
*****************************************************************************/ *****************************************************************************/
static int ReadPacket(int i_fd, uint8_t* p_dst) static bool ReadPacket(int i_fd, uint8_t* p_dst)
{ {
int i = 187; int i = 187;
int i_rc = 1; int i_rc = 1;
...@@ -71,7 +71,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst) ...@@ -71,7 +71,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst)
i -= i_rc; i -= i_rc;
} }
return (i == 0) ? 1 : 0; return (i == 0) ? true : false;
} }
...@@ -117,7 +117,7 @@ int main(int i_argc, char* pa_argv[]) ...@@ -117,7 +117,7 @@ int main(int i_argc, char* pa_argv[])
int i_fd; int i_fd;
uint8_t data[188]; uint8_t data[188];
dvbpsi_t *p_dvbpsi; dvbpsi_t *p_dvbpsi;
int b_ok; bool b_ok;
if (i_argc != 2) if (i_argc != 2)
return 1; return 1;
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
/***************************************************************************** /*****************************************************************************
* ReadPacket * ReadPacket
*****************************************************************************/ *****************************************************************************/
static int ReadPacket(int i_fd, uint8_t* p_dst) static bool ReadPacket(int i_fd, uint8_t* p_dst)
{ {
int i = 187; int i = 187;
int i_rc = 1; int i_rc = 1;
...@@ -81,7 +81,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst) ...@@ -81,7 +81,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst)
i -= i_rc; i -= i_rc;
} }
return (i == 0) ? 1 : 0; return (i == 0) ? true : false;
} }
/***************************************************************************** /*****************************************************************************
...@@ -260,7 +260,7 @@ int main(int i_argc, char* pa_argv[]) ...@@ -260,7 +260,7 @@ int main(int i_argc, char* pa_argv[])
int i_fd; int i_fd;
uint8_t data[188]; uint8_t data[188];
dvbpsi_t *p_dvbpsi; dvbpsi_t *p_dvbpsi;
int b_ok; bool b_ok;
uint16_t i_program_number, i_pmt_pid; uint16_t i_program_number, i_pmt_pid;
if (i_argc != 4) if (i_argc != 4)
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
/***************************************************************************** /*****************************************************************************
* ReadPacket * ReadPacket
*****************************************************************************/ *****************************************************************************/
static int ReadPacket(int i_fd, uint8_t* p_dst) static bool ReadPacket(int i_fd, uint8_t* p_dst)
{ {
int i = 187; int i = 187;
int i_rc = 1; int i_rc = 1;
...@@ -76,7 +76,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst) ...@@ -76,7 +76,7 @@ static int ReadPacket(int i_fd, uint8_t* p_dst)
i -= i_rc; i -= i_rc;
} }
return (i == 0) ? 1 : 0; return (i == 0) ? true : false;
} }
...@@ -159,7 +159,7 @@ int main(int i_argc, char* pa_argv[]) ...@@ -159,7 +159,7 @@ int main(int i_argc, char* pa_argv[])
int i_fd; int i_fd;
uint8_t data[188]; uint8_t data[188];
dvbpsi_t *p_dvbpsi; dvbpsi_t *p_dvbpsi;
int b_ok; bool b_ok;
if(i_argc != 2) if(i_argc != 2)
return 1; return 1;
......
...@@ -60,7 +60,7 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -60,7 +60,7 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
if(!p_decoded) return NULL; if(!p_decoded) return NULL;
/* Decode data and check the length */ /* Decode data and check the length */
p_decoded->b_mpeg2 = (p_descriptor->p_data[0] & 0x04) ? 1 : 0; p_decoded->b_mpeg2 = (p_descriptor->p_data[0] & 0x04) ? true : false;
if( (!p_decoded->b_mpeg2 && (p_descriptor->i_length != 1)) if( (!p_decoded->b_mpeg2 && (p_descriptor->i_length != 1))
|| (p_decoded->b_mpeg2 && (p_descriptor->i_length != 3))) || (p_decoded->b_mpeg2 && (p_descriptor->i_length != 3)))
{ {
...@@ -68,17 +68,17 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -68,17 +68,17 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
return NULL; return NULL;
} }
p_decoded->b_multiple_frame_rate = (p_descriptor->p_data[0] & 0x80) ? 1 : 0; p_decoded->b_multiple_frame_rate = (p_descriptor->p_data[0] & 0x80) ? true : false;
p_decoded->i_frame_rate_code = (p_descriptor->p_data[0] & 0x78) >> 3; p_decoded->i_frame_rate_code = (p_descriptor->p_data[0] & 0x78) >> 3;
p_decoded->b_constrained_parameter = (p_descriptor->p_data[0] & 0x02) ? 1 : 0; p_decoded->b_constrained_parameter = (p_descriptor->p_data[0] & 0x02) ? true : false;
p_decoded->b_still_picture = (p_descriptor->p_data[0] & 0x01) ? 1 : 0; p_decoded->b_still_picture = (p_descriptor->p_data[0] & 0x01) ? true : false;
if(p_decoded->b_mpeg2) if(p_decoded->b_mpeg2)
{ {
p_decoded->i_profile_level_indication = p_descriptor->p_data[1]; p_decoded->i_profile_level_indication = p_descriptor->p_data[1];
p_decoded->i_chroma_format = (p_descriptor->p_data[2] & 0xc0) >> 6; p_decoded->i_chroma_format = (p_descriptor->p_data[2] & 0xc0) >> 6;
p_decoded->b_frame_rate_extension = p_decoded->b_frame_rate_extension =
(p_descriptor->p_data[2] & 0x20) ? 1 : 0; (p_descriptor->p_data[2] & 0x20) ? true : false;
} }
p_descriptor->p_decoded = (void*)p_decoded; p_descriptor->p_decoded = (void*)p_decoded;
...@@ -91,7 +91,7 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -91,7 +91,7 @@ dvbpsi_vstream_dr_t * dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
* dvbpsi_GenVStreamDr * dvbpsi_GenVStreamDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -56,16 +56,16 @@ extern "C" { ...@@ -56,16 +56,16 @@ extern "C" {
*/ */
typedef struct dvbpsi_vstream_dr_s typedef struct dvbpsi_vstream_dr_s
{ {
int b_multiple_frame_rate; /*!< multiple_frame_rate_flag */ bool b_multiple_frame_rate; /*!< multiple_frame_rate_flag */
uint8_t i_frame_rate_code; /*!< frame_rate_code */ uint8_t i_frame_rate_code; /*!< frame_rate_code */
int b_mpeg2; /*!< MPEG_2_flag */ bool b_mpeg2; /*!< MPEG_2_flag */
int b_constrained_parameter; /*!< constrained_parameter_flag */ bool b_constrained_parameter; /*!< constrained_parameter_flag */
int b_still_picture; /*!< still_picture_flag */ bool b_still_picture; /*!< still_picture_flag */
/* used if b_mpeg2 is true */ /* used if b_mpeg2 is true */
uint8_t i_profile_level_indication; /*!< profile_and_level_indication */ uint8_t i_profile_level_indication; /*!< profile_and_level_indication */
uint8_t i_chroma_format; /*!< chroma_format */ uint8_t i_chroma_format; /*!< chroma_format */
int b_frame_rate_extension; /*!< frame_rate_extension_flag */ bool b_frame_rate_extension; /*!< frame_rate_extension_flag */
} dvbpsi_vstream_dr_t; } dvbpsi_vstream_dr_t;
...@@ -89,15 +89,15 @@ dvbpsi_vstream_dr_t* dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor); ...@@ -89,15 +89,15 @@ dvbpsi_vstream_dr_t* dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenVStreamDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenVStreamDr(
dvbpsi_vstream_dr_t * p_decoded, int b_duplicate) dvbpsi_vstream_dr_t * p_decoded, bool b_duplicate)
* \brief "video stream" descriptor generator. * \brief "video stream" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure * \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenVStreamDr(dvbpsi_vstream_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -81,7 +81,7 @@ dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -81,7 +81,7 @@ dvbpsi_astream_dr_t * dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor)
* dvbpsi_GenAStreamDr * dvbpsi_GenAStreamDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x03, 1, NULL); dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x03, 1, NULL);
......
...@@ -56,7 +56,7 @@ extern "C" { ...@@ -56,7 +56,7 @@ extern "C" {
*/ */
typedef struct dvbpsi_astream_dr_s typedef struct dvbpsi_astream_dr_s
{ {
int b_free_format; /*!< free_format_flag */ bool b_free_format; /*!< free_format_flag */
uint8_t i_id; /*!< ID */ uint8_t i_id; /*!< ID */
uint8_t i_layer; /*!< layer */ uint8_t i_layer; /*!< layer */
...@@ -82,15 +82,15 @@ dvbpsi_astream_dr_t* dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor); ...@@ -82,15 +82,15 @@ dvbpsi_astream_dr_t* dvbpsi_DecodeAStreamDr(dvbpsi_descriptor_t * p_descriptor);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenAStreamDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenAStreamDr(
dvbpsi_astream_dr_t * p_decoded, int b_duplicate) dvbpsi_astream_dr_t * p_decoded, bool b_duplicate)
* \brief "audio stream" descriptor generator. * \brief "audio stream" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure * \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenAStreamDr(dvbpsi_astream_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -83,7 +83,7 @@ dvbpsi_hierarchy_dr_t * dvbpsi_DecodeHierarchyDr( ...@@ -83,7 +83,7 @@ dvbpsi_hierarchy_dr_t * dvbpsi_DecodeHierarchyDr(
* dvbpsi_GenHierarchyDr * dvbpsi_GenHierarchyDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr(dvbpsi_hierarchy_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr(dvbpsi_hierarchy_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x04, 4, NULL); dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x04, 4, NULL);
......
...@@ -84,15 +84,15 @@ dvbpsi_hierarchy_dr_t* dvbpsi_DecodeHierarchyDr( ...@@ -84,15 +84,15 @@ dvbpsi_hierarchy_dr_t* dvbpsi_DecodeHierarchyDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenHierarchyDr(
dvbpsi_hierarchy_dr_t * p_decoded, int b_duplicate) dvbpsi_hierarchy_dr_t * p_decoded, bool b_duplicate)
* \brief "hierarchy" descriptor generator. * \brief "hierarchy" descriptor generator.
* \param p_decoded pointer to a decoded "hierarchy" descriptor structure * \param p_decoded pointer to a decoded "hierarchy" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenHierarchyDr(dvbpsi_hierarchy_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -90,7 +90,7 @@ dvbpsi_registration_dr_t * dvbpsi_DecodeRegistrationDr( ...@@ -90,7 +90,7 @@ dvbpsi_registration_dr_t * dvbpsi_DecodeRegistrationDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr( dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr(
dvbpsi_registration_dr_t * p_decoded, dvbpsi_registration_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -84,16 +84,16 @@ dvbpsi_registration_dr_t* dvbpsi_DecodeRegistrationDr( ...@@ -84,16 +84,16 @@ dvbpsi_registration_dr_t* dvbpsi_DecodeRegistrationDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr(
dvbpsi_registration_dr_t * p_decoded, int b_duplicate) dvbpsi_registration_dr_t * p_decoded, bool b_duplicate)
* \brief "registration" descriptor generator. * \brief "registration" descriptor generator.
* \param p_decoded pointer to a decoded "registration" descriptor structure * \param p_decoded pointer to a decoded "registration" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr( dvbpsi_descriptor_t * dvbpsi_GenRegistrationDr(
dvbpsi_registration_dr_t * p_decoded, dvbpsi_registration_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -82,7 +82,7 @@ dvbpsi_ds_alignment_dr_t * dvbpsi_DecodeDSAlignmentDr( ...@@ -82,7 +82,7 @@ dvbpsi_ds_alignment_dr_t * dvbpsi_DecodeDSAlignmentDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr( dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr(
dvbpsi_ds_alignment_dr_t * p_decoded, dvbpsi_ds_alignment_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x06, 1, NULL); dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x06, 1, NULL);
......
...@@ -81,17 +81,17 @@ dvbpsi_ds_alignment_dr_t* dvbpsi_DecodeDSAlignmentDr( ...@@ -81,17 +81,17 @@ dvbpsi_ds_alignment_dr_t* dvbpsi_DecodeDSAlignmentDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr(
dvbpsi_ds_alignment_dr_t * p_decoded, int b_duplicate) dvbpsi_ds_alignment_dr_t * p_decoded, bool b_duplicate)
* \brief "data stream alignment" descriptor generator. * \brief "data stream alignment" descriptor generator.
* \param p_decoded pointer to a decoded "data stream alignment" descriptor * \param p_decoded pointer to a decoded "data stream alignment" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr( dvbpsi_descriptor_t * dvbpsi_GenDSAlignmentDr(
dvbpsi_ds_alignment_dr_t * p_decoded, dvbpsi_ds_alignment_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -88,7 +88,7 @@ dvbpsi_target_bg_grid_dr_t * dvbpsi_DecodeTargetBgGridDr( ...@@ -88,7 +88,7 @@ dvbpsi_target_bg_grid_dr_t * dvbpsi_DecodeTargetBgGridDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr( dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr(
dvbpsi_target_bg_grid_dr_t * p_decoded, dvbpsi_target_bg_grid_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x07, 4, NULL); dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x07, 4, NULL);
......
...@@ -83,17 +83,17 @@ dvbpsi_target_bg_grid_dr_t* dvbpsi_DecodeTargetBgGridDr( ...@@ -83,17 +83,17 @@ dvbpsi_target_bg_grid_dr_t* dvbpsi_DecodeTargetBgGridDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr(
dvbpsi_target_bg_grid_dr_t * p_decoded, int b_duplicate) dvbpsi_target_bg_grid_dr_t * p_decoded, bool b_duplicate)
* \brief "target background grid" descriptor generator. * \brief "target background grid" descriptor generator.
* \param p_decoded pointer to a decoded "target background grid" descriptor * \param p_decoded pointer to a decoded "target background grid" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr( dvbpsi_descriptor_t * dvbpsi_GenTargetBgGridDr(
dvbpsi_target_bg_grid_dr_t * p_decoded, dvbpsi_target_bg_grid_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -85,7 +85,7 @@ dvbpsi_vwindow_dr_t * dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -85,7 +85,7 @@ dvbpsi_vwindow_dr_t * dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor)
* dvbpsi_GenVWindowDr * dvbpsi_GenVWindowDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenVWindowDr(dvbpsi_vwindow_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenVWindowDr(dvbpsi_vwindow_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x08, 4, NULL); dvbpsi_descriptor_t * p_descriptor = dvbpsi_NewDescriptor(0x08, 4, NULL);
......
...@@ -82,15 +82,15 @@ dvbpsi_vwindow_dr_t* dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor); ...@@ -82,15 +82,15 @@ dvbpsi_vwindow_dr_t* dvbpsi_DecodeVWindowDr(dvbpsi_descriptor_t * p_descriptor);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenVWindowDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenVWindowDr(
dvbpsi_vwindow_dr_t * p_decoded, int b_duplicate) dvbpsi_vwindow_dr_t * p_decoded, bool b_duplicate)
* \brief "video window" descriptor generator. * \brief "video window" descriptor generator.
* \param p_decoded pointer to a decoded "video window" descriptor structure * \param p_decoded pointer to a decoded "video window" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenVWindowDr(dvbpsi_vwindow_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -87,7 +87,7 @@ dvbpsi_ca_dr_t * dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor) ...@@ -87,7 +87,7 @@ dvbpsi_ca_dr_t * dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor)
* dvbpsi_GenCADr * dvbpsi_GenCADr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCADr(dvbpsi_ca_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenCADr(dvbpsi_ca_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -84,16 +84,16 @@ dvbpsi_ca_dr_t* dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor); ...@@ -84,16 +84,16 @@ dvbpsi_ca_dr_t* dvbpsi_DecodeCADr(dvbpsi_descriptor_t * p_descriptor);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenCADr( * \fn dvbpsi_descriptor_t * dvbpsi_GenCADr(
dvbpsi_ca_dr_t * p_decoded, int b_duplicate) dvbpsi_ca_dr_t * p_decoded, bool b_duplicate)
* \brief "conditional access" descriptor generator. * \brief "conditional access" descriptor generator.
* \param p_decoded pointer to a decoded "conditional access" descriptor * \param p_decoded pointer to a decoded "conditional access" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenCADr(dvbpsi_ca_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -87,7 +87,7 @@ dvbpsi_iso639_dr_t * dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor) ...@@ -87,7 +87,7 @@ dvbpsi_iso639_dr_t * dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor)
* dvbpsi_GenISO639Dr * dvbpsi_GenISO639Dr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(dvbpsi_iso639_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(dvbpsi_iso639_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -87,16 +87,16 @@ dvbpsi_iso639_dr_t* dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor); ...@@ -87,16 +87,16 @@ dvbpsi_iso639_dr_t* dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenISO639Dr( * \fn dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(
dvbpsi_iso639_dr_t * p_decoded, int b_duplicate) dvbpsi_iso639_dr_t * p_decoded, bool b_duplicate)
* \brief "ISO 639 language" descriptor generator. * \brief "ISO 639 language" descriptor generator.
* \param p_decoded pointer to a decoded "ISO 639 language" descriptor * \param p_decoded pointer to a decoded "ISO 639 language" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenISO639Dr(dvbpsi_iso639_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -69,7 +69,7 @@ dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr( ...@@ -69,7 +69,7 @@ dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr(
return NULL; return NULL;
} }
p_decoded->b_external_clock_ref = (p_descriptor->p_data[0] & 0x80) ? 1 : 0; p_decoded->b_external_clock_ref = (p_descriptor->p_data[0] & 0x80) ? true : false;
p_decoded->i_clock_accuracy_integer = p_descriptor->p_data[0] & 0x3f; p_decoded->i_clock_accuracy_integer = p_descriptor->p_data[0] & 0x3f;
p_decoded->i_clock_accuracy_exponent = (p_descriptor->p_data[1] & 0xe0) >> 5; p_decoded->i_clock_accuracy_exponent = (p_descriptor->p_data[1] & 0xe0) >> 5;
...@@ -84,7 +84,7 @@ dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr( ...@@ -84,7 +84,7 @@ dvbpsi_system_clock_dr_t * dvbpsi_DecodeSystemClockDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr( dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr(
dvbpsi_system_clock_dr_t * p_decoded, dvbpsi_system_clock_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -56,7 +56,7 @@ extern "C" { ...@@ -56,7 +56,7 @@ extern "C" {
*/ */
typedef struct dvbpsi_system_clock_dr_s typedef struct dvbpsi_system_clock_dr_s
{ {
int b_external_clock_ref; /*!< external_clock_reference_indicator bool b_external_clock_ref; /*!< external_clock_reference_indicator
*/ */
uint8_t i_clock_accuracy_integer; /*!< clock_accuracy_integer */ uint8_t i_clock_accuracy_integer; /*!< clock_accuracy_integer */
uint8_t i_clock_accuracy_exponent; /*!< clock_accuracy_exponent */ uint8_t i_clock_accuracy_exponent; /*!< clock_accuracy_exponent */
...@@ -84,17 +84,17 @@ dvbpsi_system_clock_dr_t* dvbpsi_DecodeSystemClockDr( ...@@ -84,17 +84,17 @@ dvbpsi_system_clock_dr_t* dvbpsi_DecodeSystemClockDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr(
dvbpsi_system_clock_dr_t * p_decoded, int b_duplicate) dvbpsi_system_clock_dr_t * p_decoded, bool b_duplicate)
* \brief "system clock" descriptor generator. * \brief "system clock" descriptor generator.
* \param p_decoded pointer to a decoded "system clock" descriptor * \param p_decoded pointer to a decoded "system clock" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr( dvbpsi_descriptor_t * dvbpsi_GenSystemClockDr(
dvbpsi_system_clock_dr_t * p_decoded, dvbpsi_system_clock_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -69,7 +69,7 @@ dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr( ...@@ -69,7 +69,7 @@ dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr(
return NULL; return NULL;
} }
p_decoded->b_mdv_valid = (p_descriptor->p_data[0] & 0x80) ? 1 : 0; p_decoded->b_mdv_valid = (p_descriptor->p_data[0] & 0x80) ? true : false;
p_decoded->i_mx_delay_variation = p_decoded->i_mx_delay_variation =
((uint16_t)(p_descriptor->p_data[0] & 0x7f) << 8) ((uint16_t)(p_descriptor->p_data[0] & 0x7f) << 8)
| p_descriptor->p_data[1]; | p_descriptor->p_data[1];
...@@ -86,7 +86,7 @@ dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr( ...@@ -86,7 +86,7 @@ dvbpsi_mx_buff_utilization_dr_t * dvbpsi_DecodeMxBuffUtilizationDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr( dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr(
dvbpsi_mx_buff_utilization_dr_t * p_decoded, dvbpsi_mx_buff_utilization_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -56,7 +56,7 @@ extern "C" { ...@@ -56,7 +56,7 @@ extern "C" {
*/ */
typedef struct dvbpsi_mx_buff_utilization_dr_s typedef struct dvbpsi_mx_buff_utilization_dr_s
{ {
int b_mdv_valid; /*!< mdv_valid_flag */ bool b_mdv_valid; /*!< mdv_valid_flag */
uint16_t i_mx_delay_variation; /*!< multiplex_delay_variation */ uint16_t i_mx_delay_variation; /*!< multiplex_delay_variation */
uint8_t i_mx_strategy; /*!< multiplex_strategy */ uint8_t i_mx_strategy; /*!< multiplex_strategy */
...@@ -83,17 +83,17 @@ dvbpsi_mx_buff_utilization_dr_t* dvbpsi_DecodeMxBuffUtilizationDr( ...@@ -83,17 +83,17 @@ dvbpsi_mx_buff_utilization_dr_t* dvbpsi_DecodeMxBuffUtilizationDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr(
dvbpsi_mx_buff_utilization_dr_t * p_decoded, int b_duplicate) dvbpsi_mx_buff_utilization_dr_t * p_decoded, bool b_duplicate)
* \brief "multiplex buffer utilization" descriptor generator. * \brief "multiplex buffer utilization" descriptor generator.
* \param p_decoded pointer to a decoded "system clock" descriptor * \param p_decoded pointer to a decoded "system clock" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr( dvbpsi_descriptor_t * dvbpsi_GenMxBuffUtilizationDr(
dvbpsi_mx_buff_utilization_dr_t * p_decoded, dvbpsi_mx_buff_utilization_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -91,7 +91,7 @@ dvbpsi_copyright_dr_t * dvbpsi_DecodeCopyrightDr( ...@@ -91,7 +91,7 @@ dvbpsi_copyright_dr_t * dvbpsi_DecodeCopyrightDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr( dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr(
dvbpsi_copyright_dr_t * p_decoded, dvbpsi_copyright_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -84,16 +84,16 @@ dvbpsi_copyright_dr_t* dvbpsi_DecodeCopyrightDr( ...@@ -84,16 +84,16 @@ dvbpsi_copyright_dr_t* dvbpsi_DecodeCopyrightDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr(
dvbpsi_copyright_dr_t * p_decoded, int b_duplicate) dvbpsi_copyright_dr_t * p_decoded, bool b_duplicate)
* \brief "copyright" descriptor generator. * \brief "copyright" descriptor generator.
* \param p_decoded pointer to a decoded "copyright" descriptor structure * \param p_decoded pointer to a decoded "copyright" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr( dvbpsi_descriptor_t * dvbpsi_GenCopyrightDr(
dvbpsi_copyright_dr_t * p_decoded, dvbpsi_copyright_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -84,7 +84,7 @@ dvbpsi_max_bitrate_dr_t * dvbpsi_DecodeMaxBitrateDr( ...@@ -84,7 +84,7 @@ dvbpsi_max_bitrate_dr_t * dvbpsi_DecodeMaxBitrateDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr( dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr(
dvbpsi_max_bitrate_dr_t * p_decoded, dvbpsi_max_bitrate_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -81,16 +81,16 @@ dvbpsi_max_bitrate_dr_t* dvbpsi_DecodeMaxBitrateDr( ...@@ -81,16 +81,16 @@ dvbpsi_max_bitrate_dr_t* dvbpsi_DecodeMaxBitrateDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr(
dvbpsi_max_bitrate_dr_t * p_decoded, int b_duplicate) dvbpsi_max_bitrate_dr_t * p_decoded, bool b_duplicate)
* \brief "maximum bitrate" descriptor generator. * \brief "maximum bitrate" descriptor generator.
* \param p_decoded pointer to a decoded "maximum bitrate" descriptor structure * \param p_decoded pointer to a decoded "maximum bitrate" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr( dvbpsi_descriptor_t * dvbpsi_GenMaxBitrateDr(
dvbpsi_max_bitrate_dr_t * p_decoded, dvbpsi_max_bitrate_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -85,7 +85,7 @@ dvbpsi_private_data_dr_t * dvbpsi_DecodePrivateDataDr( ...@@ -85,7 +85,7 @@ dvbpsi_private_data_dr_t * dvbpsi_DecodePrivateDataDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr( dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr(
dvbpsi_private_data_dr_t * p_decoded, dvbpsi_private_data_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -81,17 +81,17 @@ dvbpsi_private_data_dr_t* dvbpsi_DecodePrivateDataDr( ...@@ -81,17 +81,17 @@ dvbpsi_private_data_dr_t* dvbpsi_DecodePrivateDataDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr(
dvbpsi_private_data_dr_t * p_decoded, int b_duplicate) dvbpsi_private_data_dr_t * p_decoded, bool b_duplicate)
* \brief "private data indicator" descriptor generator. * \brief "private data indicator" descriptor generator.
* \param p_decoded pointer to a decoded "private data indicator" descriptor * \param p_decoded pointer to a decoded "private data indicator" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr( dvbpsi_descriptor_t * dvbpsi_GenPrivateDataDr(
dvbpsi_private_data_dr_t * p_decoded, dvbpsi_private_data_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -81,7 +81,7 @@ dvbpsi_stuffing_dr_t * dvbpsi_DecodeStuffingDr( ...@@ -81,7 +81,7 @@ dvbpsi_stuffing_dr_t * dvbpsi_DecodeStuffingDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenStuffingDr( dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(
dvbpsi_stuffing_dr_t * p_decoded, dvbpsi_stuffing_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -84,17 +84,17 @@ dvbpsi_stuffing_dr_t* dvbpsi_DecodeStuffingDr( ...@@ -84,17 +84,17 @@ dvbpsi_stuffing_dr_t* dvbpsi_DecodeStuffingDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenStuffingDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(
dvbpsi_stuffing_dr_t *p_decoded, int b_duplicate) dvbpsi_stuffing_dr_t *p_decoded, bool b_duplicate)
* \brief "stuffing" descriptor generator. * \brief "stuffing" descriptor generator.
* \param p_decoded pointer to a decoded "stuffing" descriptor * \param p_decoded pointer to a decoded "stuffing" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenStuffingDr( dvbpsi_descriptor_t * dvbpsi_GenStuffingDr(
dvbpsi_stuffing_dr_t * p_decoded, dvbpsi_stuffing_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -91,7 +91,7 @@ dvbpsi_sat_deliv_sys_dr_t * dvbpsi_DecodeSatDelivSysDr( ...@@ -91,7 +91,7 @@ dvbpsi_sat_deliv_sys_dr_t * dvbpsi_DecodeSatDelivSysDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr( dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr(
dvbpsi_sat_deliv_sys_dr_t * p_decoded, dvbpsi_sat_deliv_sys_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -89,17 +89,17 @@ dvbpsi_sat_deliv_sys_dr_t* dvbpsi_DecodeSatDelivSysDr( ...@@ -89,17 +89,17 @@ dvbpsi_sat_deliv_sys_dr_t* dvbpsi_DecodeSatDelivSysDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr(
dvbpsi_sat_deliv_sys_dr_t * p_decoded, int b_duplicate) dvbpsi_sat_deliv_sys_dr_t * p_decoded, bool b_duplicate)
* \brief satellite delivery system descriptor generator. * \brief satellite delivery system descriptor generator.
* \param p_decoded pointer to a decoded satellite delivery system descriptor * \param p_decoded pointer to a decoded satellite delivery system descriptor
* descriptor structure * descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr( dvbpsi_descriptor_t * dvbpsi_GenSatDelivSysDr(
dvbpsi_sat_deliv_sys_dr_t * p_decoded, dvbpsi_sat_deliv_sys_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -105,7 +105,7 @@ dvbpsi_vbi_dr_t * dvbpsi_DecodeVBIDataDr( ...@@ -105,7 +105,7 @@ dvbpsi_vbi_dr_t * dvbpsi_DecodeVBIDataDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr( dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr(
dvbpsi_vbi_dr_t * p_decoded, dvbpsi_vbi_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
int i; int i;
......
...@@ -124,17 +124,17 @@ dvbpsi_vbi_dr_t* dvbpsi_DecodeVBIDataDr( ...@@ -124,17 +124,17 @@ dvbpsi_vbi_dr_t* dvbpsi_DecodeVBIDataDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr(
dvbpsi_vbi_dr_t * p_decoded, int b_duplicate) dvbpsi_vbi_dr_t * p_decoded, bool b_duplicate)
* \brief "VBI data" descriptor generator. * \brief "VBI data" descriptor generator.
* \param p_decoded pointer to a decoded "VBI data" descriptor * \param p_decoded pointer to a decoded "VBI data" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr( dvbpsi_descriptor_t * dvbpsi_GenVBIDataDr(
dvbpsi_vbi_dr_t * p_decoded, dvbpsi_vbi_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
}; };
......
...@@ -81,7 +81,7 @@ dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr( ...@@ -81,7 +81,7 @@ dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr( dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(
dvbpsi_bouquet_name_dr_t * p_decoded, dvbpsi_bouquet_name_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -83,17 +83,17 @@ dvbpsi_bouquet_name_dr_t* dvbpsi_DecodeBouquetNameDr( ...@@ -83,17 +83,17 @@ dvbpsi_bouquet_name_dr_t* dvbpsi_DecodeBouquetNameDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(
dvbpsi_bouquet_name_dr_t * p_decoded, int b_duplicate) dvbpsi_bouquet_name_dr_t * p_decoded, bool b_duplicate)
* \brief "bouquet name" descriptor generator. * \brief "bouquet name" descriptor generator.
* \param p_decoded pointer to a decoded "bouquet name" descriptor * \param p_decoded pointer to a decoded "bouquet name" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr( dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(
dvbpsi_bouquet_name_dr_t * p_decoded, dvbpsi_bouquet_name_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -110,7 +110,7 @@ dvbpsi_service_dr_t * dvbpsi_DecodeServiceDr( ...@@ -110,7 +110,7 @@ dvbpsi_service_dr_t * dvbpsi_DecodeServiceDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenServiceDr( dvbpsi_descriptor_t * dvbpsi_GenServiceDr(
dvbpsi_service_dr_t * p_decoded, dvbpsi_service_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -88,17 +88,17 @@ dvbpsi_service_dr_t* dvbpsi_DecodeServiceDr( ...@@ -88,17 +88,17 @@ dvbpsi_service_dr_t* dvbpsi_DecodeServiceDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenServiceDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenServiceDr(
dvbpsi_service_dr_t * p_decoded, int b_duplicate) dvbpsi_service_dr_t * p_decoded, bool b_duplicate)
* \brief "service" descriptor generator. * \brief "service" descriptor generator.
* \param p_decoded pointer to a decoded "service" descriptor * \param p_decoded pointer to a decoded "service" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenServiceDr( dvbpsi_descriptor_t * dvbpsi_GenServiceDr(
dvbpsi_service_dr_t * p_decoded, dvbpsi_service_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -88,7 +88,7 @@ dvbpsi_short_event_dr_t * dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_desc ...@@ -88,7 +88,7 @@ dvbpsi_short_event_dr_t * dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_desc
* dvbpsi_GenShortEventDr * dvbpsi_GenShortEventDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenShortEventDr(dvbpsi_short_event_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenShortEventDr(dvbpsi_short_event_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
int i_len1 = p_decoded->i_event_name_length; int i_len1 = p_decoded->i_event_name_length;
int i_len2 = p_decoded->i_text_length; int i_len2 = p_decoded->i_text_length;
......
...@@ -83,15 +83,15 @@ dvbpsi_short_event_dr_t* dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_descr ...@@ -83,15 +83,15 @@ dvbpsi_short_event_dr_t* dvbpsi_DecodeShortEventDr(dvbpsi_descriptor_t * p_descr
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenShortEventDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenShortEventDr(
dvbpsi_short_event_dr_t * p_decoded, int b_duplicate) dvbpsi_short_event_dr_t * p_decoded, bool b_duplicate)
* \brief "short event" descriptor generator. * \brief "short event" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure * \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenShortEventDr(dvbpsi_short_event_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -105,7 +105,7 @@ dvbpsi_extended_event_dr_t * dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t * ...@@ -105,7 +105,7 @@ dvbpsi_extended_event_dr_t * dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t *
* dvbpsi_GenExtendedEventDr * dvbpsi_GenExtendedEventDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(dvbpsi_extended_event_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(dvbpsi_extended_event_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
int i_len; int i_len;
int i_len2; int i_len2;
......
...@@ -92,15 +92,15 @@ dvbpsi_extended_event_dr_t* dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t * p ...@@ -92,15 +92,15 @@ dvbpsi_extended_event_dr_t* dvbpsi_DecodeExtendedEventDr(dvbpsi_descriptor_t * p
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(
dvbpsi_extended_event_dr_t * p_decoded, int b_duplicate) dvbpsi_extended_event_dr_t * p_decoded, bool b_duplicate)
* \brief "short event" descriptor generator. * \brief "short event" descriptor generator.
* \param p_decoded pointer to a decoded "video stream" descriptor structure * \param p_decoded pointer to a decoded "video stream" descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \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_GenExtendedEventDr(dvbpsi_extended_event_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -81,7 +81,7 @@ dvbpsi_stream_identifier_dr_t * dvbpsi_DecodeStreamIdentifierDr( ...@@ -81,7 +81,7 @@ dvbpsi_stream_identifier_dr_t * dvbpsi_DecodeStreamIdentifierDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr( dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr(
dvbpsi_stream_identifier_dr_t * p_decoded, dvbpsi_stream_identifier_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -79,17 +79,17 @@ dvbpsi_stream_identifier_dr_t* dvbpsi_DecodeStreamIdentifierDr( ...@@ -79,17 +79,17 @@ dvbpsi_stream_identifier_dr_t* dvbpsi_DecodeStreamIdentifierDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr(
dvbpsi_stream_identifier_dr_t *p_decoded, int b_duplicate) dvbpsi_stream_identifier_dr_t *p_decoded, bool b_duplicate)
* \brief "stream identifier" descriptor generator. * \brief "stream identifier" descriptor generator.
* \param p_decoded pointer to a decoded "stream identifier" descriptor * \param p_decoded pointer to a decoded "stream identifier" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr( dvbpsi_descriptor_t * dvbpsi_GenStreamIdentifierDr(
dvbpsi_stream_identifier_dr_t * p_decoded, dvbpsi_stream_identifier_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -95,7 +95,7 @@ dvbpsi_parental_rating_dr_t * dvbpsi_DecodeParentalRatingDr( ...@@ -95,7 +95,7 @@ dvbpsi_parental_rating_dr_t * dvbpsi_DecodeParentalRatingDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr( dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr(
dvbpsi_parental_rating_dr_t * p_decoded, dvbpsi_parental_rating_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
int i; int i;
......
...@@ -101,17 +101,17 @@ dvbpsi_parental_rating_dr_t* dvbpsi_DecodeParentalRatingDr( ...@@ -101,17 +101,17 @@ dvbpsi_parental_rating_dr_t* dvbpsi_DecodeParentalRatingDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr(
dvbpsi_parental_rating_dr_t * p_decoded, int b_duplicate) dvbpsi_parental_rating_dr_t * p_decoded, bool b_duplicate)
* \brief "parental_rating" descriptor generator. * \brief "parental_rating" descriptor generator.
* \param p_decoded pointer to a decoded "parental_rating" descriptor * \param p_decoded pointer to a decoded "parental_rating" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr( dvbpsi_descriptor_t * dvbpsi_GenParentalRatingDr(
dvbpsi_parental_rating_dr_t * p_decoded, dvbpsi_parental_rating_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -98,7 +98,7 @@ dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr( ...@@ -98,7 +98,7 @@ dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenTeletextDr( dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(
dvbpsi_teletext_dr_t * p_decoded, dvbpsi_teletext_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
int i; int i;
......
...@@ -105,17 +105,17 @@ dvbpsi_teletext_dr_t* dvbpsi_DecodeTeletextDr( ...@@ -105,17 +105,17 @@ dvbpsi_teletext_dr_t* dvbpsi_DecodeTeletextDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenTeletextDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(
dvbpsi_teletext_dr_t * p_decoded, int b_duplicate) dvbpsi_teletext_dr_t * p_decoded, bool b_duplicate)
* \brief "teletext" descriptor generator. * \brief "teletext" descriptor generator.
* \param p_decoded pointer to a decoded "teletext" descriptor * \param p_decoded pointer to a decoded "teletext" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenTeletextDr( dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(
dvbpsi_teletext_dr_t * p_decoded, dvbpsi_teletext_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -99,7 +99,7 @@ dvbpsi_local_time_offset_dr_t * dvbpsi_DecodeLocalTimeOffsetDr( ...@@ -99,7 +99,7 @@ dvbpsi_local_time_offset_dr_t * dvbpsi_DecodeLocalTimeOffsetDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenLocalTimeOffsetDr( dvbpsi_descriptor_t * dvbpsi_GenLocalTimeOffsetDr(
dvbpsi_local_time_offset_dr_t * p_decoded, dvbpsi_local_time_offset_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
uint8_t i_num; uint8_t i_num;
dvbpsi_local_time_offset_t * p_current; dvbpsi_local_time_offset_t * p_current;
......
...@@ -108,17 +108,17 @@ dvbpsi_local_time_offset_dr_t* dvbpsi_DecodeLocalTimeOffsetDr( ...@@ -108,17 +108,17 @@ dvbpsi_local_time_offset_dr_t* dvbpsi_DecodeLocalTimeOffsetDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenLocalTimeOffsetDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenLocalTimeOffsetDr(
dvbpsi_local_time_offset_dr_t * p_decoded, int b_duplicate) dvbpsi_local_time_offset_dr_t * p_decoded, bool b_duplicate)
* \brief "local time offset" descriptor generator. * \brief "local time offset" descriptor generator.
* \param p_decoded pointer to a decoded "local time offset" descriptor * \param p_decoded pointer to a decoded "local time offset" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenLocalTimeOffsetDr( dvbpsi_descriptor_t * dvbpsi_GenLocalTimeOffsetDr(
dvbpsi_local_time_offset_dr_t * p_decoded, dvbpsi_local_time_offset_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -109,7 +109,7 @@ dvbpsi_subtitling_dr_t * dvbpsi_DecodeSubtitlingDr( ...@@ -109,7 +109,7 @@ dvbpsi_subtitling_dr_t * dvbpsi_DecodeSubtitlingDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr( dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr(
dvbpsi_subtitling_dr_t * p_decoded, dvbpsi_subtitling_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
int i; int i;
......
...@@ -104,17 +104,17 @@ dvbpsi_subtitling_dr_t* dvbpsi_DecodeSubtitlingDr( ...@@ -104,17 +104,17 @@ dvbpsi_subtitling_dr_t* dvbpsi_DecodeSubtitlingDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr(
dvbpsi_subtitling_dr_t * p_decoded, int b_duplicate) dvbpsi_subtitling_dr_t * p_decoded, bool b_duplicate)
* \brief "subtitling" descriptor generator. * \brief "subtitling" descriptor generator.
* \param p_decoded pointer to a decoded "subtitling" descriptor * \param p_decoded pointer to a decoded "subtitling" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if bool then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr( dvbpsi_descriptor_t * dvbpsi_GenSubtitlingDr(
dvbpsi_subtitling_dr_t * p_decoded, dvbpsi_subtitling_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -90,7 +90,7 @@ dvbpsi_terr_deliv_sys_dr_t * dvbpsi_DecodeTerrDelivSysDr( ...@@ -90,7 +90,7 @@ dvbpsi_terr_deliv_sys_dr_t * dvbpsi_DecodeTerrDelivSysDr(
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenTerrDelivSysDr( dvbpsi_descriptor_t * dvbpsi_GenTerrDelivSysDr(
dvbpsi_terr_deliv_sys_dr_t * p_decoded, dvbpsi_terr_deliv_sys_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -92,17 +92,17 @@ dvbpsi_terr_deliv_sys_dr_t* dvbpsi_DecodeTerrDelivSysDr( ...@@ -92,17 +92,17 @@ dvbpsi_terr_deliv_sys_dr_t* dvbpsi_DecodeTerrDelivSysDr(
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenTerrDelivSysDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenTerrDelivSysDr(
dvbpsi_terr_deliv_sys_dr_t * p_decoded, int b_duplicate) dvbpsi_terr_deliv_sys_dr_t * p_decoded, bool b_duplicate)
* \brief terrestrial delivery system descriptor generator. * \brief terrestrial delivery system descriptor generator.
* \param p_decoded pointer to a decoded terrestrial delivery system descriptor * \param p_decoded pointer to a decoded terrestrial delivery system descriptor
* descriptor structure * descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenTerrDelivSysDr( dvbpsi_descriptor_t * dvbpsi_GenTerrDelivSysDr(
dvbpsi_terr_deliv_sys_dr_t * p_decoded, dvbpsi_terr_deliv_sys_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -81,7 +81,7 @@ dvbpsi_PDC_dr_t * dvbpsi_DecodePDCDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -81,7 +81,7 @@ dvbpsi_PDC_dr_t * dvbpsi_DecodePDCDr(dvbpsi_descriptor_t * p_descriptor)
* dvbpsi_GenPDCDr * dvbpsi_GenPDCDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenPDCDr(dvbpsi_PDC_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenPDCDr(dvbpsi_PDC_dr_t * p_decoded,
int b_duplicate) bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -79,15 +79,15 @@ dvbpsi_PDC_dr_t* dvbpsi_DecodePDCDr(dvbpsi_descriptor_t * p_descriptor); ...@@ -79,15 +79,15 @@ dvbpsi_PDC_dr_t* dvbpsi_DecodePDCDr(dvbpsi_descriptor_t * p_descriptor);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenPDCDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenPDCDr(
dvbpsi_PDC_dr_t * p_decoded, int b_duplicate) dvbpsi_PDC_dr_t * p_decoded, bool b_duplicate)
* \brief PDC descriptor generator. * \brief PDC descriptor generator.
* \param p_decoded pointer to a decoded PDC descriptor structure * \param p_decoded pointer to a decoded PDC descriptor structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenPDCDr(dvbpsi_PDC_dr_t * p_decoded, dvbpsi_descriptor_t * dvbpsi_GenPDCDr(dvbpsi_PDC_dr_t * p_decoded,
int b_duplicate); bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -86,7 +86,7 @@ dvbpsi_cuei_dr_t * dvbpsi_DecodeCUEIDr(dvbpsi_descriptor_t * p_descriptor) ...@@ -86,7 +86,7 @@ dvbpsi_cuei_dr_t * dvbpsi_DecodeCUEIDr(dvbpsi_descriptor_t * p_descriptor)
/***************************************************************************** /*****************************************************************************
* dvbpsi_GenCUEIDr * dvbpsi_GenCUEIDr
*****************************************************************************/ *****************************************************************************/
dvbpsi_descriptor_t * dvbpsi_GenCUEIDr(dvbpsi_cuei_dr_t * p_decoded, int b_duplicate) dvbpsi_descriptor_t * dvbpsi_GenCUEIDr(dvbpsi_cuei_dr_t * p_decoded, bool b_duplicate)
{ {
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
......
...@@ -76,15 +76,15 @@ dvbpsi_cuei_dr_t* dvbpsi_DecodeCUEIDr(dvbpsi_descriptor_t * p_descriptor); ...@@ -76,15 +76,15 @@ dvbpsi_cuei_dr_t* dvbpsi_DecodeCUEIDr(dvbpsi_descriptor_t * p_descriptor);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn dvbpsi_descriptor_t * dvbpsi_GenCUEIDr( * \fn dvbpsi_descriptor_t * dvbpsi_GenCUEIDr(
dvbpsi_cuei_dr_t * p_decoded, int b_duplicate) dvbpsi_cuei_dr_t * p_decoded, bool b_duplicate)
* \brief "CUEI" descriptor generator. * \brief "CUEI" descriptor generator.
* \param p_decoded pointer to a decoded "CUEI" descriptor * \param p_decoded pointer to a decoded "CUEI" descriptor
* structure * structure
* \param b_duplicate if non zero then duplicate the p_decoded structure into * \param b_duplicate if true then duplicate the p_decoded structure into
* the descriptor * the descriptor
* \return a pointer to a new descriptor structure which contains encoded data. * \return a pointer to a new descriptor structure which contains encoded data.
*/ */
dvbpsi_descriptor_t * dvbpsi_GenCUEIDr(dvbpsi_cuei_dr_t * p_decoded, int b_duplicate); dvbpsi_descriptor_t * dvbpsi_GenCUEIDr(dvbpsi_cuei_dr_t * p_decoded, bool b_duplicate);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -141,7 +141,7 @@ void dvbpsi_BuildPSISection(dvbpsi_t *p_dvbpsi, dvbpsi_psi_section_t* p_section) ...@@ -141,7 +141,7 @@ void dvbpsi_BuildPSISection(dvbpsi_t *p_dvbpsi, dvbpsi_psi_section_t* p_section)
if (p_section->b_syntax_indicator) if (p_section->b_syntax_indicator)
{ {
/* 8 MSB of table_id_extension */ /* 8 MSB of table_id_extension */
b_section->p_data[3] = (p_section->i_extension >> 8) & 0xff; p_section->p_data[3] = (p_section->i_extension >> 8) & 0xff;
/* 8 LSB of table_id_extension */ /* 8 LSB of table_id_extension */
p_section->p_data[4] = p_section->i_extension & 0xff; p_section->p_data[4] = p_section->i_extension & 0xff;
/* 5 bits of version_number | current_next_indicator */ /* 5 bits of version_number | current_next_indicator */
......
...@@ -107,7 +107,7 @@ void dvbpsi_DetachPAT(dvbpsi_t *p_dvbpsi) ...@@ -107,7 +107,7 @@ void dvbpsi_DetachPAT(dvbpsi_t *p_dvbpsi)
* Initialize a pre-allocated dvbpsi_pat_t structure. * Initialize a pre-allocated dvbpsi_pat_t structure.
*****************************************************************************/ *****************************************************************************/
void dvbpsi_InitPAT(dvbpsi_pat_t* p_pat, uint16_t i_ts_id, uint8_t i_version, void dvbpsi_InitPAT(dvbpsi_pat_t* p_pat, uint16_t i_ts_id, uint8_t i_version,
int b_current_next) bool b_current_next)
{ {
p_pat->i_ts_id = i_ts_id; p_pat->i_ts_id = i_ts_id;
p_pat->i_version = i_version; p_pat->i_version = i_version;
......
...@@ -130,7 +130,7 @@ void dvbpsi_DetachPAT(dvbpsi_t *p_dvbpsi); ...@@ -130,7 +130,7 @@ void dvbpsi_DetachPAT(dvbpsi_t *p_dvbpsi);
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \fn void dvbpsi_InitPAT(dvbpsi_pat_t* p_pat, uint16_t i_ts_id, * \fn void dvbpsi_InitPAT(dvbpsi_pat_t* p_pat, uint16_t i_ts_id,
uint8_t i_version, int b_current_next) uint8_t i_version, bool b_current_next)
* \brief Initialize a user-allocated dvbpsi_pat_t structure. * \brief Initialize a user-allocated dvbpsi_pat_t structure.
* \param p_pat pointer to the PAT structure * \param p_pat pointer to the PAT structure
* \param i_ts_id transport stream ID * \param i_ts_id transport stream ID
...@@ -139,7 +139,7 @@ void dvbpsi_DetachPAT(dvbpsi_t *p_dvbpsi); ...@@ -139,7 +139,7 @@ void dvbpsi_DetachPAT(dvbpsi_t *p_dvbpsi);
* \return nothing. * \return nothing.
*/ */
void dvbpsi_InitPAT(dvbpsi_pat_t* p_pat, uint16_t i_ts_id, uint8_t i_version, void dvbpsi_InitPAT(dvbpsi_pat_t* p_pat, uint16_t i_ts_id, uint8_t i_version,
int b_current_next); bool b_current_next);
/*! /*!
* \def dvbpsi_NewPAT(p_pat, i_ts_id, i_version, b_current_next) * \def dvbpsi_NewPAT(p_pat, i_ts_id, i_version, b_current_next)
......
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