diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-18 13:40:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:05:22 -0400 |
commit | 5d1a9ae6d9d7fc14b2259cd550eb87364a21190a (patch) | |
tree | b55c57026f69fc127508a30859edebde87713f1e /include | |
parent | 9cb2318b885d2039eeb3eb5394fa215046be058f (diff) |
V4L/DVB (4191): Add CX2341X MPEG encoder module.
Adds the cx2341x.c module that handles the programming of the Conexant
cx23415/6 MPEG encoder chip used by cx88-blackbird, pvrusb2 and ivtv.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/cx2341x.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/include/media/cx2341x.h b/include/media/cx2341x.h index 7e7dcc0728d0..81ebead2d93c 100644 --- a/include/media/cx2341x.h +++ b/include/media/cx2341x.h | |||
@@ -19,6 +19,66 @@ | |||
19 | #ifndef CX2341X_H | 19 | #ifndef CX2341X_H |
20 | #define CX2341X_H | 20 | #define CX2341X_H |
21 | 21 | ||
22 | struct cx2341x_mpeg_params { | ||
23 | /* misc */ | ||
24 | u16 width; | ||
25 | u16 height; | ||
26 | u16 is_50hz; | ||
27 | |||
28 | /* stream */ | ||
29 | enum v4l2_mpeg_stream_type stream_type; | ||
30 | |||
31 | /* audio */ | ||
32 | enum v4l2_mpeg_audio_sampling_freq audio_sampling_freq; | ||
33 | enum v4l2_mpeg_audio_encoding audio_encoding; | ||
34 | enum v4l2_mpeg_audio_l2_bitrate audio_l2_bitrate; | ||
35 | enum v4l2_mpeg_audio_mode audio_mode; | ||
36 | enum v4l2_mpeg_audio_mode_extension audio_mode_extension; | ||
37 | enum v4l2_mpeg_audio_emphasis audio_emphasis; | ||
38 | enum v4l2_mpeg_audio_crc audio_crc; | ||
39 | u8 audio_properties; | ||
40 | |||
41 | /* video */ | ||
42 | enum v4l2_mpeg_video_encoding video_encoding; | ||
43 | enum v4l2_mpeg_video_aspect video_aspect; | ||
44 | u16 video_b_frames; | ||
45 | u16 video_gop_size; | ||
46 | u16 video_gop_closure; | ||
47 | u16 video_pulldown; | ||
48 | enum v4l2_mpeg_video_bitrate_mode video_bitrate_mode; | ||
49 | u32 video_bitrate; | ||
50 | u32 video_bitrate_peak; | ||
51 | u16 video_temporal_decimation; | ||
52 | |||
53 | /* encoding filters */ | ||
54 | enum v4l2_mpeg_cx2341x_video_spatial_filter_mode video_spatial_filter_mode; | ||
55 | u16 video_spatial_filter; | ||
56 | enum v4l2_mpeg_cx2341x_video_luma_spatial_filter_type video_luma_spatial_filter_type; | ||
57 | enum v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type video_chroma_spatial_filter_type; | ||
58 | enum v4l2_mpeg_cx2341x_video_temporal_filter_mode video_temporal_filter_mode; | ||
59 | u16 video_temporal_filter; | ||
60 | enum v4l2_mpeg_cx2341x_video_median_filter_type video_median_filter_type; | ||
61 | u16 video_luma_median_filter_top; | ||
62 | u16 video_luma_median_filter_bottom; | ||
63 | u16 video_chroma_median_filter_top; | ||
64 | u16 video_chroma_median_filter_bottom; | ||
65 | }; | ||
66 | |||
67 | #define CX2341X_MBOX_MAX_DATA 16 | ||
68 | |||
69 | typedef int (*cx2341x_mbox_func)(void *priv, int cmd, int in, int out, | ||
70 | u32 data[CX2341X_MBOX_MAX_DATA]); | ||
71 | int cx2341x_update(void *priv, cx2341x_mbox_func func, | ||
72 | const struct cx2341x_mpeg_params *old, | ||
73 | const struct cx2341x_mpeg_params *new); | ||
74 | int cx2341x_ctrl_query(struct cx2341x_mpeg_params *params, | ||
75 | struct v4l2_queryctrl *qctrl); | ||
76 | const char **cx2341x_ctrl_get_menu(u32 id); | ||
77 | int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params, | ||
78 | struct v4l2_ext_controls *ctrls, int cmd); | ||
79 | void cx2341x_fill_defaults(struct cx2341x_mpeg_params *p); | ||
80 | void cx2341x_log_status(struct cx2341x_mpeg_params *p, int cardid); | ||
81 | |||
22 | /* Firmware names */ | 82 | /* Firmware names */ |
23 | #define CX2341X_FIRM_ENC_FILENAME "v4l-cx2341x-enc.fw" | 83 | #define CX2341X_FIRM_ENC_FILENAME "v4l-cx2341x-enc.fw" |
24 | /* Decoder firmware for the cx23415 only */ | 84 | /* Decoder firmware for the cx23415 only */ |