summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.c
Commit message (Collapse)AuthorAge
...
* Set type on buffer in get_video_buffer().S.N. Hemanth Meenakshisundaram2010-08-11
| | | | | | Patch by S.N. Hemanth Meenakshisundaram reverse("skaneems") + "@ucsd.edu". Originally committed as revision 24775 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change avfilter_open() signature, from:Stefano Sabatini2010-08-11
| | | | | | | | | | | AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name); to: int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name); This way it is possible to propagate an error code telling the reason of the failure. Originally committed as revision 24765 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Separate video specific BufferRef properties into VideoProps.S.N. Hemanth Meenakshisundaram2010-08-11
| | | | | | | | | | | | Define a new struct AVFilterBufferRefVideoProps and add a type field to AVFilterBufferRef. Video specific properties in AVFilterBufferRefVideoProps are now referred to by *video pointer in AVFilterBufferRef. Patch by S.N. Hemanth Meenakshisundaram smeenaks->ucsd.edu. Originally committed as revision 24763 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename fields:S.N. Hemanth Meenakshisundaram2010-08-07
| | | | | | | | | | | | | | AVFilterLink.srcpic -> AVFilterLink.src_buf AVFilterLink.cur_pic -> AVFilterLink.cur_buf AVFilterLink.outpic -> AVFilterLink.out_buf The new names are more generic and more consistent, since the struct they contain, which was named AVFilterPicRef, has been renamed to AVFilterBufferRef. Patch by S.N. Hemanth Meenakshisundaram %smeenaks%ucsd%edu%. Originally committed as revision 24732 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename functions and fields:S.N. Hemanth Meenakshisundaram2010-08-07
| | | | | | | | | | | | avfilter_(un)ref_pic -> avfilter_(un)ref_buffer avfilter_copy_picref_props -> avfilter_copy_buffer_ref_props AVFilterBufferRef.pic -> AVFilterBufferRef.buffer They have been renamed to allow sharing with audio. Patch by S.N. Hemanth Meenakshisundaram $smeenaks$ucsd$edu$. Originally committed as revision 24731 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename AVFilterPicRef to AVFilterBufferRef.S.N. Hemanth Meenakshisundaram2010-08-07
| | | | | | | | | The struct is going to be used for storing audio buffer references as well, and the new name is more generic. Patch by S.N. Hemanth Meenakshisundaram @smeenaks@ucsd@edu@. Originally committed as revision 24730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avfilter: indentMåns Rullgård2010-08-06
| | | | Originally committed as revision 24720 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avfilter: do not crash on null link src/dst in avfilter_destroy()Måns Rullgård2010-08-06
| | | | Originally committed as revision 24719 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avfilter: free link in/out_formats in avfilter_destroy()Måns Rullgård2010-08-06
| | | | Originally committed as revision 24718 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Generalize pixel format enum fields to int formats.S.N. Hemanth Meenakshisundaram2010-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to make the libavfilter framework work with audio filters. In particular add a type field to AVFilterLink, change the field types: enum PixelFormat format -> int format in AVFilterBuffer enum PixelFormat *formats -> int *formats in AVFilterFormats enum PixelFormat *format -> int format in AVFilterLink and change the function signatures: AVFilterFormats *avfilter_make_format_list(const enum PixelFormat *pix_fmts); -> AVFilterFormats *avfilter_make_format_list(const int *fmts); int avfilter_add_colorspace(AVFilterFormats **avff, enum PixelFormat pix_fmt); -> int avfilter_add_format(AVFilterFormats **avff, int fmt); AVFilterFormats *avfilter_all_colorspaces(void); -> AVFilterFormats *avfilter_all_formats(enum AVMediaType type); This change breaks libavfilter API/ABI. Patch by S.N. Hemanth Meenakshisundaram |smeenaks|ucsd|edu|. Originally committed as revision 24424 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter.c dprintf* functions internal and declare them in anStefano Sabatini2010-07-18
| | | | | | internal.h header, so they can be easily used from other files. Originally committed as revision 24319 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use avfilter_copy_picref_props() along lavfi.Víctor Paesa2010-07-11
| | | | Originally committed as revision 24196 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Try to keep track of interlaced and top field first.Michael Niedermayer2010-05-07
| | | | Originally committed as revision 23044 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add version to AVClass so we can add to and use fields of AVClass without ↵Michael Niedermayer2010-04-28
| | | | | | ABI issues. Originally committed as revision 22987 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove variable whose value was never read. Found by clang.Bobby Bingham2010-04-03
| | | | Originally committed as revision 22794 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVFilterPicRef.pos field and make libavfilter propagate streamStefano Sabatini2010-03-13
| | | | | | | | | | | byte position information, as stored in the pkt.pos, through the filterchain. Note that the pos field is added *non* at the end of the AVFilterPicRef struct, thus breaking ABI compatibility, which is allowed as the API is still considered non-stable. Originally committed as revision 22506 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Show aspect ratio information in dprintf_picref() traces.Stefano Sabatini2010-03-06
| | | | Originally committed as revision 22255 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid usage of avcodec_get_pix_fmt_name() andStefano Sabatini2010-01-31
| | | | | | | | | avcodec_get_chroma_sub_sample(), directly access av_pix_fmt_descriptors instead. Remove some of the dependancies of lavfi on lavc. Originally committed as revision 21575 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_insert_filter() log the names of the filters betweenStefano Sabatini2010-01-13
| | | | | | which it inserts the new filter. Originally committed as revision 21177 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_insert_filter() print the instance name of theStefano Sabatini2010-01-10
| | | | | | | auto-inserted scale filter, rather than the filter name, as this provides more information. Originally committed as revision 21123 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for XXX_configuration() andStefano Sabatini2010-01-03
| | | | | | XXX_license() functions, consistent with the rest of FFmpeg. Originally committed as revision 21005 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a slice_dir parameter to avfilter_draw_slice().Stefano Sabatini2009-12-04
| | | | | | | | | | Avoid the need to implement slice direction detection code, thus reducing code duplication. See the thread: "[FFmpeg-devel] [PATCH] Add a slice_dir parameter to avfilter_start_frame()". Originally committed as revision 20734 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avfilter_next().Stefano Sabatini2009-11-24
| | | | Originally committed as revision 20607 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement a new registration system for filters.Stefano Sabatini2009-11-24
| | | | | | | | | | | | | Create a new static array containing pointers to the AVFilter definitions, so that the non-constant next filter in the AVFilter struct is not anymore required and the AVFilter definitions may be stored in shareable memory. Also change the signature for avfilter_register(), make it return an int since it may fail if there is not enough space in the static array for the registered filters. Originally committed as revision 20605 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add functions to return library license and library configuration.Diego Biurrun2009-11-18
| | | | Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_get_video_buffer() useStefano Sabatini2009-11-03
| | | | | | | | | | | | | | | avfilter_default_get_video_buffer() if the get_video_buffer() callback is not defined in a filter. Libavfilter filters author have to explicitely define the get_video_buffer() callback if they want the buffer to be requested to the filter following in the filterchain. See the thread: "[FFmpeg-devel] [PATCH] Make avfilter_get_video_buffer() use default_get_video_buffer if callback not defined". Originally committed as revision 20444 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Introduce first_avfilter and use that, together with AVFilter.next,Stefano Sabatini2009-10-27
| | | | | | | | | for registering and finding filters, rather than use the struct AVFilterList, which is removed. Simplify the filter registration management code. Originally committed as revision 20387 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make dprintf_link() show the name of the link pixel format.Stefano Sabatini2009-10-25
| | | | Originally committed as revision 20372 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix recursive avfilter_poll_frame(). It was doingVitor Sessak2009-10-18
| | | | | | | | min = FFMIN(min, avfilter_poll_frame(link->src->inputs[i])) which, since FFMIN is a macro, was calling itself twice for every input, causing an exponential cost in time. Originally committed as revision 20295 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_get_video_buffer() recursive.Stefano Sabatini2009-10-18
| | | | | | | | | | | | | | | | | | | When called on a link with a filter whose destination pad has not a get_video_buffer callback defined, it will call avfilter_get_video_buffer() on the first output link of the destination filer, rather than use avfilter_default_get_buffer(), so the video buffer can be allocated forward in the filterchain. Also add the w and h parameters to avfilter_get_video_buffer(), as the minimum width and height requested by each filter in the filterchain may change, this allows for example a memcpy-less pad filter. This change breaks API / ABI backward compatibility. See the thread: "[PATCH] Implement recusive avfilter_get_video_buffer()". Originally committed as revision 20272 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement trace messages logging in the filterchain processing.Stefano Sabatini2009-10-06
| | | | | | It is only enabled when the DEBUG symbol is defined. Originally committed as revision 20187 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Also copy pixel_aspect when copying the picref in avfilter_start_frame.Cédric Schieli2009-04-14
| | | | | | This avoids a division by zero in '[in]fifo,scale[out]' Originally committed as revision 18507 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make static the list of registered filters.Víctor Paesa2009-03-26
| | | | Originally committed as revision 18198 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after the last commit, while at it also add some spaces forStefano Sabatini2009-01-12
| | | | | | improving readability. Originally committed as revision 16566 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_open() set to NULL the pads and the filters when theStefano Sabatini2009-01-12
| | | | | | | corresponding count is zero, rather than allocate a 16 bytes sized block for them. Improve safety. Originally committed as revision 16565 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement the avfilter_default_draw_slice() handler and use it inStefano Sabatini2009-01-11
| | | | | | | avfilter_draw_slice() when the draw_slice callback is not defined in the input pad. Originally committed as revision 16554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use PIX_FMT_NONE to silence icc warning #188:Carl Eugen Hoyos2008-11-26
| | | | | | enumerated type mixed with another type Originally committed as revision 15942 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avfilter_version().Stefano Sabatini2008-08-08
| | | | Originally committed as revision 14669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix AVClass for avfilterMåns Rullgård2008-03-07
| | | | Originally committed as revision 12357 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not copy more data than neededVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-15 21:11:35 Originally committed as revision 12061 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove header now made uselessVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-12 20:59:51 Originally committed as revision 12060 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded function.Vitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-12 20:54:11 Originally committed as revision 12059 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Missed this file in my conditional compilation patchVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-12 20:40:32 Originally committed as revision 12058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* SimplifyVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-11 18:19:37 Originally committed as revision 12057 to svn://svn.ffmpeg.org/ffmpeg/trunk
* SimplifyVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-11 17:35:13 Originally committed as revision 12056 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Indent after last commitVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-11 17:29:12 Originally committed as revision 12055 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneded elseVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-11 17:18:16 Originally committed as revision 12054 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetical: indentationVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-11 17:17:15 Originally committed as revision 12053 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Nit: AlignmentVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-11 17:16:35 Originally committed as revision 12052 to svn://svn.ffmpeg.org/ffmpeg/trunk