Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
34c444be
Commit
34c444be
authored
Dec 12, 2002
by
Johan Bilien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/descriptors/*: fixed some typos
* misc/*: added tests on the new descriptors
parent
7258f595
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
71 additions
and
12 deletions
+71
-12
misc/Makefile.am
misc/Makefile.am
+1
-1
misc/dr.xml
misc/dr.xml
+26
-0
misc/dr.xsl
misc/dr.xsl
+6
-0
misc/test_dr.c
misc/test_dr.c
+24
-0
src/descriptors/dr.h
src/descriptors/dr.h
+4
-1
src/descriptors/dr_42.h
src/descriptors/dr_42.h
+3
-3
src/descriptors/dr_47.h
src/descriptors/dr_47.h
+3
-3
src/descriptors/dr_48.h
src/descriptors/dr_48.h
+4
-4
No files found.
misc/Makefile.am
View file @
34c444be
...
@@ -20,6 +20,6 @@ noinst_HEADERS = test_dr.h
...
@@ -20,6 +20,6 @@ noinst_HEADERS = test_dr.h
EXTRA_DIST
=
dr.dtd dr.xml dr.xsl
EXTRA_DIST
=
dr.dtd dr.xml dr.xsl
test_dr.c
:
test_dr.c
:
dr.dtd dr.xml dr.xsl
xsltproc
-o
test_dr.c dr.xsl dr.xml
xsltproc
-o
test_dr.c dr.xsl dr.xml
misc/dr.xml
View file @
34c444be
...
@@ -108,5 +108,31 @@
...
@@ -108,5 +108,31 @@
<descriptor
name=
"private data indicator"
sname=
"private_data"
fname=
"PrivateData"
>
<descriptor
name=
"private data indicator"
sname=
"private_data"
fname=
"PrivateData"
>
<integer
name=
"i_private_data"
bitcount=
"32"
default=
"0"
/>
<integer
name=
"i_private_data"
bitcount=
"32"
default=
"0"
/>
</descriptor>
</descriptor>
<!--
<descriptor name="stuffing" sname="stuffing" fname="Stuffing">
<insert>
<begin>
s_decoded.i_stuffing_length = 0;</begin>
</insert>
</descriptor>
<descriptor name="bouquet name" sname="bouquet_name" fname="BouquetName">
<insert>
<begin>
s_decoded.i_name_length = 0;</begin>
</insert>
</descriptor>-->
<descriptor
name=
"service"
sname=
"service"
fname=
"Service"
>
<insert>
<begin>
s_decoded.i_service_provider_name_length = 0;
</begin>
</insert>
<insert>
<begin>
s_decoded.i_service_name_length = 0;
</begin>
</insert>
<integer
name=
"i_service_type"
bitcount=
"8"
default=
"0"
/>
</descriptor>
</dr>
</dr>
misc/dr.xsl
View file @
34c444be
...
@@ -15,6 +15,12 @@
...
@@ -15,6 +15,12 @@
#include
<
stdio.h
>
#include
<
stdio.h
>
#if defined(HAVE_INTTYPES_H)
#include
<
inttypes.h
>
#elif defined(HAVE_STDINT_H)
#include
<
stdint.h
>
#endif
/* the libdvbpsi distribution defines DVBPSI_DIST */
/* the libdvbpsi distribution defines DVBPSI_DIST */
#ifdef DVBPSI_DIST
#ifdef DVBPSI_DIST
#include "../src/dvbpsi.h"
#include "../src/dvbpsi.h"
...
...
misc/test_dr.c
View file @
34c444be
...
@@ -639,6 +639,29 @@ int main_private_data_()
...
@@ -639,6 +639,29 @@ int main_private_data_()
return
i_err
;
return
i_err
;
}
}
/* service */
int
main_service_
()
{
BOZO_VARS
(
service
);
BOZO_START
(
service
);
/* check i_service_type */
s_decoded
.
i_service_provider_name_length
=
0
;
s_decoded
.
i_service_name_length
=
0
;
BOZO_init_integer
(
i_service_type
,
0
);
BOZO_begin_integer
(
i_service_type
,
8
)
BOZO_DOJOB
(
Service
);
BOZO_check_integer
(
i_service_type
,
8
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_service_type
,
8
)
BOZO_END
(
service
);
return
i_err
;
}
/* main function */
/* main function */
int
main
()
int
main
()
...
@@ -660,6 +683,7 @@ int main()
...
@@ -660,6 +683,7 @@ int main()
i_err
|=
main_copyright_
();
i_err
|=
main_copyright_
();
i_err
|=
main_max_bitrate_
();
i_err
|=
main_max_bitrate_
();
i_err
|=
main_private_data_
();
i_err
|=
main_private_data_
();
i_err
|=
main_service_
();
if
(
i_err
)
if
(
i_err
)
fprintf
(
stderr
,
"At least one test has FAILED !!!
\n
"
);
fprintf
(
stderr
,
"At least one test has FAILED !!!
\n
"
);
...
...
src/descriptors/dr.h
View file @
34c444be
/*****************************************************************************
/*****************************************************************************
* dr.h
* dr.h
* (c)2001-2002 VideoLAN
* (c)2001-2002 VideoLAN
* $Id: dr.h,v 1.
3 2002/05/11 11:42:27 bozo
Exp $
* $Id: dr.h,v 1.
4 2002/12/12 10:19:32 jobi
Exp $
*
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
*
...
@@ -46,6 +46,9 @@
...
@@ -46,6 +46,9 @@
#include "dr_0d.h"
#include "dr_0d.h"
#include "dr_0e.h"
#include "dr_0e.h"
#include "dr_0f.h"
#include "dr_0f.h"
#include "dr_42.h"
#include "dr_47.h"
#include "dr_48.h"
#else
#else
#error "Multiple inclusions of dr.h"
#error "Multiple inclusions of dr.h"
...
...
src/descriptors/dr_42.h
View file @
34c444be
/*****************************************************************************
/*****************************************************************************
* dr_42.h
* dr_42.h
* (c)2001-2002 VideoLAN
* (c)2001-2002 VideoLAN
* $Id: dr_42.h,v 1.
1 2002/12/11 13:14:4
2 jobi Exp $
* $Id: dr_42.h,v 1.
2 2002/12/12 10:19:3
2 jobi Exp $
*
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
* ETSI EN 300 468 section 6.2.35.
* ETSI EN 300 468 section 6.2.35.
*/
*/
#ifndef _DVBPSI_DR_
0F
_H_
#ifndef _DVBPSI_DR_
42
_H_
#define _DVBPSI_DR_
0F
_H_
#define _DVBPSI_DR_
42
_H_
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
...
...
src/descriptors/dr_47.h
View file @
34c444be
/*****************************************************************************
/*****************************************************************************
* dr_47.h
* dr_47.h
* (c)2001-2002 VideoLAN
* (c)2001-2002 VideoLAN
* $Id: dr_47.h,v 1.
1 2002/12/11 13:14:4
2 jobi Exp $
* $Id: dr_47.h,v 1.
2 2002/12/12 10:19:3
2 jobi Exp $
*
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
* ETSI EN 300 468 section 6.2.3.
* ETSI EN 300 468 section 6.2.3.
*/
*/
#ifndef _DVBPSI_DR_
0F
_H_
#ifndef _DVBPSI_DR_
47
_H_
#define _DVBPSI_DR_
0F
_H_
#define _DVBPSI_DR_
47
_H_
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
...
...
src/descriptors/dr_48.h
View file @
34c444be
/*****************************************************************************
/*****************************************************************************
* dr_48.h
* dr_48.h
* (c)2001-2002 VideoLAN
* (c)2001-2002 VideoLAN
* $Id: dr_48.h,v 1.
1 2002/12/11 13:14:4
2 jobi Exp $
* $Id: dr_48.h,v 1.
2 2002/12/12 10:19:3
2 jobi Exp $
*
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
* Johan Bilien <jobi@via.ecp.fr>
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
* ETSI EN 300 468 section 6.2.30.
* ETSI EN 300 468 section 6.2.30.
*/
*/
#ifndef _DVBPSI_DR_
0F
_H_
#ifndef _DVBPSI_DR_
48
_H_
#define _DVBPSI_DR_
0F
_H_
#define _DVBPSI_DR_
48
_H_
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
...
@@ -96,7 +96,7 @@ dvbpsi_service_dr_t* dvbpsi_DecodeServiceDr(
...
@@ -96,7 +96,7 @@ dvbpsi_service_dr_t* dvbpsi_DecodeServiceDr(
* 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_GenServiceD
ataD
r
(
dvbpsi_descriptor_t
*
dvbpsi_GenServiceDr
(
dvbpsi_service_dr_t
*
p_decoded
,
dvbpsi_service_dr_t
*
p_decoded
,
int
b_duplicate
);
int
b_duplicate
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment