diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-02-18 14:05:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-01 13:09:46 -0200 |
commit | db6eb5b334a0f095290b99096f68ff24ab6df1aa (patch) | |
tree | 234de6644e71d70f3544d32532d6aa026eb8ad75 /drivers/media/video/videodev.c | |
parent | 1d1370a48ca285ebe197ecd3197a8d5f161bc291 (diff) | |
download | op-kernel-dev-db6eb5b334a0f095290b99096f68ff24ab6df1aa.zip op-kernel-dev-db6eb5b334a0f095290b99096f68ff24ab6df1aa.tar.gz |
V4L/DVB (5270): Add VIDIOC_G_ENC_INDEX ioctl
The VIDIOC_G_ENC_INDEX ioctl can obtain the MPEG index from an MPEG
encoder.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videodev.c')
-rw-r--r-- | drivers/media/video/videodev.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index dc9b1ef..cd13e610 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c @@ -1342,6 +1342,18 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, ret=vfd->vidioc_s_jpegcomp(file, fh, p); break; } + case VIDIOC_G_ENC_INDEX: + { + struct v4l2_enc_idx *p=arg; + + if (!vfd->vidioc_g_enc_index) + break; + ret=vfd->vidioc_g_enc_index(file, fh, p); + if (!ret) + dbgarg (cmd, "entries=%d, entries_cap=%d\n", + p->entries,p->entries_cap); + break; + } case VIDIOC_G_PARM: { struct v4l2_streamparm *p=arg; |