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