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
eb13748e
Commit
eb13748e
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 44h
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
f3041fcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
3 deletions
+85
-3
misc/dr.xml
misc/dr.xml
+8
-0
misc/test_dr.c
misc/test_dr.c
+77
-3
No files found.
misc/dr.xml
View file @
eb13748e
...
...
@@ -154,6 +154,14 @@
<integer
name=
"i_fec_inner"
bitcount=
"4"
default=
"0"
/>
</descriptor>
<descriptor
name=
"cable delivery system"
sname=
"cable_deliv_sys"
fname=
"CableDelivSys"
>
<integer
name=
"i_frequency"
bitcount=
"32"
default=
"0"
/>
<integer
name=
"i_modulation"
bitcount=
"8"
default=
"0"
/>
<integer
name=
"i_symbol_rate"
bitcount=
"28"
default=
"0"
/>
<integer
name=
"i_fec_inner"
bitcount=
"4"
default=
"0"
/>
<integer
name=
"i_fec_outer"
bitcount=
"4"
default=
"0"
/>
</descriptor>
<descriptor
name=
"bouquet name"
sname=
"bouquet_name"
fname=
"BouquetName"
>
<array
name=
"i_char"
len_name=
"i_name_length"
min_size=
"0"
/>
</descriptor>
...
...
misc/test_dr.c
View file @
eb13748e
...
...
@@ -872,11 +872,11 @@ static int main_stuffing_(void)
return
i_err
;
}
/* satellite delivery */
/* satellite delivery
system
*/
static
int
main_sat_deliv_sys_
(
void
)
{
BOZO_VARS
(
sat_deliv_sys
);
BOZO_START
(
satellite
delivery
);
BOZO_START
(
satellite
delivery
system
);
/* check i_frequency */
...
...
@@ -1024,7 +1024,80 @@ static int main_sat_deliv_sys_(void)
BOZO_end_integer
(
i_fec_inner
,
4
)
BOZO_END
(
satellite
delivery
);
BOZO_END
(
satellite
delivery
system
);
return
i_err
;
}
/* cable delivery system */
static
int
main_cable_deliv_sys_
(
void
)
{
BOZO_VARS
(
cable_deliv_sys
);
BOZO_START
(
cable
delivery
system
);
/* check i_frequency */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_modulation
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_init_integer
(
i_fec_outer
,
0
);
BOZO_begin_integer
(
i_frequency
,
32
)
BOZO_DOJOB
(
CableDelivSys
);
BOZO_check_integer
(
i_frequency
,
32
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_frequency
,
32
)
/* check i_modulation */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_modulation
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_init_integer
(
i_fec_outer
,
0
);
BOZO_begin_integer
(
i_modulation
,
8
)
BOZO_DOJOB
(
CableDelivSys
);
BOZO_check_integer
(
i_modulation
,
8
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_modulation
,
8
)
/* check i_symbol_rate */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_modulation
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_init_integer
(
i_fec_outer
,
0
);
BOZO_begin_integer
(
i_symbol_rate
,
28
)
BOZO_DOJOB
(
CableDelivSys
);
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_modulation
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_init_integer
(
i_fec_outer
,
0
);
BOZO_begin_integer
(
i_fec_inner
,
4
)
BOZO_DOJOB
(
CableDelivSys
);
BOZO_check_integer
(
i_fec_inner
,
4
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_fec_inner
,
4
)
/* check i_fec_outer */
BOZO_init_integer
(
i_frequency
,
0
);
BOZO_init_integer
(
i_modulation
,
0
);
BOZO_init_integer
(
i_symbol_rate
,
0
);
BOZO_init_integer
(
i_fec_inner
,
0
);
BOZO_init_integer
(
i_fec_outer
,
0
);
BOZO_begin_integer
(
i_fec_outer
,
4
)
BOZO_DOJOB
(
CableDelivSys
);
BOZO_check_integer
(
i_fec_outer
,
4
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_fec_outer
,
4
)
BOZO_END
(
cable
delivery
system
);
return
i_err
;
}
...
...
@@ -1182,6 +1255,7 @@ int main(void)
i_err
|=
main_service_list_
();
i_err
|=
main_stuffing_
();
i_err
|=
main_sat_deliv_sys_
();
i_err
|=
main_cable_deliv_sys_
();
i_err
|=
main_bouquet_name_
();
i_err
|=
main_service_1
();
i_err
|=
main_service_2
();
...
...
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