summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil2019-05-29 08:45:59 +0200
committerMauro Carvalho Chehab2019-06-05 14:50:13 +0200
commitef732d5e2813ff5ef30cdb280b2d133e74213555 (patch)
treef264fc4a5ba5d4b1ec51e2da9d78a2c2991692ab /include/media
parentmedia: staging/media: set device_caps in struct video_device (diff)
downloadkernel-qcow2-linux-ef732d5e2813ff5ef30cdb280b2d133e74213555.tar.gz
kernel-qcow2-linux-ef732d5e2813ff5ef30cdb280b2d133e74213555.tar.xz
kernel-qcow2-linux-ef732d5e2813ff5ef30cdb280b2d133e74213555.zip
media: v4l2-mem2mem: add try_en/decoder_cmd ioctl helpers
Most if not all codecs will need to implement these ioctls and it is expected to be the same for all codecs. So add this to the core v4l2-mem2mem framework so that this code can easily be reused. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-mem2mem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/v4l2-mem2mem.h b/include/media/v4l2-mem2mem.h
index bb3e63d6bd1a..2e0c989266a7 100644
--- a/include/media/v4l2-mem2mem.h
+++ b/include/media/v4l2-mem2mem.h
@@ -672,6 +672,10 @@ int v4l2_m2m_ioctl_streamon(struct file *file, void *fh,
enum v4l2_buf_type type);
int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh,
enum v4l2_buf_type type);
+int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh,
+ struct v4l2_encoder_cmd *ec);
+int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh,
+ struct v4l2_decoder_cmd *dc);
int v4l2_m2m_fop_mmap(struct file *file, struct vm_area_struct *vma);
__poll_t v4l2_m2m_fop_poll(struct file *file, poll_table *wait);