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
f3041fcd
Commit
f3041fcd
authored
Jul 15, 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 descriptor 43h
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
2931921a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
191 additions
and
21 deletions
+191
-21
misc/dr.xml
misc/dr.xml
+12
-0
misc/test_dr.c
misc/test_dr.c
+179
-21
No files found.
misc/dr.xml
View file @
f3041fcd
...
@@ -142,6 +142,18 @@
...
@@ -142,6 +142,18 @@
<array
name=
"i_stuffing_byte"
len_name=
"i_stuffing_length"
min_size=
"0"
/>
<array
name=
"i_stuffing_byte"
len_name=
"i_stuffing_length"
min_size=
"0"
/>
</descriptor>
</descriptor>
<descriptor
name=
"satellite delivery system"
sname=
"sat_deliv_sys"
fname=
"SatDelivSys"
>
<integer
name=
"i_frequency"
bitcount=
"32"
default=
"0"
/>
<integer
name=
"i_orbital_position"
bitcount=
"16"
default=
"0"
/>
<integer
name=
"i_west_east_flag"
bitcount=
"1"
default=
"0"
/>
<integer
name=
"i_polarization"
bitcount=
"2"
default=
"0"
/>
<integer
name=
"i_roll_off"
bitcount=
"2"
default=
"0"
/>
<integer
name=
"i_modulation_system"
bitcount=
"1"
default=
"0"
/>
<integer
name=
"i_modulation_type"
bitcount=
"2"
default=
"0"
/>
<integer
name=
"i_symbol_rate"
bitcount=
"28"
default=
"0"
/>
<integer
name=
"i_fec_inner"
bitcount=
"4"
default=
"0"
/>
</descriptor>
<descriptor
name=
"bouquet name"
sname=
"bouquet_name"
fname=
"BouquetName"
>
<descriptor
name=
"bouquet name"
sname=
"bouquet_name"
fname=
"BouquetName"
>
<array
name=
"i_char"
len_name=
"i_name_length"
min_size=
"0"
/>
<array
name=
"i_char"
len_name=
"i_name_length"
min_size=
"0"
/>
</descriptor>
</descriptor>
...
...
misc/test_dr.c
View file @
f3041fcd
...
@@ -832,6 +832,26 @@ static int main_network_name_(void)
...
@@ -832,6 +832,26 @@ static int main_network_name_(void)
return
i_err
;
return
i_err
;
}
}
/* service list */
static
int
main_service_list_
(
void
)
{
BOZO_VARS
(
service_list
);
BOZO_START
(
service
list
);
/* check i_service */
BOZO_begin_array
(
i_service
,
i_service_count
,
1
)
BOZO_DOJOB
(
ServiceList
);
BOZO_check_array_begin
(
i_service
,
i_service_count
)
BOZO_check_array_cmp
(
i_service
,
i_service_count
,
dvbpsi_service_list_service_s
)
BOZO_CLEAN
();
BOZO_end_array
(
i_service
,
ARRAY_SIZE
(
s_decoded
.
i_service
))
BOZO_END
(
service
list
);
return
i_err
;
}
/* stuffing */
/* stuffing */
static
int
main_stuffing_
(
void
)
static
int
main_stuffing_
(
void
)
{
{
...
@@ -852,6 +872,163 @@ static int main_stuffing_(void)
...
@@ -852,6 +872,163 @@ static int main_stuffing_(void)
return
i_err
;
return
i_err
;
}
}
/* satellite delivery */
static
int
main_sat_deliv_sys_
(
void
)
{
BOZO_VARS
(
sat_deliv_sys
);
BOZO_START
(
satellite
delivery
);
/* check i_frequency */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_frequency
,
32
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_frequency
,
32
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_frequency
,
32
)
/* check i_orbital_position */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_orbital_position
,
16
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_orbital_position
,
16
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_orbital_position
,
16
)
/* check i_west_east_flag */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_west_east_flag
,
1
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_west_east_flag
,
1
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_west_east_flag
,
1
)
/* check i_polarization */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_polarization
,
2
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_polarization
,
2
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_polarization
,
2
)
/* check i_roll_off */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_roll_off
,
2
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_roll_off
,
2
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_roll_off
,
2
)
/* check i_modulation_system */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_modulation_system
,
1
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_modulation_system
,
1
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_modulation_system
,
1
)
/* check i_modulation_type */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_modulation_type
,
2
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_modulation_type
,
2
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_modulation_type
,
2
)
/* check i_symbol_rate */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_symbol_rate
,
28
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_symbol_rate
,
28
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_symbol_rate
,
28
)
/* check i_fec_inner */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_orbital_position
,
0
);
BOZO_init_integer
(
i_west_east_flag
,
0
);
BOZO_init_integer
(
i_polarization
,
0
);
BOZO_init_integer
(
i_roll_off
,
0
);
BOZO_init_integer
(
i_modulation_system
,
0
);
BOZO_init_integer
(
i_modulation_type
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_begin_integer
(
i_fec_inner
,
4
)
BOZO_DOJOB
(
SatDelivSys
);
BOZO_check_integer
(
i_fec_inner
,
4
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_fec_inner
,
4
)
BOZO_END
(
satellite
delivery
);
return
i_err
;
}
/* bouquet name */
/* bouquet name */
static
int
main_bouquet_name_
(
void
)
static
int
main_bouquet_name_
(
void
)
{
{
...
@@ -974,26 +1151,6 @@ static int main_service_3(void)
...
@@ -974,26 +1151,6 @@ static int main_service_3(void)
return
i_err
;
return
i_err
;
}
}
/* service list */
static
int
main_service_list_
(
void
)
{
BOZO_VARS
(
service_list
);
BOZO_START
(
service
list
);
/* check i_service */
BOZO_begin_array
(
i_service
,
i_service_count
,
1
)
BOZO_DOJOB
(
ServiceList
);
BOZO_check_array_begin
(
i_service
,
i_service_count
)
BOZO_check_array_cmp
(
i_service
,
i_service_count
,
dvbpsi_service_list_service_s
)
BOZO_CLEAN
();
BOZO_end_array
(
i_service
,
ARRAY_SIZE
(
s_decoded
.
i_service
))
BOZO_END
(
service
list
);
return
i_err
;
}
/* main function */
/* main function */
int
main
(
void
)
int
main
(
void
)
...
@@ -1022,12 +1179,13 @@ int main(void)
...
@@ -1022,12 +1179,13 @@ int main(void)
i_err
|=
main_mpeg4_video_
();
i_err
|=
main_mpeg4_video_
();
i_err
|=
main_mpeg4_audio_
();
i_err
|=
main_mpeg4_audio_
();
i_err
|=
main_network_name_
();
i_err
|=
main_network_name_
();
i_err
|=
main_service_list_
();
i_err
|=
main_stuffing_
();
i_err
|=
main_stuffing_
();
i_err
|=
main_sat_deliv_sys_
();
i_err
|=
main_bouquet_name_
();
i_err
|=
main_bouquet_name_
();
i_err
|=
main_service_1
();
i_err
|=
main_service_1
();
i_err
|=
main_service_2
();
i_err
|=
main_service_2
();
i_err
|=
main_service_3
();
i_err
|=
main_service_3
();
i_err
|=
main_service_list_
();
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