summaryrefslogtreecommitdiff
path: root/gst/videotestsrc/videotestsrc.c
AgeCommit message (Collapse)AuthorFilesLines
2011-11-11videotestsrc: fix crash with ARGB64René Stadler1-1/+1
This got broken when it was ported.
2011-08-23video: add colorimetry infoWim Taymans1-8/+8
Make enums for the chroma siting for easier use in the videoinfo. Make enums for the color range, color matrix, transfer function and the color primaries. Add these values to the video info structure in a Colorimetry structure. These values define the exact colors and are needed to perform correct colorspace conversion. Use a couple of predefined colorimetry specs because in practice only a few combinations are in use. Add view_id to the video frames to identify the view this frame represents in multiview video. Remove old gst_video_parse_caps_framerate, use the videoinfo for this. Port elements to new colorimetry info. Remove deprecated colorspace property from videotestsrc.
2011-07-04video: More video helper library improvementsWim Taymans1-98/+98
Make a new GstVideoFormatinfo structure that contains the specific information related to a format such as the number of planes, components, subsampling, pixel stride etc. The result is that we are now able to introduce the concept of components again in the API. Use tables to specify the formats and its properties. Use macros to get information about the video format description. Move code to set strides, offsets and size into one function. Remove methods that are not handled with the structures. Add methods to retrieve pointers and strides to the components in the video.
2011-06-21videotestsrc: port to video helpersWim Taymans1-358/+378
Port videotestsrc to use the video helper functions to parse caps and handle video frames. Enable GstMetaVideo to make us handle strided video.
2011-06-21videotestsrc: small cleanupsWim Taymans1-2/+2
2011-06-16-base: port elements to new video capsnew-video-capsWim Taymans1-217/+130
2011-06-10convert M_PI to G_PI, for msvcDavid Schleef1-2/+2
2011-02-20videotestsrc: Add 16-bit-per-channel formatsDavid Schleef1-3/+70
2010-10-05videotestsrc: include new math-compat.h header for rint() on MSVCTim-Philipp Müller1-7/+1
Should fix compilation with Visual Studio 2008. https://bugzilla.gnome.org/show_bug.cgi?id=630802
2010-09-18videotestsrc: Fix regression in ball patternDavid Schleef1-6/+7
Was painting using two different methods.
2010-09-16videotestsrc: add bar patternThijs Vermeir1-0/+27
Simple bar with foreground color on the background color
2010-09-15videotestsrc: fix segfault on negative horizontal-speedThijs Vermeir1-0/+2
2010-09-14videotestsrc: Add UYVPDavid Schleef1-0/+40
2010-09-14videotestsrc: Various improvementsDavid Schleef1-202/+222
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-0/+29
2010-09-14videotestsrc: Clean up the RGB codeDavid Schleef1-24/+96
2010-09-14videotestsrc: Convert to intermediate AYUV/ARGBDavid Schleef1-523/+363
Scanlines are generated into AYUV/ARGB, then converted to the various formats.
2010-09-14videotestsrc: rearrange code to work on scanlinesDavid Schleef1-143/+210
2010-09-14videotestsrc: Fix recent breakage of smpte75 patternDavid Schleef1-0/+5
2010-09-14videotestsrc: add moving color bars patternThijs Vermeir1-0/+54
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-05videotestsrc: Use static sine tableDavid Schleef1-42/+42
2010-09-05videotestsrc: Add foreground/background-color propertiesDavid Schleef1-231/+166
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-08-26videotestsrc: clean up codeDavid Schleef1-444/+245
Merge various color structures into one.
2010-08-26videotestsrc: Add ball patternDavid Schleef1-0/+110
2010-08-24videotestsrc: Fix NV21 renderingSebastian Dröge1-4/+27
Using the same as for NV12 will result in wrong colors and crashes.
2010-08-09videotestsrc: add solid-color patternMark Nauwelaerts1-77/+173
... 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-53/+72
2010-03-19videotestsrc: Only set color-matrix and chroma-site for relevant formatsSebastian Dröge1-14/+21
The color-matrix only makes sense for colorful formats, i.e. not Y800 and the chroma-site only for non-4:4:4(:4) formats.
2010-03-16Add -Wwrite-strings to configureBenjamin Otte1-2/+2
Fixes for the code included
2010-03-15videotestsrc: use C comments instead of C++-style commentsTim-Philipp Müller1-21/+21
2010-03-15videotestsrc: use g_value_set_static_string() for string constantsTim-Philipp Müller1-4/+4
2010-03-15videotestsrc: add chroma-zone-plate patternDavid Schleef1-0/+131
pattern=chroma-zone-plate is pattern similar to zone-plate, but in the chroma channels instead of luma.
2010-03-15videotestsrc: add chroma-site to capsDavid Schleef1-0/+10
2010-03-14videotestsrc: Add color-matrix to template capsDavid Schleef1-0/+16
2009-10-07[videotestsrc] Make checkers-8 pattern create 8x8 instead of 16x16 tilesBenjamin Otte1-1/+1
2009-10-07[videotestsrc] Fix Y41BBenjamin Otte1-5/+7
Chroma components should be aligned on 4byte boundaries. https://bugzilla.gnome.org/show_bug.cgi?id=595849
2009-10-06videotestsrc: add pattern with out-of-gamut colorsDavid Schleef1-0/+89
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-09-11videotestsrc: Fix crashes with even widthsBenjamin Otte1-4/+4
The fix for green lines introduced by commit 35fdfcc6258c66ba462a4330a35deffb0f2b501d caused invalid memory accesses for even widths. This patch fixes it.
2009-09-10videotestsrc: Fix YVU9 and YUV9Benjamin Otte1-8/+10
- Buffer sizes were computed different from ffmpegcolorspace - Green bar on right size for widths not divisable by 4
2009-09-10videotestsrc: Fix image for odd widths in some formatsBenjamin Otte1-11/+16
videotestsrc rounds chroma down. This causes it to omit the last chroma value completely for odd widths when the chroma is downsampled. This patch special cases the last pixel to not be rounded down.
2009-06-20videotestsrc: Fix NV12 painting for odd strides/heightsJan Schmidt1-6/+6
2009-05-26videotestsrc: Add support for 16 bit grayscale in native endiannessSebastian Dröge1-13/+130
2009-05-15videotestsrc: Add support for v210 and v216 formatsDavid Schleef1-1/+110
2009-03-28videotestsrc: Add support for generating video/x-raw-gray with bpp=depth=8Sebastian Dröge1-3/+25
2009-02-13ffmpegcolorspace/videotestsrc: Use v308 instead of V308Sebastian Dröge1-5/+5
2009-02-12videotestsrc: Add support for packed 4:4:4 YUV (format=V308)Sebastian Dröge1-0/+24
Partially fixes bug #571147.
2009-02-10videotestsrc: Add support for Y444 (planar 4:4:4 YUV)Sebastian Dröge1-0/+25
Partially fixes bug #571147.
2008-11-21gst/videotestsrc/: Add a zone plate pattern generator based on BBC R&D ↵Jonathan Rosser1-0/+154
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-151/+290
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-05-22gst/videotestsrc/videotestsrc.c: May just as well use the precalculated ↵Tim-Philipp Müller1-2/+2
uvstride here. Original commit message from CVS: * gst/videotestsrc/videotestsrc.c: (paint_hline_NV12_NV21): May just as well use the precalculated uvstride here.