/* enumerated data types */ /* Enumerated data type to give id to each device per channel */ enum vpif_channel_id {
VPIF_CHANNEL2_VIDEO = 0, /* Channel2 Video */
VPIF_CHANNEL3_VIDEO, /* Channel3 Video */
};
/* structures */
struct video_obj { enum v4l2_field buf_field;
u32 latest_only; /* indicate whether to return
* most recent displayed frame only */
v4l2_std_id stdid; /* Currently selected or default
* standard */ struct v4l2_dv_timings dv_timings;
};
struct common_obj { struct vpif_disp_buffer *cur_frm; /* Pointer pointing to current
* vb2_buffer */ struct vpif_disp_buffer *next_frm; /* Pointer pointing to next
* vb2_buffer */ struct v4l2_format fmt; /* Used to store the format */ struct vb2_queue buffer_queue; /* Buffer queue used in vb2 */
struct list_head dma_queue; /* Queue of filled frames */
spinlock_t irqlock; /* Used for video buffer
* handling */
/* channel specific parameters */ struct mutex lock; /* lock used to access this
* structure */
u32 ytop_off; /* offset of Y top from the
* starting of the buffer */
u32 ybtm_off; /* offset of Y bottom from the
* starting of the buffer */
u32 ctop_off; /* offset of C top from the
* starting of the buffer */
u32 cbtm_off; /* offset of C bottom from the
* starting of the buffer */ /* Function pointer to set the addresses */ void (*set_addr)(unsignedlong, unsignedlong, unsignedlong, unsignedlong);
u32 height;
u32 width;
};
struct channel_obj { /* V4l2 specific parameters */ struct video_device video_dev; /* Identifies video device for
* this channel */
u32 field_id; /* Indicates id of the field
* which is being displayed */
u8 initialized; /* flag to indicate whether
* encoder is initialized */
u32 output_idx; /* Current output index */ struct v4l2_subdev *sd; /* Current output subdev(may be NULL) */
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.