summaryrefslogtreecommitdiff
path: root/libavfilter/defaults.c
Commit message (Collapse)AuthorAge
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-20
| | | | av_get_bits_per_sample_fmt() is deprecated.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Remove forgotten if (p) av_free(p) formsClément Bœsch2011-02-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix fate breakage in r26382.Ronald S. Bultje2011-01-16
| | | | Originally committed as revision 26383 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless free, fix warning:Baptiste Coudurier2011-01-16
| | | | | | | libavfilter/defaults.c: In function 'avfilter_default_get_audio_buffer': libavfilter/defaults.c:129: warning: 'buf' is used uninitialized in this function Originally committed as revision 26382 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename AVFilterBufferRefAudioProps.samples_nb to nb_samples.Stefano Sabatini2011-01-15
| | | | | | | More consistent with the rest of FFmpeg and sounds more natural to English speaking people. Originally committed as revision 26374 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_image_alloc() and use it inStefano Sabatini2010-12-04
| | | | | | avfilter_default_get_video_buffer(). Originally committed as revision 25878 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In libavfilter, use consistently "Copyright (c)" in the licenseStefano Sabatini2010-11-28
| | | | | | headers. Originally committed as revision 25838 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avfilter_get_video_buffer_ref_from_arrays().Stefano Sabatini2010-11-25
| | | | Originally committed as revision 25827 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_default_free_buffer() an internal shared symbol, so thatStefano Sabatini2010-11-25
| | | | | | it can be referenced outside defaults.c. Originally committed as revision 25826 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use the new libavcore audio channel API.Stefano Sabatini2010-11-21
| | | | | | | This also allows to remove a linking dependency of libavfilter on libavcodec. Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove usage of deprecated libavcodec/audioconvert.h functions.Stefano Sabatini2010-11-03
| | | | Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a time_base field to AVFilterLink.Stefano Sabatini2010-10-10
| | | | | | | This is required for allowing a filter to use a time base different from AV_TIME_BASE_Q, as it was previously assumed. Originally committed as revision 25441 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename out -> outlink, link -> inlink in various defaults.c functions,Stefano Sabatini2010-10-10
| | | | | | improve readability / consistency. Originally committed as revision 25434 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing NULL checks, fix crash.Stefano Sabatini2010-09-24
| | | | Originally committed as revision 25181 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-07
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: apply misc style fixes.Stefano Sabatini2010-08-17
| | | | Originally committed as revision 24812 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement libavfilter audio framework.S.N. Hemanth Meenakshisundaram2010-08-17
| | | | | | Patch by S.N. Hemanth Meenakshisundaram * smeenaks * ucsd * edu *. Originally committed as revision 24811 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing checks in avfilter_default_get_video_buffer().Stefano Sabatini2010-08-17
| | | | Originally committed as revision 24809 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Resize data and linesize in AVFilterBufferRef to 8.S.N. Hemanth Meenakshisundaram2010-08-11
| | | | | | | | | This is required to make AVFilterBufferRef able to contain also audio data, required by audio filtering integration. Patch by S.N. Hemanth Meenakshisundaram smeen?ks@ucsd.ed?. Originally committed as revision 24773 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
* Move format from AVFilterBuffer to AVFilterPicRef.S.N. Hemanth Meenakshisundaram2010-08-07
| | | | | | Patch by S.N. Hemanth Meenakshisundaram |smeenaks|ucsd|edu|. Originally committed as revision 24728 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix the size of the data to be copied from an AVFilterBuffer to anS.N. Hemanth Meenakshisundaram2010-08-07
| | | | | | | | | | | AVFilterBuffereRef in avfilter_default_get_video_buffer(). The error was being caused by the previous patch which resized AVFilterBuffer's data and linesize arrays to 8. Patch by S.N. Hemanth Meenakshisundaram" &smeenaks&ucsd&edu&. Originally committed as revision 24727 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_default_get_video_buffer() use functions inStefano Sabatini2010-07-30
| | | | | | | | | libavcore/imgutils.c rather than ff_fill_linesize() and ff_fill_pointer(). Also remove a dependency on libavcodec. Originally committed as revision 24586 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
* Remove AVFilterBuffer w and h fields.S.N. Hemanth Meenakshisundaram2010-07-17
| | | | | | | | | | These fields are never used, and they do not seem to belong to AVFilterBuffer anymore, now that it is now a media-independent structure and these fields are video-related. Patch by S.N. Hemanth Meenakshisundaram smeenaks ! ucsd ! edu. Originally committed as revision 24291 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename AVFilterPic to AVFilterBuffer.S.N. Hemanth Meenakshisundaram2010-07-17
| | | | | | | | | The struct is going to be used for audio data as well, so the new name is less misleading. Patch by S.N. Hemanth Meenakshisundaram smeenaks AT ucsd DOT edu. Originally committed as revision 24284 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
* Alloc 16 extra bytes in libavfilter frames. Needed for MMX-optimized swscale.Vitor Sessak2010-05-10
| | | | | | Fix issue 1924. Originally committed as revision 23077 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
* Create a set of null callback functions.Bobby Bingham2010-03-18
| | | | | | These are useful for filters which don't modify the image data. Originally committed as revision 22594 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
* avfilter: make avfilter_default_free_video_buffer() staticMåns Rullgård2010-03-08
| | | | | | | This function is not referenced outside this file and has no prototype. Feel free to flame if this is wrong. Originally committed as revision 22314 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_default_start_frame() correctly pass the aspect ratioStefano Sabatini2010-03-07
| | | | | | information to the next filter. Originally committed as revision 22300 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make avfilter_default_start_frame() request a buffer with the sameStefano Sabatini2010-01-16
| | | | | | | | size of the output link of the destination filter, rather than of the size of the input link. In particular this fixes a crash in the rotate filter. Originally committed as revision 21238 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
* 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
* Add w and h fields to AVFilterPic.Stefano Sabatini2009-10-07
| | | | | | | See the thread: "[FFmpeg-devel] [PATCH] Add w,h fields to AVFilterPic". Originally committed as revision 20189 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ALIGN macro to libavutil/common.h and use it in various placesDavid Conrad2009-05-22
| | | | Originally committed as revision 18898 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 full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Force alignment of pic->linesizeVitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-15 21:05:06 Originally committed as revision 12075 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Force linesize to be a multiple of 16Vitor Sessak2008-02-15
| | | | | | Commited in SoC by Vitor Sessak on 2008-02-10 20:51:58 Originally committed as revision 12074 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rework link property configuration system.Vitor Sessak2008-02-15
| | | | | | | | | | This can now handle filters which are added to graphs out of order, including auto-inserted scale filters. As an added bonus, it can now detect circular filter chains which wouldn't work anyway. Commited in SoC by Bobby Bingham on 2007-12-24 03:22:10 Originally committed as revision 12073 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rewrite colorspace negotiation.Vitor Sessak2008-02-15
| | | | | | Commited in SoC by Bobby Bingham on 2007-12-20 19:36:26 Originally committed as revision 12072 to svn://svn.ffmpeg.org/ffmpeg/trunk