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 B27B046D83 for ; Mon, 10 Jul 2023 23:57:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 69EF668C24B; Tue, 11 Jul 2023 02:57:55 +0300 (EEST) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7FEEC68C56B for ; Tue, 11 Jul 2023 02:57:48 +0300 (EEST) Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-7576b53e75eso72851685a.1 for ; Mon, 10 Jul 2023 16:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689033467; x=1691625467; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rb+GOdTYNU+Bvu+0EgrK8jvfAA/hCcvV5RH7TrVJorE=; b=fUuMGOYA284AZQx2BN/xmseCWt5uH4AtqLOyyqg/XUncSqO7xlT9VKOGjuA0ldFQKV 2JVp6XT1/tlcs+v9UI73OIq6TT5JYN8OeTyUmq24ANboxnw6qnel3Zu2aiGyDn3R0fzN GyH9CILsFomOfSK/+JUa5N5NP8wzoOvLz2Ysn2R5TRvTXrZNSLmNShfkrbt4VsGgpf2b KlhPyuZQEu+i53+KIs0Jqpp2fTLgQdWV60BueeWPkcXh4rSUhcxPPrWQdT+FH+Iww68D TNwqq4TJAH99si9eObSc86WLck04lpNHdeSHRp5i3WHjguVTfis5BG0e2E+/68sdIzbR XXOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689033467; x=1691625467; 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=rb+GOdTYNU+Bvu+0EgrK8jvfAA/hCcvV5RH7TrVJorE=; b=B82aHoIssUUWVuzDbc6Rqoka/aEy8Zo2WZnURbHukoZqMOA7gpxRwhl9DNvz1nluxa t+ZGaZpM2Ng8PQ1NNd7lEugzuQ9X7PuosX8Jna30zPn3QyW/GnnLC0x43Js+NniM2nJY IcLkJWZSNT+C5R5gw09DHm8Zioaaj96GUa7Oac5iljmDA+ZsFFOE/NkOY9GhgnqtXlL8 D+7wAxVJKGDESsltFy+BOoU82T5IgFLMkPRnNZ27ja+PwPOx37OaS7Q7OzXcb0qyoUG3 aKqMTezbGWcQ20hpLmK7+1avf/xBczRPC9dpdksNmHlv6jkm3FEdFlsBxjkzU0bh6XWb ekfA== X-Gm-Message-State: ABy/qLaqMEo4FMH8clv8C2VHRfHELKpndX4zYgUBjJpBssebwxaQQ0aX 21B0rwBNtEO+nZD5rHotAxjUKObZDQw= X-Google-Smtp-Source: APBJJlE7NVbKHk1Wy82/NIHBpM8dtQTQxOEZqxU6UUMsk1Oi+HwOntWovMoSRBMhj9Uq6InzUdxlag== X-Received: by 2002:a05:620a:46ac:b0:75b:23a1:69ee with SMTP id bq44-20020a05620a46ac00b0075b23a169eemr14674908qkb.5.1689033466665; Mon, 10 Jul 2023 16:57:46 -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 v2-20020a0dd302000000b005707fb5110bsm263450ywd.58.2023.07.10.16.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 16:57:46 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Mon, 10 Jul 2023 19:57:40 -0400 Message-ID: <20230710235744.30513-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v5 0/4] JPEG XL Parser 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 v4: - Added an entropy decoder and full parser, which finds the boundaries between files correctly - Removed unnecessary logging in libjxldec Changes from v3: - Don't remove AV_CODEC_CAP_DR1 from libjxldec - jpegxl_parse.o added to STLIBOBJS in avcodec/Makefile - add pipe demuxer to avformat/Makefile's SHLIBOBJS 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 | 3 + libavcodec/jpegxl.h | 94 ++ libavcodec/jpegxl_parse.c | 520 ++++++ libavcodec/jpegxl_parse.h | 72 + libavcodec/jpegxl_parser.c | 1455 +++++++++++++++++ libavcodec/libjxldec.c | 36 +- libavcodec/parsers.c | 1 + libavcodec/version.h | 2 +- libavformat/Makefile | 6 +- libavformat/img2dec.c | 4 +- libavformat/jpegxl_anim_dec.c | 115 +- .../{jpegxl_probe.h => jpegxl_parse.c} | 21 +- libavformat/jpegxl_probe.c | 412 ----- libavformat/version.h | 2 +- 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 | 6 + tests/ref/fate/jxl-anim-demux-newton | 6 + 20 files changed, 2238 insertions(+), 546 deletions(-) create mode 100644 libavcodec/jpegxl.h create mode 100644 libavcodec/jpegxl_parse.c create mode 100644 libavcodec/jpegxl_parse.h create mode 100644 libavcodec/jpegxl_parser.c rename libavformat/{jpegxl_probe.h => jpegxl_parse.c} (55%) delete mode 100644 libavformat/jpegxl_probe.c 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".