Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: ffmpegagent <ffmpegagent@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Cc: softworkz <softworkz@hotmail.com>
Subject: [FFmpeg-devel] [PATCH v2 0/2] Print filter input/output formats in help output
Date: Tue, 11 Oct 2022 21:38:18 +0000
Message-ID: <pull.43.v2.ffstaging.FFmpeg.1665524301.ffmpegagent@gmail.com> (raw)
In-Reply-To: <pull.43.ffstaging.FFmpeg.1665494271.ffmpegagent@gmail.com>

Example output for command: ffmpeg -h filters=overlay

Filter overlay
  Overlay a video source on top of the input.
    slice threading supported
    Inputs:
       #0: main (video), Formats: Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21]
       #1: overlay (video), Formats: Dynamic, Default: [yuva420p]
    Outputs:
       #0: default (video), Formats: Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21]

overlay AVOptions:
    [...]



Examples for what it prints in various cases
============================================

For pass-through filter links

"All (passthrough)"


For filters using query_formats

"Dynamic"


For filters using query_formats where a call to query_formats succeeds

"Dynamic, Default: [yuv420p, yuvj420p, yuva420p, nv12, nv21]"


For all other cases

"[s16p, s32p, fltp, dblp]"


Except when all formats are supported (number of formats equals number of
available formats)

"All"


----------------------------------------------------------------------------

v2: rebase and fix compiler warnings

softworkz (2):
  avfilter/avfilter: add avfilter_print_config_formats()
  ftools/opt_common: Print filter input/output formats in help output

 doc/APIchanges              |   3 ++
 fftools/opt_common.c        |  37 +++++++++----
 libavfilter/avfilter.c      | 102 +++++++++++++++++++++++++++++++++++-
 libavfilter/avfilter.h      |  12 +++++
 libavfilter/avfiltergraph.c |  15 ++++--
 libavfilter/internal.h      |   9 ++++
 libavfilter/version.h       |   4 +-
 7 files changed, 163 insertions(+), 19 deletions(-)


base-commit: 479747645f795b6f4f376578ea1556409f943c31
Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-43%2Fsoftworkz%2Fsubmit_print_formats-v2
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-43/softworkz/submit_print_formats-v2
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/43

Range-diff vs v1:

 1:  c9496ca671 ! 1:  5ae347e40c avfilter/avfilter: add avfilter_print_config_formats()
     @@ doc/APIchanges: libavutil:     2021-04-27
       
      +2022-10-11 - xxxxxxxxxx - lavf 59.50.100 - avfilter.h
      +  Add add avfilter_print_config_formats().
     -+
     - 2022-10-05 - 37d5ddc317 - lavu 57.39.100 - cpu.h
     -   Add AV_CPU_FLAG_RVB_BASIC.
     ++  
     + 2022-10-11 - xxxxxxxxxx - lavu 57.39.101 - pixfmt.h
     +   Add AV_PIX_FMT_RGBF32 and AV_PIX_FMT_RGBAF32.
       
      
       ## libavfilter/avfilter.c ##
     @@ libavfilter/avfilter.c: void avfilter_link_free(AVFilterLink **link)
           av_freep(link);
       }
       
     -+static unsigned get_nb_pix_fmts()
     ++static unsigned get_nb_pix_fmts(void)
      +{
      +    unsigned i = 0;
      +    while (av_pix_fmt_desc_get(i++)) {}
      +    return i - 1;
      +}
      +
     -+static unsigned get_nb_sample_fmts()
     ++static unsigned get_nb_sample_fmts(void)
      +{
      +    unsigned i = 0;
      +    while (av_get_sample_fmt_name(i++)) {}
     @@ libavfilter/avfiltergraph.c: static int query_formats(AVFilterGraph *graph, void
      -            ret = filter_query_formats(f);
      -        else
      -            ret = ff_default_query_formats(f);
     ++
      +        ret = ff_filter_query_formats(f);
               if (ret < 0 && ret != AVERROR(EAGAIN))
                   return ret;
 2:  c99d278881 ! 2:  29389422a9 ftools/opt_common: Print filter input/output formats in help output
     @@ fftools/opt_common.c: static void show_help_filter(const char *name)
       {
       #if CONFIG_AVFILTER
           const AVFilter *f = avfilter_get_by_name(name);
     --    int i, count;
      +    AVBPrint bp;
     -+    int i, count, ret;
     +     int i, count;
       
           if (!name) {
     -         av_log(NULL, AV_LOG_ERROR, "No filter name specified.\n");
      @@ fftools/opt_common.c: static void show_help_filter(const char *name)
               return;
           }

-- 
ffmpeg-codebot
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

  parent reply	other threads:[~2022-10-11 21:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 13:17 [FFmpeg-devel] [PATCH " ffmpegagent
2022-10-11 13:17 ` [FFmpeg-devel] [PATCH 1/2] avfilter/avfilter: add avfilter_print_config_formats() softworkz
2022-11-03  9:58   ` Paul B Mahol
2022-11-03 22:34     ` Soft Works
2022-12-12 23:13     ` Soft Works
2022-12-26 20:24       ` Paul B Mahol
2022-10-11 13:17 ` [FFmpeg-devel] [PATCH 2/2] ftools/opt_common: Print filter input/output formats in help output softworkz
2022-10-11 21:38 ` ffmpegagent [this message]
2022-10-11 21:38   ` [FFmpeg-devel] [PATCH v2 1/2] avfilter/avfilter: add avfilter_print_config_formats() softworkz
2022-10-11 21:38   ` [FFmpeg-devel] [PATCH v2 2/2] ftools/opt_common: Print filter input/output formats in help output softworkz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pull.43.v2.ffstaging.FFmpeg.1665524301.ffmpegagent@gmail.com \
    --to=ffmpegagent@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    --cc=softworkz@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git