summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_scale.c
Commit message (Collapse)AuthorAgeFilesLines
* vf_scale: Add an option to pass the scaler paramsLuca Barbato2015-08-261-1/+4
| | | | Reported-By: zehan@magicpony.technology
* Revert "lavfi: always check av_expr_parse_and_eval() return value"Anton Khirnov2015-05-051-4/+3
| | | | | | | 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-181-3/+4
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703624
* vf_scale: use the pixfmt descriptor APIAnton Khirnov2014-05-261-2/+8
| | | | | | 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-191-1/+1
|
* vf_scale: make the dar variable return the DAR.Rudolf Polzer2013-11-021-1/+2
| | | | | | | | | 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-281-1/+1
|
* pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-151-2/+2
|
* vf_scale: add endianness conversion pixel format in query_formatsJanne Grunau2013-05-061-2/+4
|
* lavfi: remove now unused args parameter from AVFilter.initAnton Khirnov2013-04-091-1/+1
|
* vf_scale: switch to an AVOptions-based system.Anton Khirnov2013-04-091-20/+30
|
* lavfi: switch to AVFrame.Anton Khirnov2013-03-081-13/+12
| | | | | Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it and use AVFrame instead.
* lavfi: merge start_frame/draw_slice/end_frameAnton Khirnov2012-11-281-66/+19
| | | | | 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-121-8/+10
|
* lavfi: convert input/ouput list compound literals to named objectsMans Rullgard2012-10-101-10/+22
| | | | | | | 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-081-3/+3
|
* vf_pad/scale: use double precision for aspect ratios.Anton Khirnov2012-10-061-2/+2
| | | | | | Fixes Bug 203. CC:libav-stable@libav.org
* Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi: check all avfilter_ref_buffer() calls for errors.Anton Khirnov2012-07-221-3/+11
|
* lavfi: add error handling to draw_slice().Anton Khirnov2012-07-221-5/+5
|
* lavfi: add error handling to start_frame().Anton Khirnov2012-07-221-5/+14
|
* lavfi: use const for AVFilterPad declarations in all filters.Ronald S. Bultje2012-07-211-10/+10
|
* lavfi: make filters less verbose.Anton Khirnov2012-06-261-1/+1
|
* lavfi: remove 'opaque' parameter from AVFilter.init()Anton Khirnov2012-06-261-1/+1
| | | | | | 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-131-0/+1
| | | | It will allow adding new fields to it without ABI breaks.
* lavfi: make avfilter_get_video_buffer() private on next bump.Anton Khirnov2012-06-131-1/+1
| | | | | 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-051-4/+5
| | | | | 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-051-6/+7
| | | | | 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-091-1/+10
|
* vf_scale: avoid a pointless memcpy in no-op conversion.Anton Khirnov2012-04-011-5/+20
| | | | I.e. just pass the buffer along when src parameters == dst parameters.
* Mark mutable static data const where appropriate.Alex Converse2012-02-211-1/+1
|
* pixdesc: mark pseudopaletted formats with a special flag.Anton Khirnov2012-02-081-1/+2
| | | | | | 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-281-0/+8
| | | | | | per frame Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vf_scale: add a "sar" variableStefano Sabatini2011-09-281-3/+7
| | | | | | | 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-271-0/+2
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-031-0/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* scale: make the filter parametricStefano Sabatini2011-04-261-9/+84
| | | | | | | | 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-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make config_props() return AVERROR(EINVAL) rather than 1 in case ofStefano Sabatini2011-01-161-1/+3
| | | | | | | | 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-281-1/+1
| | | | | | 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-281-1/+1
| | | | | | invalid values. Originally committed as revision 25248 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: apply nits.Stefano Sabatini2010-09-281-3/+3
| | | | 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-241-1/+1
| | | | 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-121-0/+2
| | | | Originally committed as revision 24781 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Separate video specific BufferRef properties into VideoProps.S.N. Hemanth Meenakshisundaram2010-08-111-3/+3
| | | | | | | | | | | | 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-071-4/+4
| | | | | | | | | | | | | | 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-071-2/+2
| | | | | | | | | | | | 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-071-3/+3
| | | | | | | | | 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-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-111-4/+1
| | | | Originally committed as revision 24196 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud