summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/video.c
AgeCommit message (Collapse)AuthorFilesLines
2015-10-17video: Add out annotations to the out parameters of ↵Sebastian Dröge1-2/+2
gst_video_calculate_display_ratio() https://bugzilla.gnome.org/show_bug.cgi?id=754567
2014-08-15video: Add gst_video_guess_framerate() functionJan Schmidt1-0/+89
Takes a nominal frame duration and returns a standard FPS if it matches closely enough (< 0.1%), or else calculates a framerate that'll do.
2012-11-03Fix FSF addressTim-Philipp Müller1-2/+2
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-08-20video: expose gst_video_info_alignWim Taymans1-0/+21
Expose the gst_video_info_align function that adds padding and does stride alignment on a GstVideoInfo. Move this previously private function to video-info.co Move the definition of the alignment structure to video.h where it can be picked up by both the bufferpool and the video-info.
2012-07-13libs: Remove "Since" markers and minor doc fixupsEdward Hervey1-2/+0
2012-06-05video: move methods into separate filesWim Taymans1-3048/+0
Move different video functionalities into different files
2012-06-04video: don't add unknown colorimetryWim Taymans1-6/+10
2012-06-04video: add unknown colorimetry parameters as well..Wim Taymans1-0/+1
2012-06-04video: use unknown colorimetry for unknown formatsWim Taymans1-5/+8
Use the default RGB colorimetry into only on RGB formats and use an unknown set of defaults for the unknown format.
2012-06-04video: (de)serialize colorimetry on capsWim Taymans1-6/+15
2012-06-04video: don't add empty colorimetry to capsWim Taymans1-3/+3
Don't use extra default colorimetry entries in the table to construct an output colorimetry shortcut because they don't have a name.
2012-06-04video: fix default colorspace settingsWim Taymans1-3/+3
HD content is defined as height > 576
2012-06-01video: set default colorimetry infoWim Taymans1-18/+36
Set default colorimetry info when not otherwise specified in caps.
2012-05-31video: fix paletted formatWim Taymans1-37/+17
RGB8_PALETTED -> RGB8P Fix the definition of paletted formats, store the palette in the second plane. Make sure we copy the palette correctly in gst_video_frame_copy() Don't do alignment on the palette in videopool
2012-05-29video: Remove duplicate formatsWim Taymans1-115/+151
Remove Y800 and Y16 wich are the same as GRAY8 and GRAY16_LE Add const to the GstVideoFormatInfo when used in argument Add GRAY8 and GRAY16 pack/unpack functions
2012-05-29video: rename orc function namesWim Taymans1-32/+30
2012-05-29video: fill in the pack/unpack functionsWim Taymans1-80/+1264
Add support for supporting chroma subsampling correctly in the pack function. Fill in the pack and unpack functions for most formats. Add some missing pack/unpack functions to the orc file.
2012-05-28video: fix v216 format descriptionWim Taymans1-4/+6
Fix the offsets of v216 video Add the complex flag to some formats
2012-05-25video: add 10 bits I420 formatWim Taymans1-2/+20
Add 10 bits I420 format definitions Move encoded format as second entry in the array so that it doesn't end up in a weird place when we add formats. See https://bugzilla.gnome.org/show_bug.cgi?id=665034
2012-05-10video: Key unit event properties are optionalNicolas Dufresne1-8/+8
https://bugzilla.gnome.org/show_bug.cgi?id=675758
2012-04-25video: Only use the interlacing buffer flags if the caps specify interlaced ↵Sebastian Dröge1-6/+8
video
2012-04-24video: Some porting bugfixesSebastian Dröge1-7/+9
2012-04-24video: Initial port of video base classes and related things to 0.11Sebastian Dröge1-10/+55
2012-04-19video: improve frame_flagsWim Taymans1-5/+5
Rename the frame_flags to flags. Because they are flags on the frame object it does not need the redundant frame_ prefix. Change the order of the metadata constructor so that the flags come before the format and dimension arguments.
2012-04-19video: Clean up interlaced flags and enumsSebastian Dröge1-3/+12
There's a new GstVideoFrameFlags enum now that contains the frame specific flags only. GstVideoFlags does not contain the TFF/TFF/ONEFIELD flags anymore because these are strictly frame specific. Also add fallback to parse these fields from the GstBufferFlags in gst_video_frame_map() if there's no GstVideoMeta attached to the buffer.
2012-03-30video: Fix 'comparison of unsigned enum expression < 0 is always false' ↵Edward Hervey1-1/+1
compiler warning
2012-03-27video: keep the buffer reffed in the videoframeWim Taymans1-3/+4
This would also ensure that the buffer is not writable while mapped.
2012-03-20video: fix assertion comparison mishapMark Nauwelaerts1-1/+1
2012-03-19video: add function to copy one video planeWim Taymans1-22/+54
2012-02-23video: Improve video frame map/unmapWim Taymans1-5/+3
Install defaul map/unmap function on the metadata and really call the functions instead of always calling a default implementation. Rework some bits so that we don't have to mess with the GstMapInfo information (adding the offset), instead pass the adjusted data pointer from the map function.
2012-02-09video: add performance log for frame copyWim Taymans1-1/+3
2012-02-09debug: add some performance debugWim Taymans1-0/+2
2012-02-06video: mark endianness correctlyWim Taymans1-1/+17
2012-01-25port to new map APIWim Taymans1-15/+10
2012-01-19Update for memory API changesmemory-improvementsWim Taymans1-1/+1
2012-01-02video: fix some video formatsWim Taymans1-22/+2
Rename the offset field in GstVideoFormatInfo to poffset to avoid confusion with the offset of the plane in the buffer. The poffset is the offset in the plane where the first byte of the component data can be found. Properly implement the COMP_OFFSET calculations. Fix YV12 and YVU9, simply use the same offsets as the regular I420 and YUV9 variants, we use the plane info to reorder components already. Improve the unit test.
2011-12-19video: update interlace caps and docsWim Taymans1-8/+32
Remove interlaced boolean from caps and replace with an interlace-mode enum. document this new property in the video caps document. With the enum we can put fields into separate video meta. Add enum for this interlace-mode in the VideoInfo. Update the buffer flags.
2011-12-02Merge remote-tracking branch 'origin/master' into 0.11Tim-Philipp Müller1-0/+224
Conflicts: ext/alsa/gstalsasrc.c ext/alsa/gstalsasrc.h gst/adder/gstadder.c gst/playback/gstplaybin2.c gst/playback/gstplaysinkconvertbin.c win32/common/libgstvideo.def
2011-11-29libgstvideo: minor fixes to key unit eventsAlessandro Decina1-59/+98
Make out args to gst_video_event_parse_{downstream|upstream}_force_key_unit optional, update libgstvideo.def and fix docs a bit. API: gst_video_event_new_upstream_force_key_unit API: gst_video_event_new_downstream_force_key_unit API: gst_video_event_is_force_key_unit API: gst_video_event_parse_upstream_force_key_unit API: gst_video_event_parse_downstream_force_key_unit https://bugzilla.gnome.org/show_bug.cgi?id=607742
2011-11-29libgstvideo: Add force key unit eventsAndoni Morales Alastruey1-0/+185
2011-11-28Revert "libgstvideo: add a new API to handle QoS events and dropping logic"Vincent Penquerc'h1-217/+0
This reverts commit eb03323fb683e06ed8e7f557037f13252f150c25. *grumble* I managed to merge something I did not mean to.
2011-11-28libgstvideo: add a new API to handle QoS events and dropping logicVincent Penquerc'h1-0/+217
https://bugzilla.gnome.org/show_bug.cgi?id=658241
2011-11-11video: init chroma-size and colorimetry members even if missing from capsRené Stadler1-0/+4
This makes a TRUE return from gst_video_info_from_caps fully consistent with gst_video_info_init.
2011-11-11video: add support for max-framerateWim Taymans1-1/+17
Add support for max-framerate in the video helpers and update the video caps document.
2011-11-08video: log important details and fix format stringsStefan Sauer1-3/+4
If we complain about wrong parameters passed, also log the actual value.
2011-11-07docs: fix up some Since: markersTim-Philipp Müller1-1/+1
2011-11-02rename meta* -> *metaWim Taymans1-9/+9
2011-10-28audio, video: init audio/video format info to UNKNOWN formatRené Stadler1-0/+3
This is to prevent e.g. GST_AUDIO_INFO_FORMAT() from crashing on a NULL pointer dereference when used with an unset info.
2011-10-09libs: video: Add protection against null stringsThiago Santos1-0/+2
Check and assert if input for gst_video_format_from_string is null. Return GST_VIDEO_FORMAT_UNKNOWN as a fallback
2011-09-06audio/video add descriptionsWim Taymans1-54/+88
Add a description to the audio and video format info in case we want to use this later.