#define PWC_UNCOMPRESS_H
#include <linux/config.h>
+#include <linux/linkage.h>
#include <linux/list.h>
-#include "pwc.h"
+#include "pwc-ioctl.h"
+
+/* from pwc-dec.h */
+#define PWCX_FLAG_PLANAR 0x0001
+/* */
+
#ifdef __cplusplus
extern "C" {
int type; /* type of camera (645, 680, etc) */
int table_size; /* memory needed */
- void (* init)(int release, void *buffer, void *table); /* Initialization routine; should be called after each set_video_mode */
+ void (* init)(int type, int release, void *buffer, void *table); /* Initialization routine; should be called after each set_video_mode */
void (* exit)(void); /* Cleanup routine */
- void (* decompress)(struct pwc_coord *image, struct pwc_coord *view, struct pwc_coord *offset,
- void *src, void *dst, int planar,
+ void (* decompress)(struct pwc_coord *image, struct pwc_coord *view,
+ struct pwc_coord *offset,
+ void *src, void *dst, int flags,
void *table, int bandlength);
void (* lock)(void); /* make sure module cannot be unloaded */
void (* unlock)(void); /* release lock on module */