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 14AFB47C36 for ; Fri, 13 Oct 2023 22:42:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C7B8A68C823; Sat, 14 Oct 2023 01:42:25 +0300 (EEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E7EDC68A05D for ; Sat, 14 Oct 2023 01:42:19 +0300 (EEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6b598eaf407so694151b3a.2 for ; Fri, 13 Oct 2023 15:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697236937; x=1697841737; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=iBgaMpBnUDyKy2aHfA8/vPrvxmTPMGJ6SO69LFIvZkc=; b=hUZWhrAhTOCfU30f4+7gHfKeXERIDCf8zFqy8i5XZc3SVq2nNm5Pmpc33aFf0FXdOB URCnyspgzE36PFRr15atSoV1C1oQ8FbarH38LFkWsRH1s0evbhswaxmtbIWv3pqIT78X 2G4DY0Z+3ZCuXzYQtMgpOWaFJL42AV7IBl88Mc29M9hRkAdnq2WbkJbDhEFC0IZBFRdY NptT8Bu4AFUhS49jVsY/vymXev/b5EBaUL3GIPFtCcGWTTOlprFbnVHSvzncAm0QGd+0 1T0KPrRW2oRxIl79N1Y359O8bOkcZ26kb0vW23CgIxL7+D35Twk2MNh6aCY8HByfgTLS qmig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697236937; x=1697841737; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iBgaMpBnUDyKy2aHfA8/vPrvxmTPMGJ6SO69LFIvZkc=; b=pqA0L4Rd6v0pD65V/PGKFbcnEPE7hO1+S734Xwv7/DrwjSOa6PNf0Ze4BWEoBv/Sgw kENDfbspJo7CWd5xWSzjFKs/2jjaY+Frfm52SWc//P94a4qcwpmykj68MjFAtqZwXElt 2+OhR4XSE3DaGaVMINoVSMBCj5f3qv5CIkfI+BMJMPf44yHknarQEZjvpGqXk7gZHu1W LTbQu7VS2pR8zbh3dCy5yrMepz56ceMSXH/ri46H08zRg1a2Wp5Rg6S6mxH5qmg86X/Q Wt6A1I6EnMm3m/kL2XLD2DAH8AtvThPpFcLlxG45S3rjXPCsCqbsghTr20eIf0t1iMxl SPbg== X-Gm-Message-State: AOJu0YxNGfQ/UXs4g2n2RNRutRNgvZ7fvC1THdAvkgtx17PUNWY3GQdW 8ybs4VEaSBxhG/FVHGfo5rRVkUgrLYE= X-Google-Smtp-Source: AGHT+IGml8RXikxEhlLRZ0kIJnpYbLAYYraHVXZ6yvEcH7vvLVen9mhSXVwuSKVNGznCPXiejx4uPQ== X-Received: by 2002:a05:6a00:398b:b0:690:c306:151a with SMTP id fi11-20020a056a00398b00b00690c306151amr28109815pfb.0.1697236937165; Fri, 13 Oct 2023 15:42:17 -0700 (PDT) Received: from [192.168.0.16] (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id q18-20020aa78432000000b00690ca4356f1sm1723532pfn.198.2023.10.13.15.42.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 15:42:16 -0700 (PDT) Message-ID: <22919b35-2f3a-494f-8f34-e40e628263f2@gmail.com> Date: Fri, 13 Oct 2023 19:42:44 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ffmpeg-devel@ffmpeg.org References: <20231013191934.GQ3543730@pb2> <20231014003409.GB5462@haasn.xyz> Content-Language: en-US From: James Almer Autocrypt: addr=jamrial@gmail.com; keydata= xsBNBFjZtqABCADLW+vdEoZaJZDsIO6geYFTOcn1unsEHefj9zn+3oTHlDFFzO47mzHsSfbK 9JE2xpOJEVnC8FAF5Sayi/pVwV+mtQUV3n5dgVeVBYF9GUQwOGFCpK8X54RRqhkgknbunOEE 0CtgAJgmpFmmmHgq02GvEspx1h/rh4apqwQR6QX4Favb+x9+i9ytVpwVcBX94vo2toyP7h/K BWfadQmb8ltgE1kshfg+SQs/H5bTV5Z1DuEASf02ZL/1qYB/sdTgWPLv9XMUHHsRFmMY8TMx wJSkP+Af3AiYQPJYz1B1D4tt98T/NoiVdin10zATakPjV8hXaobuRmxgakkUASXudydDABEB AAHNH0phbWVzIEFsbWVyIDxqYW1yaWFsQGdtYWlsLmNvbT7CwJIEEwEIADwCGwMGCwkIBwMC BhUIAgkKCwQWAgMBAh4BAheAFiEEd1EujP2UoWlX5pp6FGMBrXN2WeAFAmJoLUUCGQEACgkQ FGMBrXN2WeAFVQf9GtGhniRs1PzNUOgJktCnv6j4BbLieaIPYPEFXKDHOgjqQE2zVMYXnoXl Jam928ii902a8OY06r9ywn/R8ApD1/3NY/v64O71CY9scz5XyH2au8wIZ6HwFy3/f7sqjdGD uctY8Qs7rjT7NkoC5lmgMu2v2k03dGtM9AAf5AK5gU+H0EUw7vmKKiXzUqt5kvBuf4CEwXvH AQT1SMJ52rIlDWB7FQFyZeUbOAK2IgY/KNedfK6nsgd/eQVnlofPd2XoddE7kP6iys7jJefw DD3g3rZyDTq7in5dyk5glaNpWZpbHGBs+9SCYLnfQ8XvWqPFOD+gj0plamKANgOvavKTxM7A TQRY2bagAQgA69YtILj8kYxmqPr/M8+MXT7wVoOWVW9lvSmPquCELaDy/NIS7D06VC5EuE/6 JlJXZMTn37NLlyWhzwOgXuXw5w2tyoQQBuvqGiXJijuXwXH7HKdzrc6rpYtAqt5w05hzNrFS KrS0izG64VpWrfproy3BsL+8TBm9brLhhNPynVRqVukbbGzlATTzNQGZ14TTi2/dL6DkMQnM qn4jX9UEe4GdGQBP50bUJSSmeiIkyNLWA+znuN2PZEz930ZwNrF9GtDVw7mzcmpCZ7spldE2 tutbpy9D1bIqxyqBrYDSezyzL2adR1qgHyOTMCHg2AYNkrIQHrSyJxKTpZ1/hqOp8wARAQAB wsBfBBgBAgAJBQJY2bagAhsMAAoJEBRjAa1zdlnghekH/0Yb0iYJ74oID2f/Fj+AJKS2ekQF P2xOr8lpGzgp/+yWUvPtqbX0A33anBJdYwxaAC0NataX3tfZ+oJkzXqfmqhIHMPYHdZesJA2 Bk9hU/33mDl5s5U66/z0uelWzwKVHoQ2O6or4+qF3HJFSJLCe9uvWJ3zXf9F342Ftj73sfx+ 3xkw/IXsN1RqbYqDlzpoEQ99SIEfY/8Jjwnd3sIPfqkuyeaYfe6GJDqKawdCEP1oRRlbXEAp TJgYz8r3nPhGv9cdHNDCk44ISbsqVuxIEnLqi4fTPZaGupiQhT+srl268TTAp2TQW7+6Ce/b NPQorMquzS/LZoyALpmsYi/miMc= In-Reply-To: <20231014003409.GB5462@haasn.xyz> Subject: Re: [FFmpeg-devel] SWS cleanup / SPI Funding Suggestion 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 10/13/2023 7:34 PM, Niklas Haas wrote: > On Fri, 13 Oct 2023 21:19:34 +0200 Michael Niedermayer wrote: >> Hi everyone >> >> I propose using 15k$ from SPI for funding sws cleanup work. >> this is substantially less than what people belive this needs (see IRC logs from yesterday or so) >> So it really is more a small price for a good deed and not proper payment. >> This of course is only available to competent developers. (exact rules or how thats determined >> would still need to be decided unless its a clear case) >> Also the exact outcome and goal would need to be discussed by the community and whoever >> does the work. >> But some goals would probably be to make sws >> * pleasent to work with >> * similar speed or faster >> * proper multithreading >> * proper full colorspace convertion not ignoring gamma, primaries, ... >> * clean / understandable modular design (maybe everything can be a "Filter" inside sws >> that get build into a chain) >> >> Proper payment (50k$ maybe) would be too much in relation to what SPI has ATM (150k$) >> >> Above all, this is just my oppinion, the actual SPI funding also would need to >> be approved by the community. This can happen after a specific volunteer comes forth >> or before, whichever way the community prefers. >> >> thx > > My gut instinct is that the correct path forwards is to first create a > new API which can internally dispatch to swscale, libplacebo or zimg > based on what's compiled/available/preferred (e.g. using GPU filters for > hwframes, CPU filters for swframes, zimg (or vf_colorspace's primitives) > for colorspace conversions ...). > > Much of the pain points of my own recent experience with swscale > revolves around libswscale's very low level API, complete lack of > understanding of most AVFrame metadata, and relatively complex Anton wrote and pushed an AVFrame based API. It can surely be improved/extended to use AVFrame metadata. > configuration requirements. (vf_scale's comments even acknowledge that > libswscale should handle this stuff internally, so users just need to > point an AVFrame at both ends and let it do the right thing > automatically) > > The second pain point of extending libswscale itself is that the > high-level configuration and low-level "scaling" primitives are deeply > entangled, reconfigured in various places, and hard to touch without > fear of breaking edge cases. > > A new API would solve both problems. It would allow us to write new, > AVFrame-based, high-level "business logic", which could continue to call > into the low-level swscale implementation details and kernels for the > time being, and also tap into GPU filters (a la libplacebo) where > possible. > > As time moves on we could replace those underlying primitives by cleaned > up rewrites where necessary, until the dependency on libswscale itself > is null. > > Simultaneously, vf_scale can be rewritten on top of this API, which > would allow e.g. auto-scale filters to start doing scaling on GPU when > conversion between two hwformats is needed. > _______________________________________________ > 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". _______________________________________________ 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".