aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/media/cx2341x.h60
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
22struct 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
69typedef int (*cx2341x_mbox_func)(void *priv, int cmd, int in, int out,
70 u32 data[CX2341X_MBOX_MAX_DATA]);
71int cx2341x_update(void *priv, cx2341x_mbox_func func,
72 const struct cx2341x_mpeg_params *old,
73 const struct cx2341x_mpeg_params *new);
74int cx2341x_ctrl_query(struct cx2341x_mpeg_params *params,
75 struct v4l2_queryctrl *qctrl);
76const char **cx2341x_ctrl_get_menu(u32 id);
77int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params,
78 struct v4l2_ext_controls *ctrls, int cmd);
79void cx2341x_fill_defaults(struct cx2341x_mpeg_params *p);
80void 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 */