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
95b029f0
Commit
95b029f0
authored
Feb 09, 2017
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_dr: fix test
parent
d2a81c20
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
17 deletions
+19
-17
misc/dr.xml
misc/dr.xml
+2
-2
misc/dr.xsl
misc/dr.xsl
+2
-0
misc/test_dr.c
misc/test_dr.c
+11
-11
misc/test_dr.h
misc/test_dr.h
+4
-4
No files found.
misc/dr.xml
View file @
95b029f0
...
...
@@ -7,7 +7,7 @@
<integer
name=
"i_frame_rate_code"
bitcount=
"4"
default=
"0"
/>
<insert>
<begin>
s_decoded.b_mpeg2 =
0
;
</begin>
s_decoded.b_mpeg2 =
false
;
</begin>
</insert>
<boolean
name=
"b_constrained_parameter"
default=
"0"
/>
<boolean
name=
"b_still_picture"
default=
"0"
/>
...
...
@@ -18,7 +18,7 @@
<integer
name=
"i_frame_rate_code"
bitcount=
"4"
default=
"0"
/>
<insert>
<begin>
s_decoded.b_mpeg2 =
12
;
</begin>
s_decoded.b_mpeg2 =
true
;
</begin>
</insert>
<boolean
name=
"b_constrained_parameter"
default=
"0"
/>
<boolean
name=
"b_still_picture"
default=
"0"
/>
...
...
misc/dr.xsl
View file @
95b029f0
...
...
@@ -22,6 +22,8 @@
#include
<
stdint.h
>
#endif
#include
<
sys/types.h
>
/* the libdvbpsi distribution defines DVBPSI_DIST */
#ifdef DVBPSI_DIST
#include "../src/dvbpsi.h"
...
...
misc/test_dr.c
View file @
95b029f0
...
...
@@ -39,7 +39,7 @@ static int main_vstream_1(void)
/* check b_multiple_frame_rate */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
0
;
s_decoded
.
b_mpeg2
=
false
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_begin_boolean
(
b_multiple_frame_rate
)
...
...
@@ -51,7 +51,7 @@ static int main_vstream_1(void)
/* check i_frame_rate_code */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
0
;
s_decoded
.
b_mpeg2
=
false
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_begin_integer
(
i_frame_rate_code
,
4
)
...
...
@@ -63,7 +63,7 @@ static int main_vstream_1(void)
/* check b_constrained_parameter */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
0
;
s_decoded
.
b_mpeg2
=
false
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_begin_boolean
(
b_constrained_parameter
)
...
...
@@ -75,7 +75,7 @@ static int main_vstream_1(void)
/* check b_still_picture */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
0
;
s_decoded
.
b_mpeg2
=
false
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_begin_boolean
(
b_still_picture
)
...
...
@@ -100,7 +100,7 @@ static int main_vstream_2(void)
/* check b_multiple_frame_rate */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
12
;
s_decoded
.
b_mpeg2
=
true
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_init_integer
(
i_profile_level_indication
,
0
);
...
...
@@ -115,7 +115,7 @@ static int main_vstream_2(void)
/* check i_frame_rate_code */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
12
;
s_decoded
.
b_mpeg2
=
true
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_init_integer
(
i_profile_level_indication
,
0
);
...
...
@@ -130,7 +130,7 @@ static int main_vstream_2(void)
/* check b_constrained_parameter */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
12
;
s_decoded
.
b_mpeg2
=
true
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_init_integer
(
i_profile_level_indication
,
0
);
...
...
@@ -145,7 +145,7 @@ static int main_vstream_2(void)
/* check b_still_picture */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
12
;
s_decoded
.
b_mpeg2
=
true
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_init_integer
(
i_profile_level_indication
,
0
);
...
...
@@ -160,7 +160,7 @@ static int main_vstream_2(void)
/* check i_profile_level_indication */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
12
;
s_decoded
.
b_mpeg2
=
true
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_init_integer
(
i_profile_level_indication
,
0
);
...
...
@@ -175,7 +175,7 @@ static int main_vstream_2(void)
/* check i_chroma_format */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
12
;
s_decoded
.
b_mpeg2
=
true
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_init_integer
(
i_profile_level_indication
,
0
);
...
...
@@ -190,7 +190,7 @@ static int main_vstream_2(void)
/* check b_frame_rate_extension */
BOZO_init_boolean
(
b_multiple_frame_rate
,
0
);
BOZO_init_integer
(
i_frame_rate_code
,
0
);
s_decoded
.
b_mpeg2
=
12
;
s_decoded
.
b_mpeg2
=
true
;
BOZO_init_boolean
(
b_constrained_parameter
,
0
);
BOZO_init_boolean
(
b_still_picture
,
0
);
BOZO_init_integer
(
i_profile_level_indication
,
0
);
...
...
misc/test_dr.h
View file @
95b029f0
...
...
@@ -97,13 +97,13 @@
{ \
fprintf(stdout, " \"%s\" boolean check\n", #name); \
i_loop_count = 0; \
s_decoded.name =
0;
\
s_decoded.name =
false;
\
do \
{
#define BOZO_end_boolean(name) \
s_decoded.name
+= 12;
\
} while(!i_err && (s_decoded.name
<= 12));
\
s_decoded.name
^= true;
\
} while(!i_err && (s_decoded.name
));
\
fprintf(stdout, "\r iteration count: %22"PRI64d, i_loop_count); \
if(i_err) \
fprintf(stdout, " 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