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 C48D7468DC for ; Sat, 24 Jun 2023 04:39:06 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5655B68C09B; Sat, 24 Jun 2023 07:39:03 +0300 (EEST) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D24CD68B838 for ; Sat, 24 Jun 2023 07:38:56 +0300 (EEST) Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-763d4df6079so22340785a.1 for ; Fri, 23 Jun 2023 21:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687581535; x=1690173535; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Sfghu0SOJVGbRGTBis3bGkWCN4H6WRiU8NJRHlybx78=; b=QVG7xhjygqKAyunrSZoqFMBIOdDkR2IihYtzf9JcGveQ16p4S7pclLb3Q+367M4XyV zwqjeX+WEQQLrpwk4+ivTXNec1/Sn52BWXKZtVnUZKq1VJ09eTIrqxqLhkFclQxDM/J5 CUNYn1QJH/+4mdVe1/c/nTHCwhzUZnry4H/xs84gpS1cq2K+6FuvkFDFEf+LfZSUn8ee 1uckEOfuNDhLrrOf4tXLej32vq40RxzFc8iawQnCb4wTZV8AHmcL7gwfX7h6l+hHlLza CiqtmmI2xZ9DjDKRfa1oI4GhFb2KamFX09iMkY0zUSBr9S9U5YSNC025Jc7DaIFUUGGx ckdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687581535; x=1690173535; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Sfghu0SOJVGbRGTBis3bGkWCN4H6WRiU8NJRHlybx78=; b=CLcYp2EQVP3jACjbmBCX8116pNLOWrVrO6LafBFJ0ihpG2vkAJwoSD1UdmuFUTGX/5 uxK3jRN1v0o7DCNRHp+dPhb+cDrw3ICJpF8GssW/c0MT0t3AR3KdEnqgD+8T1ygYx+1z 89DupKx24YML+/tkoeAL+bfgVe3v0XvB6D/1nxVvEEzUjxV6Xff1JZTlMzUhCvlPj1vG qZLiw8M5sA2eZc1S4aQ7KT00kcg6/Oo5wx9ADD5l4ROI3Pl940BbMEG0D8t/P1IHaWR3 G1gLmZ1E/eksx6rokxC5ehH4o3nw8HzL2I0DuRuynlmoE+8vfycEszTxgHImDE+WtKpE Yn5g== X-Gm-Message-State: AC+VfDwIAnnZoH4V6L4aHhlSVN2IKOZP+7lxBxVExuOJTFnASZo35CSb GJXJ9+9PQOqko0WbEVhotHEL7C+RnCQ= X-Google-Smtp-Source: ACHHUZ7XhRfe8CAHdsaKLaQH3nvJoYmEu+21lkX+ZWoYKHNO+SH4GMEoUc9q+ZAUMpFZlx5AkHAs7A== X-Received: by 2002:a05:620a:17aa:b0:765:58ac:9458 with SMTP id ay42-20020a05620a17aa00b0076558ac9458mr1769979qkb.7.1687581535114; Fri, 23 Jun 2023 21:38:55 -0700 (PDT) Received: from gauss.local (c-98-224-219-15.hsd1.mi.comcast.net. [98.224.219.15]) by smtp.gmail.com with ESMTPSA id m11-20020a0dca0b000000b0055aafcef659sm173719ywd.5.2023.06.23.21.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 21:38:54 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Sat, 24 Jun 2023 00:38:49 -0400 Message-ID: <20230624043853.12237-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 0/4] JPEG XL Parser addition 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 Cc: Leo Izen 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: Changes from v2: - Fix libjxldec to work with packets that are smaller than one frame - Change how code is shared between libavcodec and libavformat to be more sensible. - Fix the parser to work with large headers that proceed the codestream in a container format (for example, if several-KB Exif boxes preceed the codestream.) - Modify the parser to set width/height instead of avctx Note: avctx->pix_fmt and s->format are both set, because otherwise the CLI tools won't print the pixel format without libjxl enabled. - Update the fate test based on the new parser's packetization This test relies on FATE samples that haven't been uploaded yet. To test, unzip the following zipfile[1] in the FATE_SAMPLES directory, placing the test images in jxl/. [1]: https://buzo.us/y.zip sha256sum: 43a2eeb0dfdf471b47a9fdfb1653974fa156ceceb776891cc137569a8ebf0e75 signature: https://buzo.us/R.asc Leo Izen (4): avcodec/libjxldec: use internal AVFrame as buffered space avcodec/jpegxl_parser: add JPEG XL parser avformat/jpegxl: remove jpegxl_probe, instead call avcodec/jpegxl_parse fate/jpegxl_anim: add demuxer fate test for jpegxl_anim libavcodec/Makefile | 1 + libavcodec/jpegxl.h | 72 ++++++ .../jpegxl_parse.c | 219 ++++++++++++------ libavcodec/jpegxl_parse.h | 63 +++++ libavcodec/jpegxl_parser.c | 182 +++++++++++++++ libavcodec/libjxldec.c | 40 ++-- libavcodec/parsers.c | 1 + libavcodec/version.h | 2 +- libavformat/Makefile | 5 +- libavformat/img2dec.c | 4 +- libavformat/jpegxl_anim_dec.c | 114 ++------- .../{jpegxl_probe.h => jpegxl_parse.c} | 21 +- tests/Makefile | 1 + tests/fate/jxl.mak | 16 ++ tests/ref/fate/jxl-anim-demux-belgium | 6 + tests/ref/fate/jxl-anim-demux-icos4d | 6 + tests/ref/fate/jxl-anim-demux-lenna256 | 7 + tests/ref/fate/jxl-anim-demux-newton | 6 + 18 files changed, 564 insertions(+), 202 deletions(-) create mode 100644 libavcodec/jpegxl.h rename libavformat/jpegxl_probe.c => libavcodec/jpegxl_parse.c (65%) create mode 100644 libavcodec/jpegxl_parse.h create mode 100644 libavcodec/jpegxl_parser.c rename libavformat/{jpegxl_probe.h => jpegxl_parse.c} (55%) create mode 100644 tests/fate/jxl.mak create mode 100644 tests/ref/fate/jxl-anim-demux-belgium create mode 100644 tests/ref/fate/jxl-anim-demux-icos4d create mode 100644 tests/ref/fate/jxl-anim-demux-lenna256 create mode 100644 tests/ref/fate/jxl-anim-demux-newton -- 2.41.0 _______________________________________________ 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".