summaryrefslogtreecommitdiff
path: root/gst/videotestsrc/gstvideotestsrc.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-16-base: port elements to new video capsnew-video-capsWim Taymans1-9/+9
2011-06-13videotestsrc: use baseclass allocator negotiation logicWim Taymans1-81/+38
Let the baseclass implement the negotiation of the allocators. Influence the allocator buffersize. Use the fill vmethod to fill the buffer with data.
2011-06-11update for bufferpool api changeWim Taymans1-1/+1
2011-06-10videotestsrc: fix for alignment value changeWim Taymans1-1/+1
2011-06-06videotestsrc: remove deprecated peer-alloc propertyWim Taymans1-13/+0
Remove the peer-alloc property, it's not used anymore because pad-alloc is gone.
2011-05-17gst: Update for caps/pad template related API changesSebastian Dröge1-2/+4
2011-05-17Revert "-base_port to new query API"Sebastian Dröge1-8/+6
This reverts commit c9f4e0676ba8c8074a50aa6d1d058f6da9a76b32.
2011-05-16videotestsrc: Update for negotiation related API changesSebastian Dröge1-4/+8
2011-05-16-base: port to new SEGMENT APIWim Taymans1-5/+5
2011-05-10-base_port to new query APIWim Taymans1-6/+8
2011-05-08videotestsrc: avoid setting caps on buffersWim Taymans1-2/+0
We don't need to set caps on buffers anymore, this is now done with a caps event.
2011-05-02plugins: fix for allocation query API changeWim Taymans1-7/+11
2011-04-29videotestsrc: use ALLOCATION queryWim Taymans1-44/+81
Use the allocation query to get the buffer parameters and potentially a bufferpool from downstream. Use the bufferpool to create buffers.
2011-04-19gst: Use G_DEFINE_TYPE instead of GST_BOILERPLATESebastian Dröge1-18/+13
2011-03-27plugins: port some plugins to the new memory APIWim Taymans1-5/+7
2010-09-16videotestsrc: add bar patternThijs Vermeir1-0/+4
Simple bar with foreground color on the background color
2010-09-14videotestsrc: Various improvementsDavid Schleef1-16/+19
Replace moving-color-bars pattern with smpte100, and change moving-speed to horizontal-speed. Default is now 0. Add a rotation stage to pattern building. Allocate a temporary scanline for building images. Remove unused code. Disable several patterns that we're unable to test and probably never used. Add other variants of bayer sampling. Convert some patterns to use videotestsrc_blend_line.
2010-09-14videotestsrc: clean up blink patternDavid Schleef1-13/+4
2010-09-14videotestsrc: rearrange code to work on scanlinesDavid Schleef1-0/+2
2010-09-14videotestsrc: add moving color bars patternThijs Vermeir1-0/+19
This pattern is moving the color bars with a given speed. Negative speed is inverting the moving direction. https://bugzilla.gnome.org/show_bug.cgi?id=628500
2010-09-09Revert "Revert "Use init functions for Orc code""Sebastian Dröge1-0/+3
This reverts commit 93aa13639d74449dc68296427e5dbcfe8aca5f51. Everything should work now after regenerating the disted source files.
2010-09-05videotestsrc: Add foreground/background-color propertiesDavid Schleef1-13/+37
Replace solid-color property with foreground-color and add background-color. Pull some common code out of each of the pattern generating functions. Fix many of the patterns to use foreground-color/background-color instead of white/black. Generated images are indentical to previously if foreground-color and background-color are left as default. API: GstVideoTestSrc::foreground-color API: GstVideoTestSrc::background-color
2010-09-05videotestsrc: deprecate colorspec propertyDavid Schleef1-3/+3
Fixes: #616392.
2010-09-02videotestsrc: fix typo in property descriptionStefan Kost1-1/+1
2010-08-27Revert "Use init functions for Orc code"Wim Taymans1-3/+0
This reverts commit b2051090b43f82b23bb01826f09053479bbd7874. Fixes the build again until someone pushes the regenerated .c/.h files too.
2010-08-26videotestsrc: Add ball patternDavid Schleef1-0/+4
2010-08-26Use init functions for Orc codeDavid Schleef1-0/+3
2010-08-09videotestsrc: add solid-color patternMark Nauwelaerts1-0/+24
... which generalizes the current listing of white, black, etc. In particular, also allow specifying alpha channel, and modify some structures and pattern filling to cater for alpha value as well. Fixes #624919. API: GstVideoTestSrc:solid-color
2010-06-07videotestsrc: convert from liboil to orcDavid Schleef1-3/+0
2010-05-22videotestsrc: Fixate interlaced, chroma-site and color-matrix fields if ↵Sebastian Dröge1-0/+7
necessary
2010-05-12videotestsrc: Fixate PAR to 1/1 if possibleSebastian Dröge1-0/+3
2010-03-16gst_element_class_set_details => gst_element_class_set_details_simpleBenjamin Otte1-7/+3
Also change my email from the old university one to the current one.
2010-03-15videotestsrc: add chroma-zone-plate patternDavid Schleef1-0/+5
pattern=chroma-zone-plate is pattern similar to zone-plate, but in the chroma channels instead of luma.
2010-03-09videotestsrc: Add color-matrix to capsDavid Schleef1-2/+19
2009-10-06videotestsrc: add pattern with out-of-gamut colorsDavid Schleef1-0/+4
Adds a pattern with out-of-gamut colors in a checkerboard pattern with in-gamut neighbors. Useful for checking YCbCr->RGB color matrixing. Correct matrixing and clamping will cause the checkerboard pattern to be invisible.
2009-08-08gst: Remove dead assignments and resulting unused variablesEdward Hervey1-3/+0
2009-03-28videotestsrc: Initialize buffer memory with zeroesSebastian Dröge1-0/+2
This prevents valgrind warnings when accessing the "x" parts of xRGB and friends in other elements that handle (and can handle) xRGB like ARGB (for example videoscale).
2008-11-21gst/videotestsrc/: Add a zone plate pattern generator based on BBC R&D ↵Jonathan Rosser1-0/+143
Report 1978/23 (yeah *that* 1978). Try 'video... Original commit message from CVS: Patch by: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> * gst/videotestsrc/gstvideotestsrc.c: * gst/videotestsrc/gstvideotestsrc.h: * gst/videotestsrc/videotestsrc.c: * gst/videotestsrc/videotestsrc.h: Add a zone plate pattern generator based on BBC R&D Report 1978/23 (yeah *that* 1978). Try 'videotestsrc pattern=zone-plate kx2=20 ky2=20 kt=1'.
2008-11-19gst/videotestsrc/: Add "colorspec" property, specifying whether to generate ↵David Schleef1-0/+35
BT.601 or BT.709 video. This only affect... Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: * gst/videotestsrc/gstvideotestsrc.h: * gst/videotestsrc/videotestsrc.c: * gst/videotestsrc/videotestsrc.h: Add "colorspec" property, specifying whether to generate BT.601 or BT.709 video. This only affects YCbCr values, not RGB, since if you're generating a 709 test pattern, presumably you want 709 RGB primaries, not 601. Also add "smpte75" pattern, which uses 75% colors instead of 100%, since this is often more useful for testing (and also follows the SMPTE EG-1 guideline).
2008-07-31gst/videotestsrc/gstvideotestsrc.c: Discard buffers of the wrong size after ↵Wim Taymans1-4/+19
renegotiation, this is perfectly possible... Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_getcaps), (gst_video_test_src_create): Discard buffers of the wrong size after renegotiation, this is perfectly possible with things like capsfilter that could suggest caps changes upstream without knowing the size of the buffer.
2008-07-11Cleanup Plugin docs. Link to signals and properties. Fix sub-section titles. ↵Stefan Kost1-8/+4
Drop mentining that all our example pipe... Original commit message from CVS: * docs/plugins/gst-plugins-base-plugins-docs.sgml: * docs/plugins/gst-plugins-base-plugins-overrides.txt: * docs/plugins/gst-plugins-base-plugins-sections.txt: * docs/plugins/gst-plugins-base-plugins.args: * docs/plugins/gst-plugins-base-plugins.hierarchy: * docs/plugins/gst-plugins-base-plugins.interfaces: * docs/plugins/gst-plugins-base-plugins.prerequisites: * docs/plugins/gst-plugins-base-plugins.signals: * docs/plugins/inspect/plugin-adder.xml: * docs/plugins/inspect/plugin-alsa.xml: * docs/plugins/inspect/plugin-audioconvert.xml: * docs/plugins/inspect/plugin-audiorate.xml: * docs/plugins/inspect/plugin-audioresample.xml: * docs/plugins/inspect/plugin-audiotestsrc.xml: * docs/plugins/inspect/plugin-cdparanoia.xml: * docs/plugins/inspect/plugin-decodebin.xml: * docs/plugins/inspect/plugin-ffmpegcolorspace.xml: * docs/plugins/inspect/plugin-gdp.xml: * docs/plugins/inspect/plugin-gnomevfs.xml: * docs/plugins/inspect/plugin-libvisual.xml: * docs/plugins/inspect/plugin-ogg.xml: * docs/plugins/inspect/plugin-pango.xml: * docs/plugins/inspect/plugin-playback.xml: * docs/plugins/inspect/plugin-queue2.xml: * docs/plugins/inspect/plugin-subparse.xml: * docs/plugins/inspect/plugin-tcp.xml: * docs/plugins/inspect/plugin-theora.xml: * docs/plugins/inspect/plugin-typefindfunctions.xml: * docs/plugins/inspect/plugin-uridecodebin.xml: * docs/plugins/inspect/plugin-video4linux.xml: * docs/plugins/inspect/plugin-videorate.xml: * docs/plugins/inspect/plugin-videoscale.xml: * docs/plugins/inspect/plugin-videotestsrc.xml: * docs/plugins/inspect/plugin-volume.xml: * docs/plugins/inspect/plugin-vorbis.xml: * docs/plugins/inspect/plugin-ximagesink.xml: * docs/plugins/inspect/plugin-xvimagesink.xml: * ext/alsa/gstalsamixer.c: * ext/alsa/gstalsasink.c: * ext/alsa/gstalsasrc.c: * ext/gio/gstgiosink.c: * ext/gio/gstgiosrc.c: * ext/gio/gstgiostreamsink.c: * ext/gio/gstgiostreamsrc.c: * ext/gnomevfs/gstgnomevfssink.c: * ext/gnomevfs/gstgnomevfssrc.c: * ext/ogg/gstoggdemux.c: * ext/ogg/gstoggmux.c: * ext/pango/gstclockoverlay.c: * ext/pango/gsttextoverlay.c: * ext/pango/gsttextrender.c: * ext/pango/gsttimeoverlay.c: * ext/theora/theoradec.c: * ext/theora/theoraenc.c: * ext/theora/theoraparse.c: * ext/vorbis/vorbisdec.c: * ext/vorbis/vorbisenc.c: * ext/vorbis/vorbisparse.c: * ext/vorbis/vorbistag.c: * gst/adder/gstadder.c: * gst/audioconvert/gstaudioconvert.c: * gst/audioresample/gstaudioresample.c: * gst/audiotestsrc/gstaudiotestsrc.c: * gst/ffmpegcolorspace/gstffmpegcolorspace.c: * gst/gdp/gstgdpdepay.c: * gst/gdp/gstgdppay.c: * gst/playback/gstdecodebin2.c: * gst/playback/gstplaybin.c: * gst/playback/gstplaybin2.c: * gst/playback/gstqueue2.c: * gst/playback/gsturidecodebin.c: * gst/tcp/gstmultifdsink.c: * gst/tcp/gsttcpserversink.c: * gst/videorate/gstvideorate.c: * gst/videoscale/gstvideoscale.c: * gst/videotestsrc/gstvideotestsrc.c: * gst/volume/gstvolume.c: * sys/ximage/ximagesink.c: * sys/xvimage/xvimagesink.c: Cleanup Plugin docs. Link to signals and properties. Fix sub-section titles. Drop mentining that all our example pipelines are "simple" pipelines.
2008-07-01gst/videotestsrc/gstvideotestsrc.*: Cleanups, use default property values as ↵Wim Taymans1-22/+34
defines. Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_class_init), (gst_video_test_src_init), (gst_video_test_src_set_property), (gst_video_test_src_get_property), (gst_video_test_src_create): * gst/videotestsrc/gstvideotestsrc.h: Cleanups, use default property values as defines. Add property to enable/disable peer buffer allocation.
2008-03-22Use G_PARAM_STATIC_STRINGS everywhere for GParamSpecs that use static ↵Sebastian Dröge1-6/+7
strings (i.e. all). This gives us less memory u... Original commit message from CVS: * configure.ac: * ext/alsa/gstalsamixerelement.c: (gst_alsa_mixer_element_class_init): * ext/alsa/gstalsasink.c: (gst_alsasink_class_init): * ext/alsa/gstalsasrc.c: (gst_alsasrc_class_init): * ext/cdparanoia/gstcdparanoiasrc.c: (gst_cd_paranoia_src_class_init): * ext/gio/gstgiosink.c: (gst_gio_sink_class_init): * ext/gio/gstgiosrc.c: (gst_gio_src_class_init): * ext/gio/gstgiostreamsink.c: (gst_gio_stream_sink_class_init): * ext/gio/gstgiostreamsrc.c: (gst_gio_stream_src_class_init): * ext/gnomevfs/gstgnomevfssink.c: (gst_gnome_vfs_sink_class_init): * ext/gnomevfs/gstgnomevfssrc.c: (gst_gnome_vfs_src_class_init): * ext/ogg/gstoggmux.c: (gst_ogg_mux_class_init): * ext/pango/gsttextoverlay.c: (gst_text_overlay_class_init): * ext/pango/gsttextrender.c: (gst_text_render_class_init): * ext/theora/theoradec.c: (gst_theora_dec_class_init): * ext/theora/theoraenc.c: (gst_theora_enc_class_init): * ext/theora/theoraparse.c: (gst_theora_parse_class_init): * ext/vorbis/vorbisenc.c: (gst_vorbis_enc_class_init): * gst-libs/gst/audio/gstaudiofiltertemplate.c: (gst_audio_filter_template_class_init): * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_class_init): * gst-libs/gst/audio/gstbaseaudiosrc.c: (gst_base_audio_src_class_init): * gst-libs/gst/cdda/gstcddabasesrc.c: (gst_cdda_base_src_class_init): * gst-libs/gst/interfaces/mixertrack.c: (gst_mixer_track_class_init): * gst-libs/gst/rtp/gstbasertpdepayload.c: (gst_base_rtp_depayload_class_init): * gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_class_init): * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_class_init): * gst/audiorate/gstaudiorate.c: (gst_audio_rate_class_init): * gst/audioresample/gstaudioresample.c: (gst_audioresample_class_init): * gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_class_init): * gst/gdp/gstgdppay.c: (gst_gdp_pay_class_init): * gst/playback/gstdecodebin2.c: (gst_decode_bin_class_init): * gst/playback/gstplaybasebin.c: (gst_play_base_bin_class_init), (preroll_unlinked): * gst/playback/gstplaybin.c: (gst_play_bin_class_init): * gst/playback/gstplaybin2.c: (gst_play_bin_class_init): * gst/playback/gstplaysink.c: (gst_play_sink_class_init): * gst/playback/gstqueue2.c: (gst_queue_class_init): * gst/playback/gststreaminfo.c: (gst_stream_info_class_init): * gst/playback/gststreamselector.c: (gst_selector_pad_class_init), (gst_stream_selector_class_init): * gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_class_init): * gst/subparse/gstsubparse.c: (gst_sub_parse_class_init): * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_class_init): * gst/tcp/gsttcpclientsink.c: (gst_tcp_client_sink_class_init): * gst/tcp/gsttcpclientsrc.c: (gst_tcp_client_src_class_init): * gst/tcp/gsttcpserversink.c: (gst_tcp_server_sink_class_init): * gst/tcp/gsttcpserversrc.c: (gst_tcp_server_src_class_init): * gst/videorate/gstvideorate.c: (gst_video_rate_class_init): * gst/videoscale/gstvideoscale.c: (gst_video_scale_class_init): * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_class_init): * gst/volume/gstvolume.c: (gst_volume_class_init): * sys/v4l/gstv4lelement.c: (gst_v4lelement_class_init): * sys/v4l/gstv4lmjpegsink.c: (gst_v4lmjpegsink_class_init): * sys/v4l/gstv4lmjpegsrc.c: (gst_v4lmjpegsrc_class_init): * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_class_init): * sys/ximage/ximagesink.c: (gst_ximagesink_class_init): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_class_init): Use G_PARAM_STATIC_STRINGS everywhere for GParamSpecs that use static strings (i.e. all). This gives us less memory usage, fewer allocations and thus less memory defragmentation. Depend on core CVS for this. Fixes bug #523806.
2007-12-18gst/videotestsrc/gstvideotestsrc.*: Add a "blink" pattern. Turn on the ↵David Schleef1-3/+17
pain. Apologies. It's useful for testing ve... Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: * gst/videotestsrc/gstvideotestsrc.h: Add a "blink" pattern. Turn on the pain. Apologies. It's useful for testing vertical refresh synchronization.
2007-05-17gst/: Use the segment->last_stop value to calculate the next timestamp to ↵Michael Smith1-1/+2
generate after a seek; not the segment->sta... Original commit message from CVS: * gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_do_seek): * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_do_seek): Use the segment->last_stop value to calculate the next timestamp to generate after a seek; not the segment->start value.
2007-05-04gst/: gst/audiotestsrc/gstaudiotestsrc.cStefan Kost1-1/+1
Original commit message from CVS: * gst-libs/gst/rtp/gstbasertpaudiopayload.c: * gst/adder/gstadder.c: * gst/audiotestsrc/gstaudiotestsrc.c (gst_audio_test_src_create_white_noise): * gst/videotestsrc/gstvideotestsrc.c: * gst/volume/gstvolume.c (VOLUME_UNITY_INT16, VOLUME_UNITY_INT16_BIT_SHIFT, VOLUME_MAX_DOUBLE, volume_sink_template, volume_src_template, gst_volume_init, volume_process_double, volume_process_int16, volume_process_int16_clamp): Doc fixes and formatting.
2007-04-04gst/videotestsrc/: Add a test pattern called "circular", which has ↵David Schleef1-0/+4
concentric rings with varying radial frequency. T... Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: * gst/videotestsrc/gstvideotestsrc.h: * gst/videotestsrc/videotestsrc.c: * gst/videotestsrc/videotestsrc.h: Add a test pattern called "circular", which has concentric rings with varying radial frequency. The main purpose of this pattern is to test fidelity loss in a filter or scaler element. Notably, this pattern is scale invariant, and is optimally viewed with a width (and height) of 400.
2006-10-23gst/videotestsrc/: Add a bunch of exciting new checkers patterns.Tim-Philipp Müller1-0/+16
Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_pattern_get_type), (gst_video_test_src_set_pattern): * gst/videotestsrc/gstvideotestsrc.h: * gst/videotestsrc/videotestsrc.c: (gst_video_test_src_checkers1), (gst_video_test_src_checkers2), (gst_video_test_src_checkers4), (gst_video_test_src_checkers8): * gst/videotestsrc/videotestsrc.h: Add a bunch of exciting new checkers patterns.
2006-10-05Printf format fixes.Tim-Philipp Müller1-3/+3
Original commit message from CVS: * ext/alsa/gstalsadeviceprobe.c: (gst_alsa_device_property_probe_get_values): * ext/alsa/gstalsasink.c: (set_hwparams): * ext/ogg/gstoggdemux.c: (gst_ogg_demux_chain_elem_pad), (gst_ogg_chain_new_stream), (gst_ogg_demux_read_chain): * ext/ogg/gstoggmux.c: (gst_ogg_mux_send_headers), (gst_ogg_mux_process_best_pad): * ext/ogg/gstoggparse.c: (gst_ogg_parse_new_stream), (gst_ogg_parse_chain): * ext/ogg/gstogmparse.c: (gst_ogm_parse_stream_header): * ext/vorbis/vorbisdec.c: (vorbis_handle_data_packet): * ext/vorbis/vorbisenc.c: (gst_vorbis_enc_setup), (gst_vorbis_enc_buffer_check_discontinuous): * ext/vorbis/vorbisparse.c: (vorbis_parse_src_query): * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_render): * gst-libs/gst/cdda/gstcddabasesrc.c: (gst_cdda_base_src_handle_track_seek): * gst-libs/gst/rtp/gstbasertpdepayload.c: (gst_base_rtp_depayload_push_full): * gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_push): * gst/audioresample/resample.c: (resample_input_pushthrough): * gst/playback/gstplaybasebin.c: (queue_out_of_data): * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_handle_clients): * gst/typefind/gsttypefindfunctions.c: (mp3_type_find_at_offset), (wavpack_type_find): * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_create): * sys/xvimage/xvimagesink.c: (gst_xvimage_buffer_destroy), (gst_xvimagesink_check_xshm_calls), (gst_xvimagesink_xvimage_new): * tests/check/elements/volume.c: (GST_START_TEST): Printf format fixes.
2006-09-18gst/videotestsrc/gstvideotestsrc.c: Use G_UNLIKELY in _create and log one ↵Stefan Kost1-4/+5
more detail. Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: Use G_UNLIKELY in _create and log one more detail. (gst_video_test_src_get_times), (gst_video_test_src_create): * sys/ximage/ximagesink.c: (gst_ximagesink_get_times): Use gst_util_uint64_scale_int in _get_times().