summaryrefslogtreecommitdiff
path: root/libavfilter/vf_showinfo.c
Commit message (Collapse)AuthorAge
* lavfi/vf_showinfo: print frame durationsAnton Khirnov2022-07-19
|
* avfilter/showinfo: refactor to use avutil/uuidPierre-Anthony Lemieux2022-06-12
|
* avfilter: support for CUVA HDR Vivid metadataLimin Wang2022-03-01
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* lavfi/showinfo: fix printf precision for dovi metadataNiklas Haas2022-01-04
| | | | | | | Fix warning caused by this field changing from uint64_t to uint16_t. Signed-off-by: Niklas Haas <git@haasn.dev> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavfi/showinfo: Support AV_FRAME_DATA_DOVI_METADATANiklas Haas2022-01-04
| | | | | Signed-off-by: Niklas Haas <git@haasn.dev> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfilter: add AVFILTER_FLAG_METADATA_ONLYAnton Khirnov2021-12-04
| | | | | | This flag allows distinguishing between filters that actually modify the data and those that only modify metadata or gather some stream information.
* avfilter/vf_showinfo: small adjustments for the HDR10+ dumpLimin Wang2021-10-20
| | | | | | | | | | | | | | | | | | | | summary for the adjustments: 1, remove the extra "," in the ,} ...{0.2004,0.3001,0.4008,0.5005,0.6002,0.7009,0.8006,0.9013,} to ...{0.2004,0.3001,0.4008,0.5005,0.6002,0.7009,0.8006,0.9013} 2, add "," between the } and new field } fraction_bright_pixels to }, fraction_bright_pixels 3, remove the extra space between "} }" ...{0.2004,0.3001,0.4008,0.5005,0.6002,0.7009,0.8006,0.9013,} } to ...{0.2004,0.3001,0.4008,0.5005,0.6002,0.7009,0.8006,0.9013,}} Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/vf_showinfo: minor adjustment for the dump format of ROILimin Wang2021-10-08
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/avfilter: Add numbers of (in|out)pads directly to AVFilterAndreas Rheinhardt2021-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now, an AVFilter's lists of input and output AVFilterPads were terminated by a sentinel and the only way to get the length of these lists was by using avfilter_pad_count(). This has two drawbacks: first, sizeof(AVFilterPad) is not negligible (i.e. 64B on 64bit systems); second, getting the size involves a function call instead of just reading the data. This commit therefore changes this. The sentinels are removed and new private fields nb_inputs and nb_outputs are added to AVFilter that contain the number of elements of the respective AVFilterPad array. Given that AVFilter.(in|out)puts are the only arrays of zero-terminated AVFilterPads an API user has access to (AVFilterContext.(in|out)put_pads are not zero-terminated and they already have a size field) the argument to avfilter_pad_count() is always one of these lists, so it just has to find the filter the list belongs to and read said number. This is slower than before, but a replacement function that just reads the internal numbers that users are expected to switch to will be added soon; and furthermore, avfilter_pad_count() is probably never called in hot loops anyway. This saves about 49KiB from the binary; notice that these sentinels are not in .bss despite being zeroed: they are in .data.rel.ro due to the non-sentinels. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfilter/vf_showinfo: add support for H.274 Film Grain Characteristics frame ↵James Almer2021-08-06
| | | | | | side data Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: Constify all AVFiltersAndreas Rheinhardt2021-04-27
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/buffer: Switch AVBuffer API to size_tAndreas Rheinhardt2021-04-27
| | | | | | | Announced in 14040a1d913794d9a3fd6406a6d8c2f0e37e0062. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavfi: show side data of detection bounding boxesGuo, Yejun2021-04-17
|
* avfilter/vf_showinfo: include the correct Dynamic HDR10+ headerJames Almer2020-12-06
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/vf_showinfo: add support for HDR10+ metadataMohammad Izadi2020-12-05
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/vf_showinfo: add const to the AVFrameSideData instanceLimin Wang2020-09-17
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/vf_showinfo: use av_timecode_make_smpte_tc_string2Marton Balint2020-09-13
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vf_showinfo: add dump_s12m_timecode() helper functionLimin Wang2020-07-08
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/vf_showinfo: check sd->size before reference the sd->dataLimin Wang2020-07-08
| | | | | | | Or it'll cause null pointer dereference if size < sizeof(uint32_t), also in case tc[0] > 3, the code will report error directly. Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/vf_showinfo: add a \n for end of ERROR and WARNNING logLimin Wang2020-06-28
| | | | | | | Note for info level, one extra \n will be print after the log. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/vf_showinfo: display H.26[45] user data unregistered sei messageLimin Wang2020-06-15
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* vf_showinfo: support AV_FRAME_DATA_VIDEO_ENC_PARAMSAnton Khirnov2020-05-12
|
* avfilter/vf_showinfo: limit the max number of timecodeLimin Wang2020-03-28
| | | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_showinfo: check if the s12m data size is validLimin Wang2020-03-27
| | | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_showinfo: fix the integer handling issuesLimin Wang2020-01-10
| | | | | | | Fixes CID 1457606 and 1457607 Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_showinfo: Fix erroneous results for mean and stdev with pixel ↵Limin Wang2020-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bits >8 Have tested with be and le pixel format on be and le system for >8bit. System: lmwang@ubuntu:~/ffmpeg.git.mips$ grep HAVE_BIGENDIAN config.h ffmpeg.git git:(showinfo) ✗ grep HAVE_BIGENDIAN config.h Test result: 1, yuv420p ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p,showinfo Master: mean:[16 128 128] stdev:[0.0 0.0 0.0] After applied the patch: mean:[16 128 128] stdev:[0.0 0.0 0.0] 2, yuv420p10le ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p10le,showinfo Master: mean:[32 1 1] stdev:[32.0 1.0 1.0] After applied the patch: mean:[64 512 512] stdev:[0.0 0.0 0.0] 3, yuv420p10be ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p10be,showinfo Master: mean:[32 1 1] stdev:[32.0 1.0 1.0] After applied the patch: mean:[64 512 512] stdev:[0.0 0.0 0.0] Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_showinfo: display GOP timecode side dataLimin Wang2019-09-06
| | | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/showinfo: support Content Light Level informationLimin Wang2019-08-17
| | | | | | | show real information instead of the unknown side data type message for HDR10 stream Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/showinfo: use error level when get invalid sidedataJun Zhao2019-08-08
| | | | | | | | Use error level when get invalid sidedata, and remove a unnecessary newline in error message. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavf/showinfo: support mastering display sidedataJun Zhao2019-08-08
| | | | | | support mastering display sidedata. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/showinfo: support regions of interest sidedataJun Zhao2019-07-21
| | | | | | support regions of interest sidedata Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* vf_showinfo: Fix timecode displayKieran Kunhya2019-03-09
|
* avfilter/vf_showinfo: allow checksums calculation to be disabledPaul B Mahol2018-12-09
| | | | Fixes #6987.
* avfilter/show_info : add print of color information (range, color_primaries, ↵Martin Vignali2018-10-24
| | | | color_trc, colorspace)
* lavfi/vf_showinfo: support displaying S12M timecode sidedataJosh de Kock2018-10-23
|
* lavu/lavc/lavf/lavfi: Do not use type modifier %zu on Windows MSVCRT.Carl Eugen Hoyos2017-12-17
|
* Merge commit '883ce264d9ffc5bdaf477e09ee155b03339c46a6'James Almer2017-10-23
|\ | | | | | | | | | | | | * commit '883ce264d9ffc5bdaf477e09ee155b03339c46a6': vf_showinfo: Display spherical properties Merged-by: James Almer <jamrial@gmail.com>
| * vf_showinfo: Display spherical propertiesVittorio Giovara2017-03-23
| |
* | Merge commit '3f128fc4a3fa1ef8a87974eb5484a997a84868fe'James Almer2017-10-23
|\| | | | | | | | | | | | | * commit '3f128fc4a3fa1ef8a87974eb5484a997a84868fe': vf_showinfo: Simplify reporting stereo3d information Merged-by: James Almer <jamrial@gmail.com>
| * vf_showinfo: Simplify reporting stereo3d informationVittorio Giovara2017-03-23
| |
* | avfilter: do not use AVFrame accessorMuhammad Faiz2017-04-23
| | | | | | | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | lavfi: split frame_count between input and output.Nicolas George2016-11-13
| | | | | | | | | | | | | | | | | | | | | | | | AVFilterLink.frame_count is supposed to count the number of frames that were passed on the link, but with min_samples, that number is not always the same for the source and destination filters. With the addition of a FIFO on the link, the difference will become more significant. Split the variable in two: frame_count_in counts the number of frames that entered the link, frame_count_out counts the number of frames that were sent to the destination filter.
* | avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-27
| | | | | | | | | | | | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit '1339009c4924a20e872aa62897097bf5d071157c'Hendrik Leppkes2015-11-11
|\| | | | | | | | | | | | | * commit '1339009c4924a20e872aa62897097bf5d071157c': vf_showinfo: show timebase & framerate too Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * vf_showinfo: show timebase & framerate tooMichael Niedermayer2015-11-09
| | | | | | | | | | (cherry picked from ffmpeg commit fdb93996811bacfa7b82995cdc0f93c46f3dc6cc) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | vf_showinfo: minimum widths for some early fieldsPeter Cordes2015-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on FPS, the pts_time string often changes length: ... pts_time:36.1 ... ... pts_time:36.1333 ... etc. The length changes make the output bounce around horribly, making it hard to scan down a column farther right than pts_time. The solution is to set minimum widths for n, pts, pts_time, and pos. This patch doesn't touch any of the fields in mean / stddev. The widths aren't intended to be wide enough that they're never exceeded, but you'll see only an occasional ripple to a new alignment, rather than bouncing. (Some fields, like pos, increase monotonically, which is why I left the minimum width for the field be smaller than it often gets to.) Signed-off-by: Peter Cordes <peter@cordes.ca>
* | avfilter/vf_showinfo: show timebase & framerate tooMichael Niedermayer2015-01-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6d96c7ea89600655b1f18a3b12f3f041fa714152'Michael Niedermayer2014-10-18
|\| | | | | | | | | | | | | | | | | | | | | * commit '6d96c7ea89600655b1f18a3b12f3f041fa714152': vf_showinfo: Forward the av_image_get_linesize error Conflicts: libavfilter/vf_showinfo.c See: 2aecfd4f209688a8365f18b351f0ecf12fe5f873 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vf_showinfo: Forward the av_image_get_linesize errorVittorio Giovara2014-10-18
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1087086
* | Merge commit '1ef9e8376466bb1e2c147e47554b94cab9c8b04a'Michael Niedermayer2014-08-04
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1ef9e8376466bb1e2c147e47554b94cab9c8b04a': avcodec: Deprecate dtg_active_format field in favor of avframe side-data Conflicts: doc/APIchanges libavcodec/avcodec.h libavcodec/mpeg12dec.c libavcodec/version.h libavfilter/vf_showinfo.c libavutil/frame.h libavutil/version.h See: 2a3c36e920d958e99fb4edf065a6713c30f2c2a9 Merged-by: Michael Niedermayer <michaelni@gmx.at>