Commit 95b029f0 authored by Jean-Paul Saman's avatar Jean-Paul Saman

test_dr: fix test

parent d2a81c20
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<integer name="i_frame_rate_code" bitcount="4" default="0" /> <integer name="i_frame_rate_code" bitcount="4" default="0" />
<insert> <insert>
<begin> <begin>
s_decoded.b_mpeg2 = 0;</begin> s_decoded.b_mpeg2 = false;</begin>
</insert> </insert>
<boolean name="b_constrained_parameter" default="0" /> <boolean name="b_constrained_parameter" default="0" />
<boolean name="b_still_picture" default="0" /> <boolean name="b_still_picture" default="0" />
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<integer name="i_frame_rate_code" bitcount="4" default="0" /> <integer name="i_frame_rate_code" bitcount="4" default="0" />
<insert> <insert>
<begin> <begin>
s_decoded.b_mpeg2 = 12;</begin> s_decoded.b_mpeg2 = true;</begin>
</insert> </insert>
<boolean name="b_constrained_parameter" default="0" /> <boolean name="b_constrained_parameter" default="0" />
<boolean name="b_still_picture" default="0" /> <boolean name="b_still_picture" default="0" />
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include &lt;stdint.h&gt; #include &lt;stdint.h&gt;
#endif #endif
#include &lt;sys/types.h&gt;
/* the libdvbpsi distribution defines DVBPSI_DIST */ /* the libdvbpsi distribution defines DVBPSI_DIST */
#ifdef DVBPSI_DIST #ifdef DVBPSI_DIST
#include "../src/dvbpsi.h" #include "../src/dvbpsi.h"
......
...@@ -39,7 +39,7 @@ static int main_vstream_1(void) ...@@ -39,7 +39,7 @@ static int main_vstream_1(void)
/* check b_multiple_frame_rate */ /* check b_multiple_frame_rate */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_begin_boolean(b_multiple_frame_rate) BOZO_begin_boolean(b_multiple_frame_rate)
...@@ -51,7 +51,7 @@ static int main_vstream_1(void) ...@@ -51,7 +51,7 @@ static int main_vstream_1(void)
/* check i_frame_rate_code */ /* check i_frame_rate_code */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_begin_integer(i_frame_rate_code, 4) BOZO_begin_integer(i_frame_rate_code, 4)
...@@ -63,7 +63,7 @@ static int main_vstream_1(void) ...@@ -63,7 +63,7 @@ static int main_vstream_1(void)
/* check b_constrained_parameter */ /* check b_constrained_parameter */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_begin_boolean(b_constrained_parameter) BOZO_begin_boolean(b_constrained_parameter)
...@@ -75,7 +75,7 @@ static int main_vstream_1(void) ...@@ -75,7 +75,7 @@ static int main_vstream_1(void)
/* check b_still_picture */ /* check b_still_picture */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_begin_boolean(b_still_picture) BOZO_begin_boolean(b_still_picture)
...@@ -100,7 +100,7 @@ static int main_vstream_2(void) ...@@ -100,7 +100,7 @@ static int main_vstream_2(void)
/* check b_multiple_frame_rate */ /* check b_multiple_frame_rate */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_init_integer(i_profile_level_indication, 0); BOZO_init_integer(i_profile_level_indication, 0);
...@@ -115,7 +115,7 @@ static int main_vstream_2(void) ...@@ -115,7 +115,7 @@ static int main_vstream_2(void)
/* check i_frame_rate_code */ /* check i_frame_rate_code */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_init_integer(i_profile_level_indication, 0); BOZO_init_integer(i_profile_level_indication, 0);
...@@ -130,7 +130,7 @@ static int main_vstream_2(void) ...@@ -130,7 +130,7 @@ static int main_vstream_2(void)
/* check b_constrained_parameter */ /* check b_constrained_parameter */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_init_integer(i_profile_level_indication, 0); BOZO_init_integer(i_profile_level_indication, 0);
...@@ -145,7 +145,7 @@ static int main_vstream_2(void) ...@@ -145,7 +145,7 @@ static int main_vstream_2(void)
/* check b_still_picture */ /* check b_still_picture */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_init_integer(i_profile_level_indication, 0); BOZO_init_integer(i_profile_level_indication, 0);
...@@ -160,7 +160,7 @@ static int main_vstream_2(void) ...@@ -160,7 +160,7 @@ static int main_vstream_2(void)
/* check i_profile_level_indication */ /* check i_profile_level_indication */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_init_integer(i_profile_level_indication, 0); BOZO_init_integer(i_profile_level_indication, 0);
...@@ -175,7 +175,7 @@ static int main_vstream_2(void) ...@@ -175,7 +175,7 @@ static int main_vstream_2(void)
/* check i_chroma_format */ /* check i_chroma_format */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_init_integer(i_profile_level_indication, 0); BOZO_init_integer(i_profile_level_indication, 0);
...@@ -190,7 +190,7 @@ static int main_vstream_2(void) ...@@ -190,7 +190,7 @@ static int main_vstream_2(void)
/* check b_frame_rate_extension */ /* check b_frame_rate_extension */
BOZO_init_boolean(b_multiple_frame_rate, 0); BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 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_constrained_parameter, 0);
BOZO_init_boolean(b_still_picture, 0); BOZO_init_boolean(b_still_picture, 0);
BOZO_init_integer(i_profile_level_indication, 0); BOZO_init_integer(i_profile_level_indication, 0);
......
...@@ -97,14 +97,14 @@ ...@@ -97,14 +97,14 @@
{ \ { \
fprintf(stdout, " \"%s\" boolean check\n", #name); \ fprintf(stdout, " \"%s\" boolean check\n", #name); \
i_loop_count = 0; \ i_loop_count = 0; \
s_decoded.name = 0; \ s_decoded.name = false; \
do \ do \
{ {
#define BOZO_end_boolean(name) \ #define BOZO_end_boolean(name) \
s_decoded.name += 12; \ s_decoded.name ^= true; \
} while(!i_err && (s_decoded.name <= 12)); \ } while(!i_err && (s_decoded.name)); \
fprintf(stdout, "\r iteration count: %22"PRI64d, i_loop_count); \ fprintf(stdout, "\r iteration count: %22"PRI64d, i_loop_count); \
if(i_err) \ if(i_err) \
fprintf(stdout, " FAILED !!!\n"); \ fprintf(stdout, " FAILED !!!\n"); \
else \ else \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment