From 8cbb9ef772e9fddca0dbb45cc165f6c85a4bd2a0 Mon Sep 17 00:00:00 2001 From: xliska Date: Thu, 10 Jan 2008 11:07:42 +0000 Subject: [PATCH] make tests fixed again --- ultragrid/test/run_tests.c | 15 +++++++++++++-- ultragrid/test/test_host.h | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 ultragrid/test/test_host.h diff --git a/ultragrid/test/run_tests.c b/ultragrid/test/run_tests.c index 6a08aa396..0de71961f 100644 --- a/ultragrid/test/run_tests.c +++ b/ultragrid/test/run_tests.c @@ -32,14 +32,15 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Revision: 1.1 $ - * $Date: 2007/11/08 09:48:59 $ + * $Revision: 1.2 $ + * $Date: 2008/01/10 11:07:42 $ */ #include "config.h" #include "config_unix.h" #include "config_win32.h" #include "debug.h" +#include "test_host.h" #include "test_aes.h" #include "test_audio_hw.h" #include "test_bitstream.h" @@ -62,6 +63,16 @@ uint32_t RTT; /* FIXME: will be removed once the global in main.c is removed */ +/* These globals should be fixed in the future as well */ +uint32_t hd_size_x=1920; +uint32_t hd_size_y=1080; +uint32_t hd_color_bpp=3; +uint32_t bitdepth = 10; +uint32_t progressive = 0; +uint32_t hd_video_mode; + +long packet_rate = 13600; + int main() { diff --git a/ultragrid/test/test_host.h b/ultragrid/test/test_host.h new file mode 100644 index 000000000..59e0e77ca --- /dev/null +++ b/ultragrid/test/test_host.h @@ -0,0 +1,15 @@ +#ifndef __host_h +#define __host_h + +extern unsigned int hd_size_x; +extern unsigned int hd_size_y; +extern unsigned int hd_color_bpp; + +extern unsigned int hd_video_mode; + +extern unsigned int bitdepth; + +extern unsigned int progressive; + +#endif +