Lines Matching defs:pwc_device
163 struct pwc_device struct
165 struct video_device *vdev;
168 struct usb_device *udev;
170 int type; /* type of cam (645, 646, 675, 680, 690, 720, 730, 740, 750) */
171 int release; /* release number */
172 int features; /* feature bits */
173 char serial[30]; /* serial number (string) */
174 int error_status; /* set when something goes wrong with the cam (unplugged, USB errors) */
175 int usb_init; /* set when the cam has been initialized over USB */
178 int vopen; /* flag */
179 int vendpoint; /* video isoc endpoint */
180 int vcinterface; /* video control interface */
181 int valternate; /* alternate interface needed */
182 int vframes, vsize; /* frames-per-second & size (see PSZ_*) */
183 int pixfmt; /* pixelformat: V4L2_PIX_FMT_YUV420 or raw: _PWC1, _PWC2 */
184 int vframe_count; /* received frames */
185 int vframes_dumped; /* counter for dumped frames */
186 int vframes_error; /* frames received in error */
187 int vmax_packet_size; /* USB maxpacket size */
188 int vlast_packet_size; /* for frame synchronisation */
189 int visoc_errors; /* number of contiguous ISOC errors */
190 int vcompression; /* desired compression factor */
191 int vbandlength; /* compressed band length; 0 is uncompressed */
192 char vsnapshot; /* snapshot mode */
193 char vsync; /* used by isoc handler */
194 char vmirror; /* for ToUCaM series */
195 char unplugged;
197 int cmd_len;
198 unsigned char cmd_buf[13];
211 struct pwc_iso_buf sbuf[MAX_ISO_BUFS];
212 char iso_init;
215 struct pwc_frame_buf *fbuf; /* all frames */
216 struct pwc_frame_buf *empty_frames, *empty_frames_tail; /* all empty frames */
217 struct pwc_frame_buf *full_frames, *full_frames_tail; /* all filled frames */
218 struct pwc_frame_buf *fill_frame; /* frame currently being filled */
219 struct pwc_frame_buf *read_frame; /* frame currently read by user process */
220 int frame_header_size, frame_trailer_size;
221 int frame_size;
222 int frame_total_size; /* including header & trailer */
223 int drop_frames;
226 void *decompress_data; /* private data for decompression engine */
234 int image_mask; /* bitmask of supported sizes */
235 struct pwc_coord view_min, view_max; /* minimum and maximum viewable sizes */
236 struct pwc_coord abs_max; /* maximum supported size with compression */
237 struct pwc_coord image, view; /* image and viewport size */
238 struct pwc_coord offset; /* offset within the viewport */
240 void *image_data; /* total buffer, which is subdivided into ... */
241 struct pwc_imgbuf images[MAX_IMAGES];/* ...several images... */
242 int fill_image; /* ...which are rotated. */
243 int len_per_image; /* length per image */
244 …mage_read_pos; /* In case we read data in pieces, keep track of were we are in the imagebuffer */
245 int image_used[MAX_IMAGES]; /* For MCAPTURE and SYNC */
247 struct mutex modlock; /* to prevent races in video_open(), etc */
248 spinlock_t ptrlock; /* for manipulating the buffer pointers */
251 struct pwc_mpt_range angle_range;
252 int pan_angle; /* in degrees * 100 */
253 int tilt_angle; /* absolute angle; 0,0 is home position */
254 …ot_button_status; /* set to 1 when the user push the button, reset to 0 when this value is read */
278 int pwc_handle_frame(struct pwc_device *pdev); argument