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
d1d2e934
Commit
d1d2e934
authored
Jan 26, 2016
by
Daniel Kamil Kozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the new descriptor API in test_dr
parent
b8e56f3d
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
423 additions
and
424 deletions
+423
-424
misc/dr.dtd
misc/dr.dtd
+0
-1
misc/dr.xml
misc/dr.xml
+49
-49
misc/dr.xsl
misc/dr.xsl
+6
-6
misc/test_dr.c
misc/test_dr.c
+365
-365
misc/test_dr.h
misc/test_dr.h
+3
-3
No files found.
misc/dr.dtd
View file @
d1d2e934
...
...
@@ -16,7 +16,6 @@
<!ATTLIST descriptor name CDATA #IMPLIED>
<!ATTLIST descriptor sname CDATA #IMPLIED>
<!ATTLIST descriptor fname CDATA #IMPLIED>
<!ATTLIST descriptor msuffix CDATA #IMPLIED>
<!ATTLIST descriptor gen_args CDATA #IMPLIED>
...
...
misc/dr.xml
View file @
d1d2e934
This diff is collapsed.
Click to expand it.
misc/dr.xsl
View file @
d1d2e934
...
...
@@ -74,8 +74,8 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
<!-- declare a macro for calling the one-argument generate functions -->
<xsl:if
test=
"@gen_args = 1"
>
#define dvbpsi_
Gen
<xsl:value-of
select=
"@fname"
/>
D
r(x,y) \
dvbpsi_
Gen
<xsl:value-of
select=
"@fname"
/>
D
r(x)
#define dvbpsi_
gen_
<xsl:value-of
select=
"@sname"
/>
_d
r(x,y) \
dvbpsi_
gen_
<xsl:value-of
select=
"@sname"
/>
_d
r(x)
</xsl:if>
<xsl:apply-templates
mode=
"check"
/>
...
...
@@ -117,7 +117,7 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
<xsl:template
match=
"integer"
mode=
"check"
>
/* check
<xsl:value-of
select=
"@name"
/>
*/
<xsl:apply-templates
select=
".."
mode=
"init"
/>
BOZO_begin_integer(
<xsl:value-of
select=
"@name"
/>
,
<xsl:value-of
select=
"@bitcount"
/>
)
BOZO_DOJOB(
<xsl:value-of
select=
"../@
f
name"
/>
);
BOZO_DOJOB(
<xsl:value-of
select=
"../@
s
name"
/>
);
BOZO_check_integer(
<xsl:value-of
select=
"@name"
/>
,
<xsl:value-of
select=
"@bitcount"
/>
)
BOZO_CLEAN();
BOZO_end_integer(
<xsl:value-of
select=
"@name"
/>
,
<xsl:value-of
select=
"@bitcount"
/>
)
...
...
@@ -126,7 +126,7 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
<xsl:template
match=
"boolean"
mode=
"check"
>
/* check
<xsl:value-of
select=
"@name"
/>
*/
<xsl:apply-templates
select=
".."
mode=
"init"
/>
BOZO_begin_boolean(
<xsl:value-of
select=
"@name"
/>
)
BOZO_DOJOB(
<xsl:value-of
select=
"../@
f
name"
/>
);
BOZO_DOJOB(
<xsl:value-of
select=
"../@
s
name"
/>
);
BOZO_check_boolean(
<xsl:value-of
select=
"@name"
/>
)
BOZO_CLEAN();
BOZO_end_boolean(
<xsl:value-of
select=
"@name"
/>
)
...
...
@@ -136,7 +136,7 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
/* check
<xsl:value-of
select=
"@name"
/>
*/
<xsl:apply-templates
select=
".."
mode=
"init"
/>
BOZO_begin_array(
<xsl:value-of
select=
"@name"
/>
)
BOZO_loop_array_begin(
<xsl:value-of
select=
"@name"
/>
,
<xsl:value-of
select=
"@len_name"
/>
,
<xsl:value-of
select=
"@min_size"
/>
)
BOZO_DOJOB(
<xsl:value-of
select=
"../@
f
name"
/>
);
BOZO_DOJOB(
<xsl:value-of
select=
"../@
s
name"
/>
);
BOZO_check_array_begin(
<xsl:value-of
select=
"@name"
/>
,
<xsl:value-of
select=
"@len_name"
/>
)
<xsl:choose>
<xsl:when
test=
"@type"
>
...
...
@@ -173,7 +173,7 @@ static int main_<xsl:value-of select="@sname" />_<xsl:value-of select="@msuffix"
/* check
<xsl:value-of
select=
"@name"
/>
*/
<xsl:apply-templates
select=
".."
mode=
"init"
/>
i_loop_count = 0;
BOZO_begin_array(
<xsl:value-of
select=
"@name"
/>
)
BOZO_DOJOB(
<xsl:value-of
select=
"../@
f
name"
/>
);
BOZO_DOJOB(
<xsl:value-of
select=
"../@
s
name"
/>
);
BOZO_check_carray(
<xsl:value-of
select=
"@name"
/>
)
BOZO_end_array
</xsl:template>
...
...
misc/test_dr.c
View file @
d1d2e934
This diff is collapsed.
Click to expand it.
misc/test_dr.h
View file @
d1d2e934
...
...
@@ -37,12 +37,12 @@
#define BOZO_CLEAN() \
dvbpsi_DeleteDescriptors(p_descriptor);
#define BOZO_DOJOB(
fname)
\
#define BOZO_DOJOB(
sname)
\
if(!(i_loop_count & 0xffff)) \
fprintf(stdout, "\r iteration count: %22"PRI64d, i_loop_count); \
i_loop_count++; \
p_descriptor = dvbpsi_
Gen##fname##D
r(&s_decoded, 0); \
p_new_decoded = dvbpsi_
Decode##fname##D
r(p_descriptor);
p_descriptor = dvbpsi_
gen_##sname##_d
r(&s_decoded, 0); \
p_new_decoded = dvbpsi_
decode_##sname##_d
r(p_descriptor);
#define BOZO_START(name) \
fprintf(stdout, "\"%s\" descriptor check:\n", #name);
...
...
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