summaryrefslogtreecommitdiffstats
path: root/gst/mpeg2sub/gstmpeg2subt.h
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2007-08-27 14:33:59 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2007-08-27 14:33:59 +0000
commit077f84ac1f89770faf8b8af7c0856ec765906a89 (patch)
treef60c2a667bf656a2ad9a065752ac21ff37d31f21 /gst/mpeg2sub/gstmpeg2subt.h
parentb0d65aa59b993a3334e2f4428f8a429ae04cc894 (diff)
downloadgst-plugins-bad-077f84ac1f89770faf8b8af7c0856ec765906a89.tar.gz
gst-plugins-bad-077f84ac1f89770faf8b8af7c0856ec765906a89.tar.bz2
gst-plugins-bad-077f84ac1f89770faf8b8af7c0856ec765906a89.zip
dvdspu element donated by Fluendo. It implements a DVD Sub-Picture
Original commit message from CVS: * configure.ac: * gst/dvdspu/.cvsignore: * gst/dvdspu/Notes.txt: * gst/dvdspu/gstdvdspu-render.c: (dvdspu_recalc_palette), (dvdspu_update_palettes), (dvdspu_clear_comp_buffers), (dvdspu_get_nibble), (dvdspu_get_rle_code), (dvdspu_draw_rle_run), (rle_end_x), (dvdspu_render_line), (dvdspu_update_chgcol), (dvdspu_render_line_with_chgcol), (dvdspu_blend_comp_buffers), (gstdvdspu_render_spu): * gst/dvdspu/gstdvdspu.c: (dvdspu_base_init), (dvdspu_class_init), (dvdspu_init), (dvdspu_clear), (dvdspu_dispose), (dvdspu_finalize), (dvdspu_flush_spu_info), (dvdspu_buffer_alloc), (dvdspu_src_event), (dvdspu_video_set_caps), (dvdspu_video_proxy_getcaps), (dvdspu_video_event), (dvdspu_video_chain), (dvspu_handle_vid_buffer), (dvdspu_redraw_still), (gstdvdspu_parse_chg_colcon), (dvdspu_exec_cmd_blk), (dvdspu_finish_spu_buf), (dvdspu_setup_cmd_blk), (dvdspu_handle_new_spu_buf), (dvdspu_handle_dvd_event), (dvdspu_dump_dcsq), (dvdspu_advance_spu), (dvdspu_check_still_updates), (dvdspu_subpic_chain), (dvdspu_subpic_event), (dvdspu_change_state), (gstdvdspu_plugin_init): * gst/dvdspu/gstdvdspu.h: dvdspu element donated by Fluendo. It implements a DVD Sub-Picture Unit, decoding and overlaying DVD subtitles and menu graphics. * gst/mpeg2sub/.cvsignore: * gst/mpeg2sub/Makefile.am: * gst/mpeg2sub/Notes.txt: * gst/mpeg2sub/gstmpeg2subt.c: * gst/mpeg2sub/gstmpeg2subt.h: * gst/mpeg2sub/mpeg2subt.vcproj: Delete old and broken mpeg2subt element that was never ported from 0.8
Diffstat (limited to 'gst/mpeg2sub/gstmpeg2subt.h')
-rw-r--r--gst/mpeg2sub/gstmpeg2subt.h114
1 files changed, 0 insertions, 114 deletions
diff --git a/gst/mpeg2sub/gstmpeg2subt.h b/gst/mpeg2sub/gstmpeg2subt.h
deleted file mode 100644
index a257f55d..00000000
--- a/gst/mpeg2sub/gstmpeg2subt.h
+++ /dev/null
@@ -1,114 +0,0 @@
-/* GStreamer
- * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * 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.
- */
-
-
-#ifndef __GST_MPEG2SUBT_H__
-#define __GST_MPEG2SUBT_H__
-
-
-#include <gst/gst.h>
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-
-#define GST_TYPE_MPEG2SUBT \
- (gst_mpeg2subt_get_type())
-#define GST_MPEG2SUBT(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MPEG2SUBT,GstMpeg2Subt))
-#define GST_MPEG2SUBT_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MPEG2SUBT,GstMpeg2SubtClass))
-#define GST_IS_MPEG2SUBT(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MPEG2SUBT))
-#define GST_IS_MPEG2SUBT_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MPEG2SUBT))
-
-typedef struct _GstMpeg2Subt GstMpeg2Subt;
-typedef struct _GstMpeg2SubtClass GstMpeg2SubtClass;
-
-/* Hold premultimplied colour values */
-typedef struct YUVA_val {
- guint16 Y;
- guint16 U;
- guint16 V;
- guint16 A;
-} YUVA_val;
-
-struct _GstMpeg2Subt {
- GstElement element;
-
- GstPad *videopad,*subtitlepad,*srcpad;
-
- GstBuffer *partialbuf; /* Collect together subtitle buffers until we have a full control sequence */
- GstBuffer *hold_frame; /* Hold back one frame of video */
- GstBuffer *still_frame;
-
- guint16 packet_size;
- guint16 data_size;
-
- gint offset[2];
-
- YUVA_val palette_cache[4];
-
- /*
- * Store 1 line width of U, V and A respectively.
- * Y is composited direct onto the frame.
- */
- guint16 *out_buffers[3];
- guchar subtitle_index[4];
- guchar menu_index[4];
- guchar subtitle_alpha[4];
- guchar menu_alpha[4];
-
- guint32 current_clut[16];
-
- gboolean have_title;
- gboolean forced_display;
-
- GstClockTime start_display_time;
- GstClockTime end_display_time;
- gint left, top,
- right, bottom;
- gint clip_left, clip_top,
- clip_right, clip_bottom;
-
- gint in_width, in_height;
- gint current_button;
-
- GstData *pending_video_buffer;
- GstClockTime next_video_time;
- GstData *pending_subtitle_buffer;
- GstClockTime next_subtitle_time;
-};
-
-struct _GstMpeg2SubtClass {
- GstElementClass parent_class;
-};
-
-GType gst_mpeg2subt_get_type(void);
-
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-
-#endif /* __GST_MPEG2SUBT_H__ */