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 4D96F4110F for ; Fri, 15 Jul 2022 05:19:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 02B8968B887; Fri, 15 Jul 2022 08:19:19 +0300 (EEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0EE4768B6F0 for ; Fri, 15 Jul 2022 08:19:11 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657862357; x=1689398357; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=1PW8Nxh+hhkAZZ0GbhjXCAD9UH6pQ5katLFFH0fBKVY=; b=ARutTq4h1r5C+JxXUsSS29I2VQ7E/VJSUNtXRoovmkENldaTnc1y0WVw PZsYjSy9roNJRcP0E6cgPptLy8eNH1prht0B1jXKxZ8iX99aePPHdHLYm IoE8ruplCc6gmSVbSmIB3gNw9ZufEpbg37qjQMiaCwaPkXOVROrEreJtD TnASveQRqfoiWvAJQqZSz1h+K7aHBlRT92rCXmeR4TUmV0qmsOtJEHT8B X8ZddNhmSiNoHWQ0/7ztRcHFtDsy1HzPesr9QFAKkeEzUNvH/HnU7qaGY 67XF1ml5G9paB0mwvauaqE9X95flXHmEdJS22QlGxiEVrNpLck3E+q+pL w==; X-IronPort-AV: E=McAfee;i="6400,9594,10408"; a="283262790" X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="283262790" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 22:19:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="596348477" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga002.jf.intel.com with ESMTP; 14 Jul 2022 22:19:09 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 14 Jul 2022 22:19:09 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 14 Jul 2022 22:19:08 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 14 Jul 2022 22:19:08 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.47) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 14 Jul 2022 22:19:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fc9L9CWg7nS8bGioGMyUPR+TG41qdYTv5Ieuk6ynLVkA3zXhVXufp6fDuCi72qchf+AEVKpvd4tx0EdAAqCQV9bPWCBE6W/BWM/FDRNw0/XfvZfXrvaL/Y8iHDKarFPjY4w5kxMYW3GeV/v6eLe86KhKyvop76e+/SBUXawflEuo5iyRxaGogVOjYiNdxrfev6Kj8OzucmrCYQFiuK3BrQvuGijLKeG0eG9mhwzJTGiQaOO9/xjpLYVt6uHwB1bmqkQMvoHN375Zvi9Sn7zC9JYuTIJ+ed545+AzqZlx3AzR2UahdnhdbnN8BC7Rrve+By5vAXnsuYUNfqJ+iPK2DQ== 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=GbFrLPZ9e3i0NWkWNVChnc85+OioFvfhcCioZM7CJTw=; b=B2jtb8Hy16DoV14B4DthFGP8nUPTXdd5Hmp4kokwK440Qh9KykPp6MVrfzAUDbBhvDGDXA827G9eINwZ4SqhoIjkazt6iq7vJE+JFitZv8wAz7+d4uDtv+JRFkV1aQTaQtNaYNPn26K9sRha05Oys8Y5h5wqnHQo4Z27FErbME64dmUV0Qr+xBsDmB2VibDp7kn04zx3/RjaXnvRQ2QG4ctFuzQrDmQw6DRb2yexGe2+mV3dzuXeLRweQtITYBcOYwx/dVjWairGtEvZQhbJoq0SSAqZsUhgWpa3yQFUVRCdqZ6Srq0poUuh3E6RRsYdjojIoZ5ZGcCw0Qx98N1P4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN6PR11MB2990.namprd11.prod.outlook.com (2603:10b6:805:cf::21) by SN7PR11MB6774.namprd11.prod.outlook.com (2603:10b6:806:265::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.25; Fri, 15 Jul 2022 05:19:05 +0000 Received: from SN6PR11MB2990.namprd11.prod.outlook.com ([fe80::88c6:6be9:9703:f49d]) by SN6PR11MB2990.namprd11.prod.outlook.com ([fe80::88c6:6be9:9703:f49d%5]) with mapi id 15.20.5438.014; Fri, 15 Jul 2022 05:19:05 +0000 From: "Wu, Tong1" To: "ffmpeg-devel@ffmpeg.org" Thread-Topic: [PATCH v4 5/5] lavfi/format: add a hwmap auto conversion filter Thread-Index: AQHYj32lZIwqA244kk68ezxOyQOhN61+9b4Q Date: Fri, 15 Jul 2022 05:19:05 +0000 Message-ID: References: <20220704080957.425-1-tong1.wu@intel.com> <20220704080957.425-5-tong1.wu@intel.com> In-Reply-To: <20220704080957.425-5-tong1.wu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c83a06a-95b9-431c-63a8-08da662189be x-ms-traffictypediagnostic: SN7PR11MB6774:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 12u7KhiYaX4tO6hBsGNfNTlQvVUD77HZ5to0MKJfUzUR9BLChFYmTNlA3piIbn3txnYzvkTc0jZdpSD53NAQFeV2RSQ53QFIu3/0UwGLMl7g/0dMfbOOSjeZN9ypOL9rE2AoQyCiaI7GUMbubtqqhAt07zxRVU+WMCsfeSNFua4FRVX2gVbrSZVX6RUANZaOtNO+U5/i7UFfOshUFhBunNnSy36KlZ2fGF/CN0hU24TTzUjldcR6qPARVlN/9IaHseaChjcKm4iH1sHiaTT/M5WXNgw7zfMjrjKgeJWHFSCNBBSRsLch5jijG8x3coQOe9fS3YbPa2J2Zil6oPwUhr8HfjGONCO05YvuhVfw9lD/wsm8Yw9C/OKgTNleh9fmVvROapT0rxEMXU548P9burw6nAbq3jFD9Ms0kN49/KjflazMvEC3UXCSkS7pLLFF2fiASwYFisb9GznnUcYP96AfDupvI3jSDZq9tObHFOqq6qNau6muWSm3IRXSrJuL7hq0Hk3ho+99ZD3fZLkct7mSKymCTCwsvP4tAuShCmECiZrDGMLONpqKUVioJhOdRnM2hagYryeqX5WJGFpQO/JzL5ni2m/iCw1r8oI/fznEyMH8qGwI21o/szDhy+WTTT/XSf6Dr6Pje4IreQYT4KKhjthFH/iZerLwDrbMIV+N2sSsWvPAPucKCr1o3gMR3aI/rkmJIbJnKHpt9RCpLCE2vF9TP2/zl4Q0jbQBxJc0l4yAsZVYuNah0JA+OsqspuVpuu8F64dnd/Mnjy5xYVbjJvRzxL8lNW4zEw2/P+iGX5vSNYG7YeNlilWug+Y3 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2990.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(376002)(366004)(136003)(346002)(396003)(7696005)(41300700001)(5660300002)(53546011)(33656002)(186003)(38070700005)(86362001)(82960400001)(83380400001)(66556008)(6506007)(478600001)(8936002)(66946007)(316002)(8676002)(38100700002)(52536014)(26005)(55016003)(122000001)(76116006)(6916009)(66446008)(9686003)(66476007)(71200400001)(64756008)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Jb0LhED/jHB/CkJ1+cCBbPHEwTdgHsS5o6rQBMYkvzW0qmBYIJBlLTdPEfbh?= =?us-ascii?Q?aErvzgxpISJo0Ne1ig/oKYRmGayTs49fzDmoHm0DmI8K8c2Znv+Jml1GWzBz?= =?us-ascii?Q?S/VwhrX6rqs5exw3cp77ibR0KVg0n1d25aUNSWodN0murbo6cI9KSFf7Qsly?= =?us-ascii?Q?v2xehfzkL7xsPpKf2MDr5pCzLeKSvy3EDypYWbDEwfwWthYfoErMcMt3NlAY?= =?us-ascii?Q?sg6crv8fJ+IZid9vj89XFZUt4uXObMxj6OlSJ5P/3qKLQMlQMbIHpmYryzKw?= =?us-ascii?Q?5gQRa2mbFtlP8+TmRrlEudIeubFpTvLyoslTA7/jQUn8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zxbfK5LcbgR5M4TPsauaZuRHkjA4Iq86tdu?= =?us-ascii?Q?qSPbUPiCf7aeuWPe32uMAHpSRaR6YLPs3GmI1yVJFHChPgzQlvZb/GUwXt4t?= =?us-ascii?Q?Lff7OEX6T7jXwlovSkiGxSm6ISBErZBvJUK6t02Nx86nBVv5EzQzbMiTv5Za?= =?us-ascii?Q?9+bC91qAVd6yiyP1Lnt2cvyOE8NNsK/blfx8y7TRLYrwJNwA1x6TiIYaTxf6?= =?us-ascii?Q?jbCtbuNJ1VXnX8JSD/6wxrU8M2WZA0Hyz/CYDyhZTvD+v8Ihq4kRRmnFj23S?= =?us-ascii?Q?S1EyvjH3rKnmIm1HVOFnw5HvmxV3Rd77A98gdj99kojJgm+j5nE7HDQEvrm/?= =?us-ascii?Q?kjRLneB8g0zea/Tnili2qrMaqlKLcQvN42duYm+r?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2990.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c83a06a-95b9-431c-63a8-08da662189be X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2022 05:19:05.6631 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fnDd0auSLJlfa0rhiuBHWkpiIaDpH7BiOHKS+phuuUh+JxfqaJl14+YBblAbpOSxs4JgU0/HnTRfHnlPzpm+ag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB6774 X-OriginatorOrg: intel.com Subject: Re: [FFmpeg-devel] [PATCH v4 5/5] lavfi/format: add a hwmap auto conversion filter 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: Ping for the patchset. Is there any comment on adding this auto hwmap filter? Thanks, Tong > -----Original Message----- > From: Wu, Tong1 > Sent: Monday, July 4, 2022 4:10 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Wu, Tong1 > Subject: [PATCH v4 5/5] lavfi/format: add a hwmap auto conversion filter > > When two formats lists cannot be merged, a scale filter is auto-inserted. > However, when it comes to hardware map, we have to manually add a > hwmap filter to do the conversion. This patch introduces an auto hwmap > filter to do the hwmap conversion automatically. > > Signed-off-by: Tong Wu > --- > libavfilter/avfiltergraph.c | 3 ++- > libavfilter/formats.c | 4 ++++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index > 102c1f7693..8e63007cac 100644 > --- a/libavfilter/avfiltergraph.c > +++ b/libavfilter/avfiltergraph.c > @@ -402,7 +402,8 @@ static int insert_auto_filter(AVFilterContext **convert, > AVFilterGraph *graph, > AVFilterContext *ctx; > AVFilterLink *inlink, *outlink; > char inst_name[30]; > - const char *opts = FF_FIELD_AT(char *, neg- > >conversion_filters[conv_step].conversion_opts_offset, *graph); > + const char *opts = neg- > >conversion_filters[conv_step].conversion_opts_offset == 0 ? NULL : > + FF_FIELD_AT(char *, > + neg->conversion_filters[conv_step].conversion_opts_offset, *graph); > const char *name = neg->conversion_filters[conv_step].conversion_filter; > > if (!(filter = avfilter_get_by_name(name))) { diff --git a/libavfilter/formats.c > b/libavfilter/formats.c index c8e20e5b20..fee10fa0ee 100644 > --- a/libavfilter/formats.c > +++ b/libavfilter/formats.c > @@ -331,6 +331,10 @@ static const AVFilterFormatsFilter filters_video[] = { > .conversion_filter = "scale", > .conversion_opts_offset = offsetof(AVFilterGraph, scale_sws_opts), > }, > + { > + .conversion_filter = "hwmap", > + .conversion_opts_offset = 0, > + } > }; > > static const AVFilterFormatsFilter filters_audio[] = { > -- > 2.35.1.windows.2 _______________________________________________ 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".