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
84878aee
Commit
84878aee
authored
Jul 19, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for the terrestial delivery system descriptor
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
aefec86e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
257 additions
and
0 deletions
+257
-0
misc/dr.xml
misc/dr.xml
+15
-0
misc/test_dr.c
misc/test_dr.c
+242
-0
No files found.
misc/dr.xml
View file @
84878aee
...
@@ -348,4 +348,19 @@
...
@@ -348,4 +348,19 @@
<array
name=
"p_subtitle"
len_name=
"i_subtitles_number"
min_size=
"1"
type=
"dvbpsi_subtitle_t"
/>
<array
name=
"p_subtitle"
len_name=
"i_subtitles_number"
min_size=
"1"
type=
"dvbpsi_subtitle_t"
/>
</descriptor>
</descriptor>
<descriptor
name=
"terrestial delivery system"
sname=
"terr_deliv_sys"
fname=
"TerrDelivSys"
>
<integer
name=
"i_centre_frequency"
bitcount=
"32"
default=
"0"
/>
<integer
name=
"i_bandwidth"
bitcount=
"3"
default=
"0"
/>
<integer
name=
"i_priority"
bitcount=
"1"
default=
"0"
/>
<integer
name=
"i_time_slice_indicator"
bitcount=
"1"
default=
"0"
/>
<integer
name=
"i_mpe_fec_indicator"
bitcount=
"1"
default=
"0"
/>
<integer
name=
"i_constellation"
bitcount=
"2"
default=
"0"
/>
<integer
name=
"i_hierarchy_information"
bitcount=
"3"
default=
"0"
/>
<integer
name=
"i_code_rate_hp_stream"
bitcount=
"3"
default=
"0"
/>
<integer
name=
"i_code_rate_lp_stream"
bitcount=
"3"
default=
"0"
/>
<integer
name=
"i_guard_interval"
bitcount=
"2"
default=
"0"
/>
<integer
name=
"i_transmission_mode"
bitcount=
"2"
default=
"0"
/>
<integer
name=
"i_other_frequency_flag"
bitcount=
"1"
default=
"0"
/>
</descriptor>
</dr>
</dr>
misc/test_dr.c
View file @
84878aee
...
@@ -2225,6 +2225,247 @@ static int main_subtitling_(void)
...
@@ -2225,6 +2225,247 @@ static int main_subtitling_(void)
return
i_err
;
return
i_err
;
}
}
/* terrestial delivery system */
static
int
main_terr_deliv_sys_
(
void
)
{
BOZO_VARS
(
terr_deliv_sys
);
BOZO_START
(
terrestial
delivery
system
);
/* check i_centre_frequency */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_centre_frequency
,
32
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_centre_frequency
,
32
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_centre_frequency
,
32
)
/* check i_bandwidth */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_bandwidth
,
3
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_bandwidth
,
3
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_bandwidth
,
3
)
/* check i_priority */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_priority
,
1
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_priority
,
1
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_priority
,
1
)
/* check i_time_slice_indicator */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_time_slice_indicator
,
1
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_time_slice_indicator
,
1
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_time_slice_indicator
,
1
)
/* check i_mpe_fec_indicator */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_mpe_fec_indicator
,
1
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_mpe_fec_indicator
,
1
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_mpe_fec_indicator
,
1
)
/* check i_constellation */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_constellation
,
2
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_constellation
,
2
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_constellation
,
2
)
/* check i_hierarchy_information */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_hierarchy_information
,
3
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_hierarchy_information
,
3
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_hierarchy_information
,
3
)
/* check i_code_rate_hp_stream */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_code_rate_hp_stream
,
3
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_code_rate_hp_stream
,
3
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_code_rate_hp_stream
,
3
)
/* check i_code_rate_lp_stream */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_code_rate_lp_stream
,
3
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_code_rate_lp_stream
,
3
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_code_rate_lp_stream
,
3
)
/* check i_guard_interval */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_guard_interval
,
2
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_guard_interval
,
2
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_guard_interval
,
2
)
/* check i_transmission_mode */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_transmission_mode
,
2
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_transmission_mode
,
2
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_transmission_mode
,
2
)
/* check i_other_frequency_flag */
BOZO_init_integer
(
i_centre_frequency
,
0
);
BOZO_init_integer
(
i_bandwidth
,
0
);
BOZO_init_integer
(
i_priority
,
0
);
BOZO_init_integer
(
i_time_slice_indicator
,
0
);
BOZO_init_integer
(
i_mpe_fec_indicator
,
0
);
BOZO_init_integer
(
i_constellation
,
0
);
BOZO_init_integer
(
i_hierarchy_information
,
0
);
BOZO_init_integer
(
i_code_rate_hp_stream
,
0
);
BOZO_init_integer
(
i_code_rate_lp_stream
,
0
);
BOZO_init_integer
(
i_guard_interval
,
0
);
BOZO_init_integer
(
i_transmission_mode
,
0
);
BOZO_init_integer
(
i_other_frequency_flag
,
0
);
BOZO_begin_integer
(
i_other_frequency_flag
,
1
)
BOZO_DOJOB
(
TerrDelivSys
);
BOZO_check_integer
(
i_other_frequency_flag
,
1
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_other_frequency_flag
,
1
)
BOZO_END
(
terrestial
delivery
system
);
return
i_err
;
}
/* main function */
/* main function */
int
main
(
void
)
int
main
(
void
)
...
@@ -2280,6 +2521,7 @@ int main(void)
...
@@ -2280,6 +2521,7 @@ int main(void)
i_err
|=
main_teletext_
();
i_err
|=
main_teletext_
();
i_err
|=
main_local_time_offset_
();
i_err
|=
main_local_time_offset_
();
i_err
|=
main_subtitling_
();
i_err
|=
main_subtitling_
();
i_err
|=
main_terr_deliv_sys_
();
if
(
i_err
)
if
(
i_err
)
fprintf
(
stderr
,
"At least one test has FAILED !!!
\n
"
);
fprintf
(
stderr
,
"At least one test has FAILED !!!
\n
"
);
...
...
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