summaryrefslogtreecommitdiff
path: root/libavfilter/defaults.c
Commit message (Collapse)AuthorAge
* avfilter: pool draining and self destruction support.Michael Niedermayer2012-01-12
| | | | | | This should fix a memleak. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi: fix avfilter_default_get_audio_buffer() after changes in ↵Stefano Sabatini2011-12-27
| | | | | | | | | | | | | | | av_samples_alloc() av_samples_alloc() behavior changed in bbb46f3ec, resulting in random data filling the data[] and linesize[] arrays of the returned AVFilterBufferRef, which was resulting in wrong behavior in case of code checking on data[i] nullity. In particular fixes crash in avfilter_filter_samples(): for (i = 0; samplesref->data[i]; i++) memcpy(link->cur_buf->data[i], samplesref->data[i], samplesref->linesize[0]); and correctly fills the linesize[] array for planar data.
* avfilter: align allocated images to 32 for AVX and IFFMichael Niedermayer2011-11-30
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: libavutil: add utility functions to simplify allocation of audio buffers. libavutil: add planar sample formats and av_sample_fmt_is_planar() avconv: fix segfault at EOF with delayed pictures pcmdec: remove unneeded resetting of samples pointer avconv: remove a now unused parameter from output_packet(). avconv: formatting fixes in output_packet() avconv: declare some variables in blocks where they are used avconv: use the same behavior when decoding audio/video/subs bethsoftvideo: return proper consumed size for palette packets. cdg: skip packets that don't contain a cdg command. crcenc: add flags avconv: use vsync 0 for AVFMT_NOTIMESTAMPS formats. tiffenc: add a private option for selecting compression algorithm md5enc: add flags ARM: remove needless .text/.align directives Conflicts: doc/APIchanges libavcodec/tiffenc.c libavutil/avutil.h libavutil/samplefmt.c libavutil/samplefmt.h tests/ref/fate/bethsoft-vid tests/ref/fate/cdgraphics tests/ref/fate/film-cvid-pcm-stereo-8bit tests/ref/fate/mpeg2-field-enc tests/ref/fate/nuv tests/ref/fate/tiertex-seq tests/ref/fate/tscc-32bit tests/ref/fate/vmnc-32bit Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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>
* | lavfi: rename avfilter_all_* function names to avfilter_make_all_*Stefano Sabatini2011-09-16
| | | | | | | | | | | | | | | | | | | | A function name should tell what the function does rather than what the function returns. This also avoids possible conflicts (e.g. between a function and a public list of all supported formats), and clarifies the code. Breaks audio API/ABI, add a backward compatibility layer for video API/ABI.
* | lavfi: simplify signature for avfilter_get_audio_buffer() and friendsStefano Sabatini2011-09-12
| | | | | | | | | | | | | | | | | | | | | | The additional parameters were never used and are complicating the function interface. Also, they were inconsistent with the way the video API works. So this assumes that a requested samples buffer will have *always* the format specified in the requested link. This breaks audio filtering API and ABI.
* | lavfi: avoid void* arithmetic in defaults.c:set_common_formats()Stefano Sabatini2011-08-06
| | | | | | | | | | | | | | | | | | void* pointer arithmetic semantics is undefined, use uint8_t* instead. Also fix GCC warnings: defaults.c: In function ‘set_common_formats’: defaults.c:184: warning: pointer of type ‘void *’ used in arithmetic defaults.c:189: warning: pointer of type ‘void *’ used in arithmetic
* | lavfi: remove default config_props() callback and refactor ↵Mina Nagy Zaki2011-08-06
| | | | | | | | | | | | | | | | | | | | | | | | avfilter_config_links() Link properties have to be checked after config_props() is called to make sure everything is sane, so the default config_props() for output links was redundant. Also remove channel_layout check as it is now negotiated. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
* | lavfi: add audio channel packing negotiation fieldsMina Nagy Zaki2011-07-16
| | | | | | | | Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
* | lavfi: add layout negotiation fields and helper functions.Mina Nagy Zaki2011-06-19
| |
* | lavfi: use avfilter_get_audio_buffer_ref_from_arrays() in defaults.cStefano Sabatini2011-06-10
| | | | | | | | | | Use avfilter_get_audio_buffer_ref_from_arrays() in avfilter_default_get_audio_buffer(), simplify.
* | lavfi: use av_samples_alloc() in avfilter_default_get_audio_buffer()Stefano Sabatini2011-06-06
| |
* | lavfi: prefer nb_samples over size in AVFilterBufferRefAudioPropsStefano Sabatini2011-06-06
| | | | | | | | | | | | | | | | | | Remove AVFilterBufferRefAudioProps.size, and use nb_samples in avfilter_get_audio_buffer() and avfilter_default_get_audio_buffer() in place of size. This is required as the size in the audio buffer may be aligned, so it may not contain a well defined number of samples.
* | lavfi: reindent after the previous commitStefano Sabatini2011-06-02
| |
* | lavfi: add braces around the block of an if() expression in ↵Stefano Sabatini2011-06-02
| | | | | | | | | | | | avfilter_default_get_video_buffer Clarify code layout.
* | lavfi: clarify the context of a comment in avfilter_default_get_video_buffer()Stefano Sabatini2011-06-02
| | | | | | | | The comment is meant to be about the align parameter.
* | lavfi: apply misc style fixesStefano Sabatini2011-06-02
| | | | | | | | Adopt K&R style for overall consistency/readability.
* | avfilter: dont use AVFilterLink as priv for pictures as its freed too early.Michael Niedermayer2011-05-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avfilter: Fix ticket82 / fix initial buffer values.Michael Niedermayer2011-05-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | AVFilter: use picture pool to avoid malloc().Michael Niedermayer2011-05-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge libavcore into libavutilReinhard Tartler2011-02-16
| | | | | | | | Done to keep ABI compatible. Otherwise this is just silly
* | Remove forgotten if (p) av_free(p) formsClément Bœsch2011-02-06
|/ | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 290849e2a4e76484f1a34506782e8dbfe7bbe406)
* 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