use threaded capture by default

added double buffered capture
attempted to fix pixelformat negotation
This commit is contained in:
niels
2011-04-13 23:58:47 +02:00
parent 630cd10cea
commit cab87d71a4
3 changed files with 141 additions and 125 deletions

View File

@@ -37,6 +37,7 @@ typedef struct {
pthread_mutex_t mutex;
pthread_t thread;
pthread_attr_t attr;
pthread_cond_t cond;
} v4l2_thread_info;
void *v4l2open ( const char *file, const int input_channel, int host_fmt, int wid, int hei, float fps, char norm );