UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
test_video_capture.c
Go to the documentation of this file.
1/*
2 * FILE: test_video_capture.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 Computer Science
21 * Department at University College London
22 * 4. Neither the name of the University nor of the Department 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_capture.h"
45#include "test_video_capture.h"
46
48{
49 struct vidcap *state;
52
53 printf
54 ("Testing video capture .................................................... ");
56 printf("FAIL\n");
57 printf(" Cannot initialize NULL capture\n");
58 return -1;
59 }
60 printf("Ok\n");
62
64
65 return 0;
66}
void ** state
void list_video_capture_devices(bool full)
#define VIDCAP_INIT_OK
initialization successful
int initialize_video_capture(struct module *parent, struct vidcap_params *param, struct vidcap **state)
Initializes video capture.
This struct represents video capture state.
int test_video_capture(void)
void vidcap_params_free_struct(struct vidcap_params *buf)
struct vidcap_params * vidcap_params_allocate(void)
void vidcap_params_set_device(struct vidcap_params *params, const char *config)