UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
test
test_video_display.c
Go to the documentation of this file.
1
/*
2
* FILE: test_video_display.c
3
* AUTHORS: Colin Perkins
4
*
5
* Test video hardware probing routines
6
*
7
* Copyright (c) 2003-2004 University of Southern California
8
* All rights reserved.
9
*
10
* Redistribution and use in source and binary forms, with or without
11
* modification, is permitted provided that the following conditions
12
* are met:
13
* 1. Redistributions of source code must retain the above copyright
14
* notice, this list of conditions and the following disclaimer.
15
* 2. Redistributions in binary form must reproduce the above copyright
16
* notice, this list of conditions and the following disclaimer in the
17
* documentation and/or other materials provided with the distribution.
18
* 3. All advertising materials mentioning features or use of this software
19
* must display the following acknowledgement:
20
* This product includes software developed by the University of
21
* Southern California Information Sciences Institute
22
* 4. Neither the name of the University nor of the Institute may be used
23
* to endorse or promote products derived from this software without
24
* specific prior written permission.
25
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
26
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
29
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35
* SUCH DAMAGE.
36
*/
37
38
#include "config.h"
39
#include "
config_unix.h
"
40
#include "
config_win32.h
"
41
#include "
debug.h
"
42
#include "memory.h"
43
#include "
video_display.h
"
44
#include "
test_video_display.h
"
45
46
int
test_video_display
(
void
)
47
{
48
struct
display
*d;
49
50
printf
51
(
"Testing video hardware detection ......................................... "
);
52
if
(
initialize_video_display
(NULL,
"none"
,
""
, 0, NULL, &d) != 0) {
53
printf(
"FAIL\n"
);
54
printf(
" Cannot intiialize dummy device\n"
);
55
return
-1;
56
}
57
printf(
"Ok\n"
);
58
display_done
(d);
59
60
list_video_display_devices
(
false
);
61
62
return
0;
63
}
config_unix.h
config_win32.h
debug.h
display_done
void display_done(struct display *d)
This function performs cleanup after done.
Definition
video_display.c:184
initialize_video_display
int initialize_video_display(struct module *parent, const char *requested_display, const char *fmt, unsigned int flags, const char *postprocess, struct display **out)
Initializes video display.
Definition
video_display.c:124
list_video_display_devices
void list_video_display_devices(bool full)
Definition
video_display.c:100
display
This struct represents initialized video display state.
Definition
video_display.c:82
test_video_display
int test_video_display(void)
Definition
test_video_display.c:46
test_video_display.h
video_display.h
Generated on Wed Sep 25 2024 14:27:25 for UltraGrid by
1.12.0