blob: f48a981dc826981ff7377cc175d05129bde5ca06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/*******************************************************
*
* Author: Hirokazu Kato
*
* kato@sys.im.hiroshima-cu.ac.jp
*
* Revision: 1.1
* Date: 2002/01/01
*
*******************************************************/
#ifndef AR_VIDEO_LINUX_DV_H
#define AR_VIDEO_LINUX_DV_H
#ifdef __cplusplus
extern "C" {
#endif
#include <AR/config.h>
#include <AR/ar.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <libraw1394/raw1394.h>
#include <libdv/dv.h>
typedef struct {
int size;
ARUint8 *buff_in;
ARUint8 *buff_wait;
ARUint8 *buff_out;
int fill_size_in;
int fill_size_wait;
int fill_size_out;
int read_size;
pthread_mutex_t mutex;
int init;
} AR2VideoBufferT;
typedef struct {
int mode;
int debug;
int status;
raw1394handle_t handle;
pthread_t capture;
AR2VideoBufferT *buffer;
int packet_num;
dv_decoder_t *dv_decoder;
ARUint8 *image;
} AR2VideoParamT;
#ifdef __cplusplus
}
#endif
#endif
|