*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
# include <caca0.h>
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#define GST_CACA_DEFAULT_SCREEN_WIDTH 80
-#define GST_CACA_DEFAULT_SCREEN_HEIGHT 25
-#define GST_CACA_DEFAULT_BPP 24
-#define GST_CACA_DEFAULT_RED_MASK GST_VIDEO_BYTE1_MASK_32_INT
-#define GST_CACA_DEFAULT_GREEN_MASK GST_VIDEO_BYTE2_MASK_32_INT
-#define GST_CACA_DEFAULT_BLUE_MASK GST_VIDEO_BYTE3_MASK_32_INT
-
-//#define GST_CACA_DEFAULT_RED_MASK R_MASK_32_REVERSE_INT
-//#define GST_CACA_DEFAULT_GREEN_MASK G_MASK_32_REVERSE_INT
-//#define GST_CACA_DEFAULT_BLUE_MASK B_MASK_32_REVERSE_INT
+G_BEGIN_DECLS
#define GST_TYPE_CACASINK \
(gst_cacasink_get_type())
struct _GstCACASink {
GstBaseSink parent;
- GstPad *sinkpad;
-
- gulong format;
- gint width, height;
+ GstVideoInfo info;
gint screen_width, screen_height;
- guint bpp;
+
guint dither;
gboolean antialiasing;
- guint red_mask, green_mask, blue_mask;
struct caca_bitmap *bitmap;
};
GType gst_cacasink_get_type(void);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
-#endif /* __GST_CACASINKE_H__ */
+#endif /* __GST_CACASINK_H__ */