summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/pvrusb2-video.h
diff options
context:
space:
mode:
authorMike Isely <devnull@localhost>2005-11-27 23:01:16 +0000
committerMike Isely <devnull@localhost>2005-11-27 23:01:16 +0000
commit5eee74c9dab4a2cb88a52ae96fa90fe0d2658a1e (patch)
tree9b0c06c9e42360d79620f9f52b6475551337f2b9 /v4l_experimental/pvrusb2/pvrusb2-video.h
parent85af92b0d83f8f1de9fc774046b3c7e16fc14ac5 (diff)
downloadmediapointer-dvb-s2-5eee74c9dab4a2cb88a52ae96fa90fe0d2658a1e.tar.gz
mediapointer-dvb-s2-5eee74c9dab4a2cb88a52ae96fa90fe0d2658a1e.tar.bz2
Pull in changes from 20051126 pvrusb2 snapshot
From: Mike Isely <isely@pobox.com> - Rework various things to play nicer in native v4l environment Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-video.h')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-video.h40
1 files changed, 32 insertions, 8 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-video.h b/v4l_experimental/pvrusb2/pvrusb2-video.h
index 8c081ccd2..f08c3671d 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-video.h
+++ b/v4l_experimental/pvrusb2/pvrusb2-video.h
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-video.h,v 1.1 2005/11/14 13:31:24 mchehab Exp $
+ * $Id: pvrusb2-video.h,v 1.2 2005/11/27 23:01:16 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
@@ -33,14 +33,38 @@
*/
struct pvr2_hdw;
+struct pvr2_decoder;
+
+typedef int (*pvr2_decoder_func)(struct pvr2_decoder *);
+
+struct pvr2_decoder_func_table {
+ pvr2_decoder_func destroy_func;
+ pvr2_decoder_func set_norm_func;
+ pvr2_decoder_func set_input_func;
+ pvr2_decoder_func set_size_func;
+ pvr2_decoder_func set_audio_func;
+ pvr2_decoder_func set_bcsh_func;
+ pvr2_decoder_func is_tuned_func;
+ pvr2_decoder_func enable_func;
+ pvr2_decoder_func disable_func;
+};
+
+struct pvr2_decoder {
+ struct pvr2_hdw *hdw;
+ const struct pvr2_decoder_func_table *func_table;
+};
+
+struct pvr2_decoder *pvr2_decoder_create(struct pvr2_hdw *);
+void pvr2_decoder_destroy(struct pvr2_decoder *);
+int pvr2_decoder_set_norm(struct pvr2_decoder *);
+int pvr2_decoder_set_input(struct pvr2_decoder *);
+int pvr2_decoder_set_size(struct pvr2_decoder *);
+int pvr2_decoder_set_audio(struct pvr2_decoder *);
+int pvr2_decoder_set_bcsh(struct pvr2_decoder *);
+int pvr2_decoder_is_tuned(struct pvr2_decoder *);
+int pvr2_decoder_enable_output(struct pvr2_decoder *);
+int pvr2_decoder_disable_output(struct pvr2_decoder *);
-int pvr2_decoder_set_norm(struct pvr2_hdw *);
-int pvr2_decoder_set_input(struct pvr2_hdw *);
-int pvr2_decoder_set_size(struct pvr2_hdw *);
-int pvr2_decoder_set_audio(struct pvr2_hdw *);
-int pvr2_decoder_set_bcsh(struct pvr2_hdw *);
-int pvr2_decoder_is_tuned(struct pvr2_hdw *);
-int pvr2_decoder_enable_output(struct pvr2_hdw *,int);
#endif /* __PVRUSB2_VIDEO_H */