From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id BBBC9401A2 for ; Thu, 3 Nov 2022 22:34:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2198168C046; Fri, 4 Nov 2022 00:34:20 +0200 (EET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2044.outbound.protection.outlook.com [40.92.19.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D7F9E68BFEE for ; Fri, 4 Nov 2022 00:34:12 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ehiipoQLFCaJPtr+S9kPv4bBL5ACggTDMUU690Akvqf2NJYP6PKjdGBTlq+OzLtasSXHvVgrni7nWw2AGmlCduDmwIdm7khpM0OLE7WshxxT/WB6iCPCj+hyHBBJJQ3eBefnFN7dZwRMSBqSMvyGw0zOzMCRKdN70RkMFjHoHB8XIlgxxI1kSnTjh6cG2hPKNqmFKk43aHMwdcQAs2PiZ2C1mGcIpsA98qHes2iwQ47T/O2I4XI5SROQsqix3fb8phI09TJBy0pvFHEyQtboovn+4PhbzvgvUjcZFamzKswCjvYjy9dm9IAF/umiTb7X1kLHj7/5S/gAlkbqUDg9bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t0R1hZpfMrReDjUYS067Ycdp0blDsXSKW3luSYaZ/W8=; b=GB2HmOeECNgXovzDZTAELptBJItx0HFLCEMs0XTkKM1kZ3jaxYNzu742/j2ha/UHtbtvHHzfnh4Z3puzlZ9HNX5P6tTpTBsVFdmbiY7Ps5SsJ24E5XqJ8E8jO+hT1uYj4M2FBk0LxLabWTQR1zleLGA8sdSgSu/ZuyRjjpxnjPBvQXQBBz/Y+DLIfHiIXgZ7QswX/lx3dIyq0BQ1F+ET1bJq8e8to65kECVD0TmroMQVZLhWKr3QPJhmXjqhF8LGq/bq/9YNfdngY0HXgheNCPJvMN9bxZQkumWKZ6KLg2615lykwcGpq9uj426ypFwaWHSSGnvpEaL3GjW32MZ1Mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t0R1hZpfMrReDjUYS067Ycdp0blDsXSKW3luSYaZ/W8=; b=JDFL5ONGUyWGbidGdIzuLa1OUtiagmfJa3yo5lbHaVuh9+xAfLRcpmo9820ADyP6H2o0++P+pJ/8bQwYkrt+a1KBdxpaGBX2KR89soXyKUnKXzehEaULebopvEhB3nsliEYEyzBhKeyXtUFGzFDmfaaIhx8uAVCc/CXJOJdC8iYJ0lCfwNWB0t0lSlxOSnW4og1Chvb8lt+Z+cg+ovc4AJvVvYkVkjcwXGoxOY+lW4KFjDpJ+1abs2JAsl5vk6nxpKeSlX6l9S4TSM2i8D0KI6fx73liXRCnn9/sf4NDI7spMQJNc+whkOqJQtngZQTns7UUcHDSBPwcUAjadlR3uQ== Received: from DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM (2603:10b6:8:b::20) by MN0P223MB0533.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:3c7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.16; Thu, 3 Nov 2022 22:34:09 +0000 Received: from DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM ([fe80::45ea:be80:31df:38c0]) by DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM ([fe80::45ea:be80:31df:38c0%9]) with mapi id 15.20.5791.022; Thu, 3 Nov 2022 22:34:09 +0000 From: Soft Works To: Paul B Mahol , FFmpeg development discussions and patches Thread-Topic: [FFmpeg-devel] [PATCH 1/2] avfilter/avfilter: add avfilter_print_config_formats() Thread-Index: AQHY3XPf+R6+XW4wGUuTWLdop9q0ua4tGqcAgADMZ0A= Date: Thu, 3 Nov 2022 22:34:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [a4mZ/jyAt8JoeNWuVDrsDlv6TXmJG8f7] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM8P223MB0365:EE_|MN0P223MB0533:EE_ x-ms-office365-filtering-correlation-id: 9ab480d0-b606-4e93-e74d-08dabdeb8635 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 914UoOEny0oUdwB+cT+vq0Xw6dgg6Ypab7ljvkIFstjWgfN9+jdGN8SZVD3WNBOpgHgSy7/QESQPQk1XOIsq9e2t6EV511I7CXHopFLyP8hXz3yTj97aLdf/3rIS2zMt2nAd4nHGZEeUVGRW9HlhFgSYcPIOqldPD+rWDRVlKfJrCqSYVxa040s8lm3bgXGdON5dBnkXEKrG28EnzS8rR6OmV2cGC5TuvxyqnJf6puJfY2MMYVPYcmk09TXrkuy94puq0OesDc98wSnxNVP6fhN6/sLgc56+E/TW4nrcnf+cCP4XqhRRuA+Kpm78ESDimLpgO0C2CEYanv1JdTUg6M+x5BRGHEPd7HZa8R6RQFVuTafkB1ZqzEDgmuzc+xojJwzFTtjj0cOm0ZF5uuIkis9M1FVONN3HJZ03ZyfGNZ95ATUO4+FIN7clJ7qpaSkeVExG+zhI1uTpfLz46O8F7THl313cCAKfFTeSYeH50pmEa3oZEJsZPEhJ8JCJlmP8e2xFeRSrd6OtSvI7L2a1JK5QY/PSPEkHoD4KtuWls98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8?B?MDE2emNHYWM2TkFsZmpZMFVaRGwyeXg0QXMyOVczdE5mNms2WHl3clYzWUNB?= =?utf-8?Q?f3n0VI4lfof7c7vjksyG?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-1ff67.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 9ab480d0-b606-4e93-e74d-08dabdeb8635 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Nov 2022 22:34:09.2365 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0P223MB0533 Subject: Re: [FFmpeg-devel] [PATCH 1/2] avfilter/avfilter: add avfilter_print_config_formats() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: > -----Original Message----- > From: Paul B Mahol > Sent: Thursday, November 3, 2022 10:58 AM > To: FFmpeg development discussions and patches devel@ffmpeg.org> > Cc: softworkz > Subject: Re: [FFmpeg-devel] [PATCH 1/2] avfilter/avfilter: add > avfilter_print_config_formats() > > On 10/11/22, softworkz wrote: > > From: softworkz > > > > Prints the following to AVBPrint: > > > > 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 (example): > > > > "Dynamic, Defaults: [yuv420p, yuvj420p, yuva420p, nv12, nv21]" > > > > For all other filters (example): > > > > "[s16p, s32p, fltp, dblp]" > > > > Except in case when the number of formats equals the number of > > available formats: > > > > "All" > > > > Signed-off-by: softworkz > > --- > > doc/APIchanges | 3 ++ > > libavfilter/avfilter.c | 102 > +++++++++++++++++++++++++++++++++++- > > libavfilter/avfilter.h | 12 +++++ > > libavfilter/avfiltergraph.c | 14 +++-- > > libavfilter/internal.h | 9 ++++ > > libavfilter/version.h | 4 +- > > 6 files changed, 136 insertions(+), 8 deletions(-) > > > > diff --git a/doc/APIchanges b/doc/APIchanges > > index cbb579612e..6e2a528b04 100644 > > --- a/doc/APIchanges > > +++ b/doc/APIchanges > > @@ -14,6 +14,9 @@ libavutil: 2021-04-27 > > > > API changes, most recent first: > > > > +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. > > > > diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c > > index cc5505e65b..8cc665e19c 100644 > > --- a/libavfilter/avfilter.c > > +++ b/libavfilter/avfilter.c > > @@ -196,6 +196,104 @@ void avfilter_link_free(AVFilterLink **link) > > av_freep(link); > > } > > > > +static unsigned get_nb_pix_fmts() > > +{ > > + unsigned i = 0; > > + while (av_pix_fmt_desc_get(i++)) {} > > + return i - 1; > > +} > > + > > +static unsigned get_nb_sample_fmts() > > +{ > > + unsigned i = 0; > > + while (av_get_sample_fmt_name(i++)) {} > > + return i - 1; > > +} > > + > > +int avfilter_print_config_formats(AVBPrint *bp, const struct > AVFilter > > *filter, int for_output, unsigned pad_index) > > +{ > > + AVFilterGraph *graph; > > + AVFilterContext *filter_context; > > + AVFilterFormatsConfig *config; > > + enum AVMediaType media_type; > > + int ret = 0; > > + > > + if (filter->formats_state == FF_FILTER_FORMATS_PASSTHROUGH) { > > + av_bprintf(bp, "All (passthrough)"); > > + return 0; > > + } > > + > > + graph = avfilter_graph_alloc(); > > + if (!graph) { > > + av_log(NULL, AV_LOG_ERROR, "Failed to create > filtergraph\n"); > > + ret = AVERROR(ENOMEM); > > + goto cleanup; > > + } > > + > > + filter_context = avfilter_graph_alloc_filter(graph, filter, > "filter"); > > + if (!filter_context) { > > + av_log(NULL, AV_LOG_ERROR, "Failed to create filter\n"); > > + ret = AVERROR(ENOMEM); > > + goto cleanup; > > + } > > + > > + avfilter_init_str(filter_context, NULL); > > + > > + if (filter->formats_state == FF_FILTER_FORMATS_QUERY_FUNC) > > + av_bprintf(bp, "Dynamic"); > > + > > + if (!for_output && pad_index >= filter_context->nb_inputs > > + || for_output && pad_index >= filter_context->nb_outputs) > > + goto cleanup; > > + > > + avfilter_graph_config(graph, graph); > > + > > + for (unsigned i = 0; i < filter_context->nb_inputs; i++) > > + filter_context->inputs[i] = (AVFilterLink > > *)av_mallocz(sizeof(AVFilterLink)); > > + > > + for (unsigned i = 0; i < filter_context->nb_outputs; i++) > > + filter_context->outputs[i] = (AVFilterLink > > *)av_mallocz(sizeof(AVFilterLink)); > > + > > + ff_filter_query_formats(filter_context); > > + > > + config = for_output ? &filter_context->outputs[pad_index]- > >incfg : > > &filter_context->inputs[pad_index]->outcfg; > > + > > + if (!config || !config->formats) > > + goto cleanup; > > + > > + media_type= for_output ? filter->outputs[pad_index].type : > > filter->inputs[pad_index].type; > > + > > + if (filter->formats_state == FF_FILTER_FORMATS_QUERY_FUNC) { > > + if (config->formats && config->formats->nb_formats) > > + av_bprintf(bp, ", Default: "); > > + } > > + > > + if (config->formats == NULL) > > + av_bprintf(bp, "unknown"); > > + else if (media_type == AVMEDIA_TYPE_VIDEO && > > config->formats->nb_formats == get_nb_pix_fmts() || > > + media_type == AVMEDIA_TYPE_AUDIO && > > config->formats->nb_formats == get_nb_sample_fmts()) > > + av_bprintf(bp, "All"); > > + else { > > + for (unsigned i = 0; i < config->formats->nb_formats; i++) > { > > + if (i == 0) > > + av_bprintf(bp, "["); > > + > > + if (media_type == AVMEDIA_TYPE_VIDEO) > > + av_bprintf(bp, "%s", > > av_get_pix_fmt_name(config->formats->formats[i])); > > + else if (media_type == AVMEDIA_TYPE_AUDIO) > > + av_bprintf(bp, "%s", > > av_get_sample_fmt_name(config->formats->formats[i])); > > + > > + if (i < config->formats->nb_formats - 1) > > + av_bprintf(bp, ", "); > > + else > > + av_bprintf(bp, "]"); } > > + } > > + > > +cleanup: > > + avfilter_graph_free(&graph); > > + return ret; > > +} > > + > > void ff_filter_set_ready(AVFilterContext *filter, unsigned > priority) > > { > > filter->ready = FFMAX(filter->ready, priority); > > @@ -759,12 +857,12 @@ void avfilter_free(AVFilterContext *filter) > > > > for (i = 0; i < filter->nb_inputs; i++) { > > free_link(filter->inputs[i]); > > - if (filter->input_pads[i].flags & > AVFILTERPAD_FLAG_FREE_NAME) > > + if (filter->input_pads && filter->input_pads[i].flags & > > AVFILTERPAD_FLAG_FREE_NAME) > > av_freep(&filter->input_pads[i].name); > > } > > for (i = 0; i < filter->nb_outputs; i++) { > > free_link(filter->outputs[i]); > > - if (filter->output_pads[i].flags & > AVFILTERPAD_FLAG_FREE_NAME) > > + if (filter->output_pads && filter->output_pads[i].flags & > > AVFILTERPAD_FLAG_FREE_NAME) > > av_freep(&filter->output_pads[i].name); > > } > > > > diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h > > index 2e8197c9a6..705dabe53c 100644 > > --- a/libavfilter/avfilter.h > > +++ b/libavfilter/avfilter.h > > @@ -41,6 +41,7 @@ > > #include "libavutil/avutil.h" > > #include "libavutil/buffer.h" > > #include "libavutil/dict.h" > > +#include "libavutil/bprint.h" > > #include "libavutil/frame.h" > > #include "libavutil/log.h" > > #include "libavutil/samplefmt.h" > > @@ -738,6 +739,17 @@ int avfilter_link(AVFilterContext *src, > unsigned > > srcpad, > > */ > > void avfilter_link_free(AVFilterLink **link); > > > > +/** > > + * Gets the formats from an AVFilterFormatsConfig. > > + * > > + * @param bp an instance of AVBPrint > > + * @param filter the AVFilter > > + * @param for_output set to 1 for filter outputs > > + * @param pad_index the index of the input or output > > + * @return zero on success > > + */ > > +int avfilter_print_config_formats(AVBPrint *bp, const AVFilter > *filter, int > > for_output, unsigned pad_index); > > + > > /** > > * Negotiate the media format, dimensions, etc of all inputs to a > filter. > > * > > diff --git a/libavfilter/avfiltergraph.c > b/libavfilter/avfiltergraph.c > > index 53f468494d..9118a44e1f 100644 > > --- a/libavfilter/avfiltergraph.c > > +++ b/libavfilter/avfiltergraph.c > > @@ -416,10 +416,7 @@ static int query_formats(AVFilterGraph *graph, > void > > *log_ctx) > > AVFilterContext *f = graph->filters[i]; > > if (formats_declared(f)) > > continue; > > - if (f->filter->formats_state == > FF_FILTER_FORMATS_QUERY_FUNC) > > - 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; > > /* note: EAGAIN could indicate a partial success, not > counted yet > > */ > > @@ -1351,3 +1348,12 @@ int ff_filter_graph_run_once(AVFilterGraph > *graph) > > return AVERROR(EAGAIN); > > return ff_filter_activate(filter); > > } > > + > > +int ff_filter_query_formats(AVFilterContext *filter) > > +{ > > + if (filter->filter->formats_state == > FF_FILTER_FORMATS_QUERY_FUNC) > > + return filter_query_formats(filter); > > + > > + return ff_default_query_formats(filter); > > +} > > + > > diff --git a/libavfilter/internal.h b/libavfilter/internal.h > > index aaf2c6c584..446d2a45f8 100644 > > --- a/libavfilter/internal.h > > +++ b/libavfilter/internal.h > > @@ -374,6 +374,15 @@ void > ff_filter_graph_remove_filter(AVFilterGraph > > *graph, AVFilterContext *filter > > */ > > int ff_filter_graph_run_once(AVFilterGraph *graph); > > > > +/** > > + * Query the formats of a filter. > > + * > > + * @param filter the filter context > > + * > > + * @return 0 on success > > + */ > > +int ff_filter_query_formats(AVFilterContext *filter); > > + > > /** > > * Get number of threads for current filter instance. > > * This number is always same or less than graph->nb_threads. > > diff --git a/libavfilter/version.h b/libavfilter/version.h > > index 4ccbf5641c..436c2b8b17 100644 > > --- a/libavfilter/version.h > > +++ b/libavfilter/version.h > > @@ -31,8 +31,8 @@ > > > > #include "version_major.h" > > > > -#define LIBAVFILTER_VERSION_MINOR 49 > > -#define LIBAVFILTER_VERSION_MICRO 101 > > +#define LIBAVFILTER_VERSION_MINOR 50 > > +#define LIBAVFILTER_VERSION_MICRO 100 > > > > > > #define LIBAVFILTER_VERSION_INT > AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, > > \ > > -- > > ffmpeg-codebot > > > > > LGTM > Thanks a lot for reviewing. While reworking, I also figured why you had called my earlier version a 'hack', so nevermind on that.. Best, softworkz _______________________________________________ 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".