/* TODO: Print helpers * I could use dev_xxx, pr_xxx, v4l2_xxx or printk. * However, there isn't a solid consensus on which * new drivers should use. *
*/ #ifdef DEBUG #define stk1160_dbg(fmt, args...) \
printk(KERN_DEBUG "stk1160: " fmt, ## args) #else #define stk1160_dbg(fmt, args...) #endif
/* Buffer for one video frame */ struct stk1160_buffer { /* common v4l buffer stuff -- must be first */ struct vb2_v4l2_buffer vb; struct list_head list;
void *mem; unsignedint length; /* buffer length */ unsignedint bytesused; /* bytes written */ int odd; /* current oddity */
/* * Since we interlace two fields per frame, * this is different from bytesused.
*/ unsignedint pos; /* current pos inside buffer */
};
/* isoc control struct */ struct list_head avail_bufs;
/* video capture */ struct vb2_queue vb_vidq;
/* max packet size of isoc transaction */ int max_pkt_size; /* array of wMaxPacketSize */ unsignedint *alt_max_pkt_size; /* alternate */ int alt; /* Number of alternative settings */ int num_alt;
struct stk1160_isoc_ctl isoc_ctl;
/* frame properties */ int width; /* current frame width */ int height; /* current frame height */ unsignedint ctl_input; /* selected input */
v4l2_std_id norm; /* current norm */ struct stk1160_fmt *fmt; /* selected format */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.