diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-02-18 12:05:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-01 10:09:46 -0500 |
commit | db6eb5b334a0f095290b99096f68ff24ab6df1aa (patch) | |
tree | 234de6644e71d70f3544d32532d6aa026eb8ad75 /include/linux | |
parent | 1d1370a48ca285ebe197ecd3197a8d5f161bc291 (diff) |
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 'include/linux')
-rw-r--r-- | include/linux/videodev2.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index e3ab047f90ef..42cfdd2d50db 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -1193,6 +1193,35 @@ struct v4l2_audioout | |||
1193 | }; | 1193 | }; |
1194 | 1194 | ||
1195 | /* | 1195 | /* |
1196 | * M P E G I N D E X | ||
1197 | * | ||
1198 | * NOTE: EXPERIMENTAL API | ||
1199 | */ | ||
1200 | #if 1 | ||
1201 | #define V4L2_ENC_IDX_FRAME_I (0) | ||
1202 | #define V4L2_ENC_IDX_FRAME_P (1) | ||
1203 | #define V4L2_ENC_IDX_FRAME_B (2) | ||
1204 | #define V4L2_ENC_IDX_FRAME_MASK (0xf) | ||
1205 | |||
1206 | struct v4l2_enc_idx_entry { | ||
1207 | __u64 offset; | ||
1208 | __u64 pts; | ||
1209 | __u32 length; | ||
1210 | __u32 flags; | ||
1211 | __u32 reserved[2]; | ||
1212 | }; | ||
1213 | |||
1214 | #define V4L2_ENC_IDX_ENTRIES (64) | ||
1215 | struct v4l2_enc_idx { | ||
1216 | __u32 entries; | ||
1217 | __u32 entries_cap; | ||
1218 | __u32 reserved[4]; | ||
1219 | struct v4l2_enc_idx_entry entry[V4L2_ENC_IDX_ENTRIES]; | ||
1220 | }; | ||
1221 | #endif | ||
1222 | |||
1223 | |||
1224 | /* | ||
1196 | * D A T A S E R V I C E S ( V B I ) | 1225 | * D A T A S E R V I C E S ( V B I ) |
1197 | * | 1226 | * |
1198 | * Data services API by Michael Schimek | 1227 | * Data services API by Michael Schimek |
@@ -1385,6 +1414,7 @@ struct v4l2_register { | |||
1385 | #if 1 | 1414 | #if 1 |
1386 | #define VIDIOC_ENUM_FRAMESIZES _IOWR ('V', 74, struct v4l2_frmsizeenum) | 1415 | #define VIDIOC_ENUM_FRAMESIZES _IOWR ('V', 74, struct v4l2_frmsizeenum) |
1387 | #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR ('V', 75, struct v4l2_frmivalenum) | 1416 | #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR ('V', 75, struct v4l2_frmivalenum) |
1417 | #define VIDIOC_G_ENC_INDEX _IOR ('V', 76, struct v4l2_enc_idx) | ||
1388 | #endif | 1418 | #endif |
1389 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ | 1419 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ |
1390 | #define VIDIOC_DBG_S_REGISTER _IOW ('d', 100, struct v4l2_register) | 1420 | #define VIDIOC_DBG_S_REGISTER _IOW ('d', 100, struct v4l2_register) |