aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/videodev2.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2011-12-15 08:46:16 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-02-14 10:43:49 -0500
commit24c19a217e543b6b4a7715229f0e1fcf4bbd2659 (patch)
treeb3eab287a0b61ff3750ade822b5ac82ffb6c06c2 /include/linux/videodev2.h
parentda8ec560e3b4e25d73c64a9e08f9f90ebfbfbf7c (diff)
[media] v4l2-ctrls: add new controls for MPEG decoder devices
As discussed during the 2011 V4L-DVB workshop we want to create a proper V4L2 decoder API that replaces the DVBv5 API that has been used until now. This adds the four controls necessary to be able to switch ivtv over to this new API. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r--include/linux/videodev2.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index e4ba8d77196d..b739d7d6f7e7 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -1407,6 +1407,16 @@ enum v4l2_mpeg_audio_ac3_bitrate {
1407 V4L2_MPEG_AUDIO_AC3_BITRATE_576K = 17, 1407 V4L2_MPEG_AUDIO_AC3_BITRATE_576K = 17,
1408 V4L2_MPEG_AUDIO_AC3_BITRATE_640K = 18, 1408 V4L2_MPEG_AUDIO_AC3_BITRATE_640K = 18,
1409}; 1409};
1410#define V4L2_CID_MPEG_AUDIO_DEC_PLAYBACK (V4L2_CID_MPEG_BASE+112)
1411enum v4l2_mpeg_audio_dec_playback {
1412 V4L2_MPEG_AUDIO_DEC_PLAYBACK_AUTO = 0,
1413 V4L2_MPEG_AUDIO_DEC_PLAYBACK_STEREO = 1,
1414 V4L2_MPEG_AUDIO_DEC_PLAYBACK_LEFT = 2,
1415 V4L2_MPEG_AUDIO_DEC_PLAYBACK_RIGHT = 3,
1416 V4L2_MPEG_AUDIO_DEC_PLAYBACK_MONO = 4,
1417 V4L2_MPEG_AUDIO_DEC_PLAYBACK_SWAPPED_STEREO = 5,
1418};
1419#define V4L2_CID_MPEG_AUDIO_DEC_MULTILINGUAL_PLAYBACK (V4L2_CID_MPEG_BASE+113)
1410 1420
1411/* MPEG video controls specific to multiplexed streams */ 1421/* MPEG video controls specific to multiplexed streams */
1412#define V4L2_CID_MPEG_VIDEO_ENCODING (V4L2_CID_MPEG_BASE+200) 1422#define V4L2_CID_MPEG_VIDEO_ENCODING (V4L2_CID_MPEG_BASE+200)
@@ -1457,6 +1467,9 @@ enum v4l2_mpeg_video_multi_slice_mode {
1457 V4L2_MPEG_VIDEO_MULTI_SICE_MODE_MAX_BYTES = 2, 1467 V4L2_MPEG_VIDEO_MULTI_SICE_MODE_MAX_BYTES = 2,
1458}; 1468};
1459#define V4L2_CID_MPEG_VIDEO_VBV_SIZE (V4L2_CID_MPEG_BASE+222) 1469#define V4L2_CID_MPEG_VIDEO_VBV_SIZE (V4L2_CID_MPEG_BASE+222)
1470#define V4L2_CID_MPEG_VIDEO_DEC_PTS (V4L2_CID_MPEG_BASE+223)
1471#define V4L2_CID_MPEG_VIDEO_DEC_FRAME (V4L2_CID_MPEG_BASE+224)
1472
1460#define V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP (V4L2_CID_MPEG_BASE+300) 1473#define V4L2_CID_MPEG_VIDEO_H263_I_FRAME_QP (V4L2_CID_MPEG_BASE+300)
1461#define V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP (V4L2_CID_MPEG_BASE+301) 1474#define V4L2_CID_MPEG_VIDEO_H263_P_FRAME_QP (V4L2_CID_MPEG_BASE+301)
1462#define V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP (V4L2_CID_MPEG_BASE+302) 1475#define V4L2_CID_MPEG_VIDEO_H263_B_FRAME_QP (V4L2_CID_MPEG_BASE+302)