summaryrefslogtreecommitdiff
path: root/gst/dvdspu/gstdvdspu-render.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "dvdspu: render to AYUV overlay"Jan Schmidt2015-09-271-0/+99
| | | | This reverts commit 5016a73190595505dc38b54f8f9a08c4f180f3a6.
* dvdspu: render to AYUV overlayArnaud Vrac2015-09-261-99/+0
| | | | | | | | | | | | | | | | | | | | Instead of only supporting writing SPU data directly to YUV frames, render the SPU data to an intermediate AYUV overlay buffer. The overlay data is then attached to the video frame if downstream supports overlay composition, otherwise the AYUV overlay is blended to the video frame. For the PGS format, the overlay buffer size is set to the size of the Composition Window, and its position in the overlay composition is set to the window position. The objects to render are now cropped when the cropping flag is set. For the Vobsub format, the overlay buffer size is set to the size of the Display Area. Once rendered, the overlay composition rectangle is now moved and scaled to fit the video output size, to avoid clipping. https://bugzilla.gnome.org/show_bug.cgi?id=663750
* dvdspu: Fix the rendering of PGS windows with left != 0Jan Schmidt2013-02-071-0/+2
| | | | | | When rendering a PGS window area where the left edge is not at pixel 0, the chroma was being rendered in the wrong place since commit 4dc648d3430b67592cf1413ccef415f70889d71e
* Fix FSF addressTim-Philipp Müller2012-11-041-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687520
* dvdspu: add YV12 and NV12 supportRob Clark2012-10-031-4/+7
| | | | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=667220 Conflicts: gst/dvdspu/gstdvdspu.c gst/dvdspu/gstdvdspu.h gst/dvdspu/gstspu-pgs.c gst/dvdspu/gstspu-vobsub-render.c
* gstspu: Implement PGS rendering and alpha blendingJan Schmidt2009-05-261-492/+23
| | | | | | | | | | Refactor the DVD subpicture compositing, switching it to 8-bit alpha calculations. Reuse some of the resulting code to implement PGS subpicture blending. Implement parsing and collecting of composition objects properly, but assuming a single active window and colour palette for now. I need more PGS samples.
* dvdspu: Add a guard when we don't have any subpicture buffer to renderJan Schmidt2009-05-111-0/+2
|
* dvdspu: do some basic clippingWim Taymans2009-04-301-13/+53
| | | | | Add some basic clipping of the subtitle region when the subtitle is bigger than the image we should put it on.
* gst/dvdspu/: Fix up dvdspu element again after previous namespace mangling: ↵Tim-Philipp Müller2008-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename debug category variable to old nam... Original commit message from CVS: * gst/dvdspu/gstdvdspu-render.c: (gst_dvd_spu_render_spu): * gst/dvdspu/gstdvdspu.c: (dvdspu_debug), (GST_CAT_DEFAULT), (subpic_sink_factory), (gst_dvd_spu_base_init), (gst_dvd_spu_class_init), (gst_dvd_spu_init), (gst_dvd_spu_clear), (gst_dvd_spu_dispose), (gst_dvd_spu_finalize), (gst_dvd_spu_flush_spu_info), (gst_dvd_spu_buffer_alloc), (gst_dvd_spu_src_event), (gst_dvd_spu_video_set_caps), (gst_dvd_spu_video_proxy_getcaps), (gst_dvd_spu_video_event), (gst_dvd_spu_video_chain), (dvspu_handle_vid_buffer), (gst_dvd_spu_redraw_still), (gst_dvd_spu_parse_chg_colcon), (gst_dvd_spu_exec_cmd_blk), (gst_dvd_spu_finish_spu_buf), (gst_dvd_spu_setup_cmd_blk), (gst_dvd_spu_handle_new_spu_buf), (gst_dvd_spu_handle_dvd_event), (gst_dvd_spu_advance_spu), (gst_dvd_spu_check_still_updates), (gst_dvd_spu_subpic_chain), (gst_dvd_spu_subpic_event), (gst_dvd_spu_change_state), (gst_dvd_spu_plugin_init): * gst/dvdspu/gstdvdspu.h: (GST_TYPE_DVD_SPU): Fix up dvdspu element again after previous namespace mangling: rename debug category variable to old name, matching that in dvdspu-render.c, to avoid undefined symbol error when loading the module; same for the _render function in dvdspu-render.c: we must use the same name in both .c files; change functions now called gstgst_* back to gst_* again; and while we're at it, we may as well canonicalise the namespace properly, namely to gst_dvd_spu_*.
* dvdspu element donated by Fluendo. It implements a DVD Sub-PictureJan Schmidt2007-08-271-0/+521
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