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 538E2407B3 for ; Mon, 26 Jun 2023 15:49:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2550568C2D7; Mon, 26 Jun 2023 18:49:32 +0300 (EEST) Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8075C68C062 for ; Mon, 26 Jun 2023 18:49:26 +0300 (EEST) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-1a2cc92f12aso1093084fac.0 for ; Mon, 26 Jun 2023 08:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687794565; x=1690386565; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6FivKAiqGH8R16XKVdJQGnPFQbxAph2u/XPkeO0oeMg=; b=CaZq5SB9T+yyIqctLDOOuL2i5yh3kVi9BCVHzbLT0PkOgf5JHnTww2H9jSXlVCYkGb wVkEQ/BN6rwvkzDwHM4RsWJUukezDsIfPYdw5mULQ8ZI7uU/M4tSWuW500lp74TENwSR ifItLEPhvy8Mq/DLgeCtBDbVW3rBMfSh4m+Ui9e1W26hBZzKXpU8/TZv5GFpNo1m1vUq fhxc7FecXHvI7aQt8QLcMjO38opNx+K//W0UnrgfWOeQK0V6BKEIQQ8geuXmLrJw+PXF evqseVhoEMp755+M730+jclJuc3R4cAWGucKPpJnKtY7V+PqEiU0QP02Tx8ylddNRYpO zdrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687794565; x=1690386565; 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=6FivKAiqGH8R16XKVdJQGnPFQbxAph2u/XPkeO0oeMg=; b=WL+n9BWCr21bWchWFpN6iJYxHcfBxCTtR4KMXtF1OmoUqvgsdXHtsM5B3FoR/nJvLB XZcmnAhmWvczVCX8T4bfWfGwj31+KNRMSvGDj9mYRYulPN2Imtimyd4/OzSLrBGFl73I frc/RxLSeF7z+sFhmwFolbNWT+4PIvqCh9sKeNR25GZ74eiXDx8y3DpFoRivZt2Hko4W WLJryNyCWfpKL5VexzTK5CP7+nEP92jYWJIkoxJmORgzWB+OBELKqfDnpjcj+33aYG+3 H4V7Vrx9emM2OIFCgeYtzLUUWLgqJFEoUuk/tVUfK9l7W+ypy1bHjKNnJQTk9wH4qz/L rLEQ== X-Gm-Message-State: AC+VfDxDFOuKE91fmAy1Cu/TFgWrlulwOVxC1oIoYOrxL2bxfkFt1ay9 3ap0q+rdw8+AZS1zwrUKeSMuHo6P1Yc= X-Google-Smtp-Source: ACHHUZ5JZ/cXddh31qdIKI3gf7x2nMLFKzTtY7qopVsKBFNrGXid07CT6NHOQOwZ/+O6zoRc7iK5tw== X-Received: by 2002:a05:6870:219e:b0:1a9:ad8b:3633 with SMTP id l30-20020a056870219e00b001a9ad8b3633mr29867917oae.1.1687794564594; Mon, 26 Jun 2023 08:49:24 -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 r206-20020a0de8d7000000b0057060bb2874sm1359724ywe.37.2023.06.26.08.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 08:49:24 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Jun 2023 11:49:18 -0400 Message-ID: <20230626154922.66550-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 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 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 | 72 ++++++ .../jpegxl_parse.c | 219 ++++++++++++------ libavcodec/jpegxl_parse.h | 63 +++++ libavcodec/jpegxl_parser.c | 182 +++++++++++++++ libavcodec/libjxldec.c | 38 +-- libavcodec/parsers.c | 1 + libavcodec/version.h | 2 +- libavformat/Makefile | 6 +- 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, 566 insertions(+), 201 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".