1 /* |
|
2 * GStreamer |
|
3 * Copyright (C) 2008 Nokia Corporation <multimedia@maemo.org> |
|
4 * |
|
5 * This library is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU Library General Public |
|
7 * License as published by the Free Software Foundation; either |
|
8 * version 2 of the License, or (at your option) any later version. |
|
9 * |
|
10 * This library is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 * Library General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU Library General Public |
|
16 * License along with this library; if not, write to the |
|
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
18 * Boston, MA 02111-1307, USA. |
|
19 */ |
|
20 |
|
21 #ifndef __CAMERABIN_IMAGE_H__ |
|
22 #define __CAMERABIN_IMAGE_H__ |
|
23 |
|
24 #include <gst/gstbin.h> |
|
25 |
|
26 G_BEGIN_DECLS |
|
27 |
|
28 #define GST_TYPE_CAMERABIN_IMAGE (gst_camerabin_image_get_type()) |
|
29 #define GST_CAMERABIN_IMAGE_CAST(obj) ((GstCameraBinImage*)(obj)) |
|
30 #define GST_CAMERABIN_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CAMERABIN_IMAGE,GstCameraBinImage)) |
|
31 #define GST_CAMERABIN_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAMERABIN_IMAGE,GstCameraBinImageClass)) |
|
32 #define GST_IS_CAMERABIN_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CAMERABIN_IMAGE)) |
|
33 #define GST_IS_CAMERABIN_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CAMERABIN_IMAGE)) |
|
34 |
|
35 /** |
|
36 * GstCameraBinImage: |
|
37 * |
|
38 * The opaque #GstCameraBinImage structure. |
|
39 */ |
|
40 |
|
41 typedef struct _GstCameraBinImage GstCameraBinImage; |
|
42 typedef struct _GstCameraBinImageClass GstCameraBinImageClass; |
|
43 |
|
44 struct _GstCameraBinImage |
|
45 { |
|
46 GstBin parent; |
|
47 GString *filename; |
|
48 |
|
49 /* Ghost pads of image bin */ |
|
50 GstPad *sinkpad; |
|
51 GstPad *srcpad; |
|
52 |
|
53 /* Tee src pad leading to image encoder */ |
|
54 GstPad *pad_tee_enc; |
|
55 /* Tee src pad leading to view finder */ |
|
56 GstPad *pad_tee_view; |
|
57 |
|
58 GstElement *post; |
|
59 |
|
60 GstElement *tee; |
|
61 GstElement *enc; |
|
62 GstElement *user_enc; |
|
63 GstElement *meta_mux; |
|
64 GstElement *sink; |
|
65 GstElement *queue; |
|
66 |
|
67 gboolean elements_created; |
|
68 }; |
|
69 |
|
70 struct _GstCameraBinImageClass |
|
71 { |
|
72 GstBinClass parent_class; |
|
73 }; |
|
74 |
|
75 GType gst_camerabin_image_get_type (void); |
|
76 |
|
77 void |
|
78 gst_camerabin_image_set_encoder (GstCameraBinImage * img, GstElement * encoder); |
|
79 |
|
80 void |
|
81 gst_camerabin_image_set_postproc (GstCameraBinImage * img, |
|
82 GstElement * postproc); |
|
83 |
|
84 GstElement *gst_camerabin_image_get_encoder (GstCameraBinImage * img); |
|
85 |
|
86 GstElement *gst_camerabin_image_get_postproc (GstCameraBinImage * img); |
|
87 |
|
88 G_END_DECLS |
|
89 |
|
90 #endif /* #ifndef __CAMERABIN_IMAGE_H__ */ |
|