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
687877f8
Commit
687877f8
authored
Jun 28, 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 IBP descriptor
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
bb9b728b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
0 deletions
+53
-0
misc/dr.xml
misc/dr.xml
+6
-0
misc/test_dr.c
misc/test_dr.c
+47
-0
No files found.
misc/dr.xml
View file @
687877f8
...
...
@@ -115,6 +115,12 @@
<descriptor
name=
"STD"
sname=
"std"
fname=
"STD"
gen_args=
"1"
>
<boolean
name=
"b_leak_valid_flag"
default=
"0"
/>
</descriptor>
<descriptor
name=
"IBP"
sname=
"ibp"
fname=
"IBP"
gen_args=
"1"
>
<boolean
name=
"b_closed_gop_flag"
default=
"0"
/>
<boolean
name=
"b_identical_gop_flag"
default=
"0"
/>
<integer
name=
"i_max_gop_length"
bitcount=
"14"
default=
"1"
/>
</descriptor>
<!--
<descriptor name="stuffing" sname="stuffing" fname="Stuffing">
<insert>
...
...
misc/test_dr.c
View file @
687877f8
...
...
@@ -718,6 +718,52 @@ static int main_std_(void)
return
i_err
;
}
/* IBP */
static
int
main_ibp_
(
void
)
{
BOZO_VARS
(
ibp
);
BOZO_START
(
IBP
);
#define dvbpsi_GenIBPDr(x,y) \
dvbpsi_GenIBPDr(x)
/* check b_closed_gop_flag */
BOZO_init_boolean
(
b_closed_gop_flag
,
0
);
BOZO_init_boolean
(
b_identical_gop_flag
,
0
);
BOZO_init_integer
(
i_max_gop_length
,
1
);
BOZO_begin_boolean
(
b_closed_gop_flag
)
BOZO_DOJOB
(
IBP
);
BOZO_check_boolean
(
b_closed_gop_flag
)
BOZO_CLEAN
();
BOZO_end_boolean
(
b_closed_gop_flag
)
/* check b_identical_gop_flag */
BOZO_init_boolean
(
b_closed_gop_flag
,
0
);
BOZO_init_boolean
(
b_identical_gop_flag
,
0
);
BOZO_init_integer
(
i_max_gop_length
,
1
);
BOZO_begin_boolean
(
b_identical_gop_flag
)
BOZO_DOJOB
(
IBP
);
BOZO_check_boolean
(
b_identical_gop_flag
)
BOZO_CLEAN
();
BOZO_end_boolean
(
b_identical_gop_flag
)
/* check i_max_gop_length */
BOZO_init_boolean
(
b_closed_gop_flag
,
0
);
BOZO_init_boolean
(
b_identical_gop_flag
,
0
);
BOZO_init_integer
(
i_max_gop_length
,
1
);
BOZO_begin_integer
(
i_max_gop_length
,
14
)
BOZO_DOJOB
(
IBP
);
BOZO_check_integer
(
i_max_gop_length
,
14
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_max_gop_length
,
14
)
BOZO_END
(
IBP
);
return
i_err
;
}
/* service */
static
int
main_service_
(
void
)
{
...
...
@@ -765,6 +811,7 @@ int main(void)
i_err
|=
main_private_data_
();
i_err
|=
main_smoothing_buffer_
();
i_err
|=
main_std_
();
i_err
|=
main_ibp_
();
i_err
|=
main_service_
();
if
(
i_err
)
...
...
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