From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id F13234BD02 for <ffmpegdev@gitmailbox.com>; Sun, 30 Mar 2025 10:36:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 29EFF687C47; Sun, 30 Mar 2025 13:36:36 +0300 (EEST) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F3349687BDA for <ffmpeg-devel@ffmpeg.org>; Sun, 30 Mar 2025 13:36:28 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 16037432C5 for <ffmpeg-devel@ffmpeg.org>; Sun, 30 Mar 2025 10:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1743330988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Hw9I1mJfvdOr3TjbIP2QmP1p1Htk1qaYioul/6Oi0fY=; b=moeTR3GJ0RYIuBOHwSFGUi6ignYLRMRa88J5zbsPQQb5UjIRW5X5TZfM+UJKQeh5NrHr7F CLWO6PCrsojRa5f2AJglrk45zkVKG1eCBOLJxIxr95GR8mOKTIw4EZVyUfBNP/gqAmjrrB X+6hhMg53NV0WkESghLWjYx+dDpDWvnydM4dDC7vdzSavgqOjpjmMc2VfmgPD+S8FFqZtH eQ798mwW+78+2d7vv6g3Yw0doKFsE1xJtHO7MbeMtviONXdlPTeE2JusTlFFjjhLP/S70L IFcQFXhLCTvhyBAPQqf/gDmqfaNIIwQsVynOhWjK2pTYDjjZYq9MqvseldUwzw== Date: Sun, 30 Mar 2025 12:36:26 +0200 From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Message-ID: <20250330103626.GV4991@pb2> References: <pull.63.ffstaging.FFmpeg.1743226030871.ffmpegagent@gmail.com> MIME-Version: 1.0 In-Reply-To: <pull.63.ffstaging.FFmpeg.1743226030871.ffmpegagent@gmail.com> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddujeeikeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeefteffteehhedtveejffelleetfeejueegieehkefhfeduheektdekudefueevleenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] fftools/resorces: Add resource_manager with build-time compression X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: multipart/mixed; boundary="===============6982348791241690114==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250330103626.GV4991@pb2/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> --===============6982348791241690114== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kMEotu2mKKhfwE4E" Content-Disposition: inline --kMEotu2mKKhfwE4E Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 29, 2025 at 05:27:10AM +0000, softworkz wrote: > From: softworkz <softworkz@hotmail.com> >=20 > Signed-off-by: softworkz <softworkz@hotmail.com> > --- > [RFC] fftools/resorces: Add resource_manager with build-time compress= ion > =20 > Hello everybody, > =20 > this is a resource manager implementation which I've done for the > upcoming execution graph rendering patchset, which needs some css and > http strings for generating the output and I wanted check back whether > it's okay to do it that way? > =20 > To minimize the amount of storage required, it is using compression at > build time, inspired from the PTX compresion that is already in emplo= yed > for compresing CUDA kernels. The purpose is to allow having the actual > content in the tree, viewable and editable as reeguar html or css fil= es > rather than a cryptic string that is handcrafted by the developer. > =20 > For CSS files, it also applies some minification: Comment lines are > removed, linebreaks removed and whitespace is folded, then it gets > compressed and finally added as data via BIN2C. Same for html but > without minification. > =20 > In case of PTX compression there's a configure option to disable, hen= ce > I'm wondering whether I might need to do the same if there are any ca= ses > where it doesn't work? > =20 > Thanks > =20 > (note that the two css and html files are identical - it's just for > illustration). >=20 > Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstagi= ng-63%2Fsoftworkz%2Fsubmit_resourcerfc-v1 > Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-= 63/softworkz/submit_resourcerfc-v1 > Pull-Request: https://github.com/ffstaging/FFmpeg/pull/63 out of tree build with mingw64 on ubuntu src/fftools/resources/resman.c: In function =E2=80=98decompress_gzip=E2=80= =99: src/fftools/resources/resman.c:78:5: warning: ISO C90 forbids mixed declara= tions and code [-Wdeclaration-after-statement] 78 | uint8_t *buf =3D (uint8_t *)av_mallocz(chunk + 1); | ^~~~~~~ src/fftools/resources/resman.c: At top level: src/fftools/resources/resman.c:194:1: fatal error: opening dependency file = fftools/resources/resman.d: No such file or directory 194 | } | ^ compilation terminated. make: *** [src/ffbuild/common.mak:81: fftools/resources/resman.o] Error 1 STRIP ffprobe.exe make: Target 'all' not remade because of errors. [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No snowflake in an avalanche ever feels responsible. -- Voltaire --kMEotu2mKKhfwE4E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ+kepgAKCRBhHseHBAsP qzRqAJ9iLSyNDeavIgUX3aUmYfBP2JXi6gCgidW/Nz2znAiNhSxD0WAyWBGqCk0= =m8Hb -----END PGP SIGNATURE----- --kMEotu2mKKhfwE4E-- --===============6982348791241690114== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============6982348791241690114==--