Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-20vf_scale: Detecting changes of incoming frame properties and dinamically ↵Bela Bodecs
evaluate width and height expressions Currently scale filter accepts expressions in its width and height parameters but evaluates them only once at init and replaces them with their actual values. Later on, if any parameter of incoming frames changes - ie those were used in the original size expressions - then they new values will not have any affect for width and heigth values. They remain the same. This patch makes possible that width and height expressions be evaluated frame-by-frame basis if width/height/sar/format properties of incoming frame would change. To retain the current behaviour and not to break any earlier app, a new config parameter has been introduced. Its name is "eval" and it has two distinct values: "init" and "frame". The default value is "init". This feature is very usefull in case of DVBT mpeg-ts streams where SAR may change time-by-time from 4/3 to 16/9 and vica-versa and the size remains the same and you want to create a variable sized output with 1/1 SAR. Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-31avfilter/vf_scale: set proper out frame color rangeThomas Mundt
Prevents that following scalers in the filter chain will do unintentional color range conversions. Fixes Ticket #5096 Signed-off-by: Thomas Mundt <loudmax@yahoo.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-21lavfi/scale: add nb_slices debug optionClément Bœsch
2015-12-04avfilter: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch
2015-10-14avfilter/all: propagate errors of functions from avfilter/formatsGanesh Ajjanagadde
Many of the functions from avfilter/formats can return errors, usually AVERROR(ENOMEM). This propagates the return values. All of these were found by using av_warn_unused_result, demonstrating its utility. Tested with FATE. I am least sure of the changes to avfilter/filtergraph, since I don't know what/how reduce_format is intended to behave and how it should react to errors. Fixes: CID 1325680, 1325679, 1325678. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Previous version Reviewed-by: Nicolas George <george@nsup.org> Previous version Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-09-24vf_scale: conditionally override chroma positionChristophe Gisquet
For yuv420p, the chroma position is unilaterally overriden, even if ffmpeg's command-line explicitly set it. To fix this, override only if the value is the default one. Regression since 1515bfb3. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-01lavfi/scale: Pass src_range and dst_range to libswscale.Carl Eugen Hoyos
Fixes ticket #4812.
2015-08-31Merge commit 'b1abd2aaf91be249f24cb74db9c205d9e4ca9da6'Hendrik Leppkes
* commit 'b1abd2aaf91be249f24cb74db9c205d9e4ca9da6': vf_scale: Add an option to pass the scaler params Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-08-31avfilter/vf_scale: If no output color matrix is specified, use the inputMichael Niedermayer
This should only affect yuv->yuv, and not change behavior Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-31avfilter/vf_scale: Do not skip scale if the color matrix mismatchesMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-31avfilter/vf_scale: Do not skip scale if range mismatchesCarl Eugen Hoyos
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-26vf_scale: Add an option to pass the scaler paramsLuca Barbato
Reported-By: zehan@magicpony.technology
2015-08-18scale2ref: override request_frame() and correctly connect them to the ↵Michael Niedermayer
corresponding inputs Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-18avfilter/vf_scale: Set scale2ref ref output timebaseMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-17avfilter: add scale2ref filterMichael Niedermayer
This filter can be used to scale one stream to match another or based on another, useful to scale subtitles or other things to be overlayed Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-08avfilter/vf_scale: apply generic options after flags.Michael Niedermayer
Otherwise the flags overwrite anything set by the generic stuff to the flags Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-07-21libavfilter/vf_scale: implement process_commandBernd Bleßmann
Signed-off-by: Bernd Bleßmann <bb@it-entwicklung.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-05-05Revert "lavfi: always check av_expr_parse_and_eval() return value"Anton Khirnov
This reverts commit 63be97ec403023fb664798432acedaf6e6922527. All those calls were unchecked on purpose, as explained in the comments in the code.
2015-04-13avfilter/vf_scale: Add warning for AVCOL_SPC_YCGCOMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-12-25vf_scale: Use correct chroma positions for YUV420PKieran Kunhya
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-12-19lavfi: always check av_expr_parse_and_eval() return valueVittorio Giovara
CC: libav-stable@libav.org Bug-Id: CID 703624
2014-09-21avfilter/vf_scale: Allow chroma samples to be above and to the left of luma ↵Michael Niedermayer
samples Found-by: Kierank Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-07-28avfilter/vf_scale: fix log message categoryMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-27Merge commit '862f33c10ea38ea49fa4188725df5e5246dbd1d8'Michael Niedermayer
* commit '862f33c10ea38ea49fa4188725df5e5246dbd1d8': vf_scale: use the pixfmt descriptor API Conflicts: libavfilter/vf_scale.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-27vf_scale: use the pixfmt descriptor APIAnton Khirnov
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.
2014-04-19Merge commit '58400ac133bcfb6bf8196b4e5208bc178307739b'Michael Niedermayer
* commit '58400ac133bcfb6bf8196b4e5208bc178307739b': lavfi: name anonymous structs Conflicts: libavfilter/buffersink.c libavfilter/f_select.c libavfilter/src_movie.c libavfilter/vf_drawbox.c libavfilter/vf_drawtext.c libavfilter/vf_overlay.c libavfilter/vf_showinfo.c libavfilter/vf_unsharp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-19lavfi: name anonymous structsVittorio Giovara
2014-01-25avfilter/vf_scale: simplify alignment codeMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-01-25avfilter/vf_scale: do aspect ratio and scale factor compensation togetherMichael Niedermayer
Fixes rounding error Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-01-25Documentation for scale filter factorLars Kiesow
2014-01-25Fixed factor for scale filterLars Kiesow
2014-01-25Factors for scale filterLars Kiesow
2013-11-04avfilter/vf_scale: add ov/hsubMichael Niedermayer
Suggested-by: divVerent Reviewed-by: Stefano Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-03vf_scale: make the dar variable return the DAR.Rudolf Polzer
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>
2013-10-29Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: lavfi: do not export the filters from shared objects Conflicts: libavfilter/af_amix.c libavfilter/af_anull.c libavfilter/asrc_anullsrc.c libavfilter/f_select.c libavfilter/f_settb.c libavfilter/split.c libavfilter/src_movie.c libavfilter/vf_aspect.c libavfilter/vf_blackframe.c libavfilter/vf_colorbalance.c libavfilter/vf_copy.c libavfilter/vf_crop.c libavfilter/vf_cropdetect.c libavfilter/vf_drawbox.c libavfilter/vf_format.c libavfilter/vf_framestep.c libavfilter/vf_frei0r.c libavfilter/vf_hflip.c libavfilter/vf_libopencv.c libavfilter/vf_lut.c libavfilter/vf_null.c libavfilter/vf_overlay.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_unsharp.c libavfilter/vf_vflip.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-10-28lavfi: do not export the filters from shared objectsAnton Khirnov
2013-10-23avfilter/vf_scale: Correct vf_scale mappings from arguments to color rangeRobert Krüger
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-10-06avfilter/vf_scale: dont duplicate default.Michael Niedermayer
use the defaults set by swscale Suggested-by: stefano Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-10-06avfilter/vf_scale: change the default scaler to bicubicMichael Niedermayer
See: [FFmpeg-devel] [PATCH] swscale/options: switch default to bicubic Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-21lavfi/pad,crop,scale: remove options description from filter descriptionPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2013-09-12avfilter: various cosmeticsPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2013-08-16avfilter/vf_scale+aresample: minor simpificationMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-16avfilter/vf_scale: generic swscale option supportMichael Niedermayer
With this all AVOptions from swscale can be set without each needing changes to vf_scale.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-04vf_scale: add force_original_aspect_ratioTimothy Gu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-27avfilter/vf_scale: set in_color_matrix default to "auto"Michael Niedermayer
2013-07-27avfilter/vf_scale: use sws_getCoefficients()Michael Niedermayer
Found-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-25avfilter/vf_scale: use the inputs color range when its set and its not ↵Michael Niedermayer
overridden Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-24vf_scale: add input h/v_chr_pos parametersMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-24vf_scale: add output h/v_chr_pos parameterssMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-21vfilter/vf_scale: avoid using "{}"Michael Niedermayer
Should fix compile issues with MSVC Signed-off-by: Michael Niedermayer <michaelni@gmx.at>