Go to the documentation of this file.
12 #ifndef _MEDIA_VIDEOBUF2_CORE_H
13 #define _MEDIA_VIDEOBUF2_CORE_H
17 #include <linux/poll.h>
18 #include <linux/videodev2.h>
61 void *(*alloc)(
void *alloc_ctx,
unsigned long size);
64 void *(*get_userptr)(
void *alloc_ctx,
unsigned long vaddr,
68 void *(*vaddr)(
void *buf_priv);
69 void *(*cookie)(
void *buf_priv);
230 unsigned int *num_buffers,
unsigned int *
num_planes,
231 unsigned int sizes[],
void *alloc_ctxs[]);
343 unsigned long flags);
347 loff_t *ppos,
int nonblock);
349 loff_t *ppos,
int nonblock);
355 static inline bool vb2_is_streaming(
struct vb2_queue *
q)
366 static inline bool vb2_is_busy(
struct vb2_queue *
q)
375 static inline void *vb2_get_drv_priv(
struct vb2_queue *q)
386 static inline void vb2_set_plane_payload(
struct vb2_buffer *vb,
387 unsigned int plane_no,
unsigned long size)
399 static inline unsigned long vb2_get_plane_payload(
struct vb2_buffer *vb,
400 unsigned int plane_no)
412 static inline unsigned long
413 vb2_plane_size(
struct vb2_buffer *vb,
unsigned int plane_no)
447 size_t count, loff_t *ppos);
449 size_t count, loff_t *ppos);
453 unsigned long len,
unsigned long pgoff,
unsigned long flags);