summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale.c
Commit message (Collapse)AuthorAge
* scale: make the filter parametricStefano Sabatini2011-04-26
| | | | | | | | Make the filter accept parametric expressions for the output video size. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make config_props() return AVERROR(EINVAL) rather than 1 in case ofStefano Sabatini2011-01-16
| | | | | | | | failed SWScaleContext initialization. Fix issue2546. Originally committed as revision 26395 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
* Make init() return sensible error code rather than -1 in case ofStefano Sabatini2010-09-28
| | | | | | invalid values. Originally committed as revision 25248 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: apply nits.Stefano Sabatini2010-09-28
| | | | Originally committed as revision 25247 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing uses of NULL_IF_CONFIG_SMALL for the filters descriptions.Stefano Sabatini2010-09-24
| | | | Originally committed as revision 25182 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100L, fix vf_scale, since copy_ref_props now copy w and h, we must update themBaptiste Coudurier2010-08-12
| | | | Originally committed as revision 24781 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
* 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
* Use avfilter_copy_picref_props() along lavfi.VĂ­ctor Paesa2010-07-11
| | | | Originally committed as revision 24196 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a const declaration, fixing a warningEli Friedman2010-06-27
| | | | | | Patch by Eli Friedman, eli dot friedman at gmail Originally committed as revision 23830 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefix value for flags with "0x", to make it clear that it is anStefano Sabatini2010-05-23
| | | | | | hexadecimal value. Originally committed as revision 23262 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make config_props() show conversion information before to create theStefano Sabatini2010-05-07
| | | | | | | | | | swscale context. This makes eventual warnings issued in case of swscale context creation failure to be shown after the conversion information rather than before, which is slightly less confusing. Originally committed as revision 23056 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Log input size, input format and swscale flags used for conversion inStefano Sabatini2010-05-07
| | | | | | | | config_props(). Useful for debugging. Originally committed as revision 23055 to svn://svn.ffmpeg.org/ffmpeg/trunk
* c99 sucks. Replacing scanf("%i") by strtoul()Michael Niedermayer2010-05-07
| | | | Originally committed as revision 23053 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
* Support setting flags for sws.Michael Niedermayer2010-05-07
| | | | Originally committed as revision 23041 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the scale filter pass the pkt.pos information to the outputStefano Sabatini2010-03-13
| | | | | | picref. Originally committed as revision 22509 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use pixel format descriptors to check if the input format is paletted.Stefano Sabatini2010-02-01
| | | | Originally committed as revision 21597 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 the scale filter set in the input and output links only theStefano Sabatini2010-01-08
| | | | | | respective pixel formats effectively supported by libswscale. Originally committed as revision 21105 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
* Use the correct chroma values for the data[] array used inStefano Sabatini2009-11-29
| | | | | | | | | | draw_slice(). The chroma values to use are supposed to be those of the input format, not that of the output format, the latter case was causing crashes and chroma issues. Originally committed as revision 20660 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use a valid log context for av_log().Stefano Sabatini2009-11-29
| | | | Originally committed as revision 20659 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add scale filter.Stefano Sabatini2009-11-11
Originally committed as revision 20519 to svn://svn.ffmpeg.org/ffmpeg/trunk