summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale.c
Commit message (Collapse)AuthorAge
* vf_scale: Add an option to pass the scaler paramsLuca Barbato2015-08-26
| | | | Reported-By: zehan@magicpony.technology
* Revert "lavfi: always check av_expr_parse_and_eval() return value"Anton Khirnov2015-05-05
| | | | | | | This reverts commit 63be97ec403023fb664798432acedaf6e6922527. All those calls were unchecked on purpose, as explained in the comments in the code.
* lavfi: always check av_expr_parse_and_eval() return valueVittorio Giovara2014-12-18
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703624
* vf_scale: use the pixfmt descriptor APIAnton Khirnov2014-05-26
| | | | | | Avoid using AV_PIX_FMT_NB, since that hardcodes the number of pixel formats into lavfi and will break when a shared lavu is updated, adding new pixel formats.
* lavfi: name anonymous structsVittorio Giovara2014-04-19
|
* vf_scale: make the dar variable return the DAR.Rudolf Polzer2013-11-02
| | | | | | | | | Before, it just returned width/height. Correct is width/height*sar. That way it is consistent with DAR as in probe output and setdar. Signed-off-by: Rudolf Polzer <divverent@xonotic.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavfi: do not export the filters from shared objectsAnton Khirnov2013-10-28
|
* pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-15
|
* vf_scale: add endianness conversion pixel format in query_formatsJanne Grunau2013-05-06
|
* lavfi: remove now unused args parameter from AVFilter.initAnton Khirnov2013-04-09
|
* vf_scale: switch to an AVOptions-based system.Anton Khirnov2013-04-09
|
* lavfi: switch to AVFrame.Anton Khirnov2013-03-08
| | | | | Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it and use AVFrame instead.
* lavfi: merge start_frame/draw_slice/end_frameAnton Khirnov2012-11-28
| | | | | Any alleged performance benefits gained from the split are purely mythological and do not justify added code complexity.
* lavfi: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-12
|
* lavfi: convert input/ouput list compound literals to named objectsMans Rullgard2012-10-10
| | | | | | | A number of compilers, for example those from TI and IBM, choke on these initialisers. The current style is also quite ugly. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* vf_pad/scale: use double precision for aspect ratios.Anton Khirnov2012-10-06
| | | | | | Fixes Bug 203. CC:libav-stable@libav.org
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi: check all avfilter_ref_buffer() calls for errors.Anton Khirnov2012-07-22
|
* lavfi: add error handling to draw_slice().Anton Khirnov2012-07-22
|
* lavfi: add error handling to start_frame().Anton Khirnov2012-07-22
|
* lavfi: use const for AVFilterPad declarations in all filters.Ronald S. Bultje2012-07-21
|
* lavfi: make filters less verbose.Anton Khirnov2012-06-26
|
* lavfi: remove 'opaque' parameter from AVFilter.init()Anton Khirnov2012-06-26
| | | | | | It is not used in any filters currently and is inherently evil. If passing binary data to filters is required in the future, it should be done with some AVOptions-based system.
* lavfi: make AVFilterPad opaque after two major bumps.Anton Khirnov2012-06-13
| | | | It will allow adding new fields to it without ABI breaks.
* lavfi: make avfilter_get_video_buffer() private on next bump.Anton Khirnov2012-06-13
| | | | | They are only useful inside filters and we don't allow user filters for now.
* lavfi: remove request/poll and drawing functions from public API on next bumpAnton Khirnov2012-06-05
| | | | | They are only useful inside filters and we don't allow user filters for now.
* lavfi: make formats API private on next bump.Anton Khirnov2012-06-05
| | | | | It is only useful inside filters and we don't allow user filters for now.
* vf_scale: support named constants for sws flags.Anton Khirnov2012-04-09
|
* vf_scale: avoid a pointless memcpy in no-op conversion.Anton Khirnov2012-04-01
| | | | I.e. just pass the buffer along when src parameters == dst parameters.
* Mark mutable static data const where appropriate.Alex Converse2012-02-21
|
* pixdesc: mark pseudopaletted formats with a special flag.Anton Khirnov2012-02-08
| | | | | | This makes it possible to dintinguish them from PAL8. Fixes an invalid write in avpicture_layout().
* vf_scale: apply the same transform to the aspect during init that is applied ↵Michael Niedermayer2011-09-28
| | | | | | per frame Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vf_scale: add a "sar" variableStefano Sabatini2011-09-28
| | | | | | | Also create a "dar" alias for the "a" variable, for avoiding possible confusion between dar/sar. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vf_scale: don't leak SWS context.Michael Niedermayer2011-08-27
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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