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 7F78A407B5 for ; Tue, 1 Aug 2023 13:31:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9413E68C4F3; Tue, 1 Aug 2023 16:31:07 +0300 (EEST) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 88BCB688371 for ; Tue, 1 Aug 2023 16:31:00 +0300 (EEST) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-583ad8ab0faso5183167b3.0 for ; Tue, 01 Aug 2023 06:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690896659; x=1691501459; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0YP1xGx+C6VKNGkUtuo1ZMi0B2htuUjoJlKQSRxg8cY=; b=Bjir+BtTxiFoZnYIfrcrCEgwGzIF9sVIr/Ec2UVVFzfRwIZnSZufp8y9V/60XzoTMS ujFhvZLjS4KsrIK1b7DTsPbaxzXiEvsEjo2X5vNEXmnA/Pwb1K7+O64/6pzyhUzg8jNn LUkwIEp6BK4PBNMWGgPHxwyoZRnTwIqtxcjNkGRXh/vqbeQtVeOx1LNsq1jO+6XxNPwR 0txUeKseYY4PNHqObcacbjfxd2VaZjhIn9ZNn23Id5wSLfuXCE9TN9oM6xYJVI9C7gn0 h3JMO+wt8wg1gckb0tyWYQ8dZo5eS6ra2SaP4OACa8D+XZhwusfgWtOD0sjKXoq73EHT FHwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690896659; x=1691501459; 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=0YP1xGx+C6VKNGkUtuo1ZMi0B2htuUjoJlKQSRxg8cY=; b=LffnnOHx1uG9eqqjcaz1iLtGPXJUaB0M0EM+L+ob8Rnpm1SbvO6Q7FhOOv2jgmZjLt AnQ74hzTCnph5p5Wx7q78ypzbH37LWIEF/jRYdfvi2QxSTI34ElewuvG8RCPwUD/H0cM 55bCq+qXfFgxm4V+01EJKF2Q3RkDMZcxuJFe8R+meajw2HeXJ2wHtEjNpuH+L2seIlyb pNqeIzU7+olTBDqBmvDKFmJX3/8EWDNDg4xT7DZnK8PsA1k9wSE/i+Zrnz/6kE2K8k5O efD1/qagk/tbha4hCfzY/T9BJYzALjtcLFZ1Gnal1jYoDhfmqLVzGnQ3cG52jrG4DXj2 aRwQ== X-Gm-Message-State: ABy/qLblC1ElAIrpeXDABL3bZhqRUColk4DgqpbMCsF89ifC/0ilKuK7 qm27mW6LyidGTP2JSFyJJUCXHjSFIMU= X-Google-Smtp-Source: APBJJlEz+vixvTde7kDjd20arqaNm287PYUeL2uaGCaZR9o3z50kVODMoEkJw/NoAszKr4ec8MSZHQ== X-Received: by 2002:a0d:db87:0:b0:583:fc63:7e01 with SMTP id d129-20020a0ddb87000000b00583fc637e01mr5204073ywe.3.1690896657383; Tue, 01 Aug 2023 06:30:57 -0700 (PDT) Received: from gauss.local (c-68-56-149-176.hsd1.mi.comcast.net. [68.56.149.176]) by smtp.gmail.com with ESMTPSA id x84-20020a0dd557000000b005463e45458bsm3738130ywd.123.2023.08.01.06.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 06:30:56 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Tue, 1 Aug 2023 09:30:50 -0400 Message-ID: <20230801133055.256537-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v6 0/5] JPEG XL Parser (and bug fixes) 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 v5: - Attached an extra commit to fix existing bug with libjxldec - Made various changes based on comments by Andreas Reinhardt -- removed jpegxl_parse.c from avformat, and jpegxl_parse.o from avformat/Makefile/OBJS -- checked for failure in init_vlc_lengths -- used a macro to initialize VLCElem structs -- used heap allocations for a buffer of size 250k, instead of stack -- renamed "code" to "len" - Fix demuxer to avoid using avio_size, breaking piped input - Fix some parser bugs discovered during more extensive testing 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 (5): avcodec/libjxldec: fix errors when decoding grayscale after rgb 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 | 1477 ++++++++++++++++++++++++ libavcodec/libjxldec.c | 41 +- libavcodec/parsers.c | 1 + libavcodec/version.h | 2 +- libavformat/Makefile | 6 +- libavformat/img2dec.c | 4 +- libavformat/jpegxl_anim_dec.c | 132 +-- libavformat/jpegxl_probe.c | 412 ------- libavformat/jpegxl_probe.h | 37 - 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, 2270 insertions(+), 574 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 delete mode 100644 libavformat/jpegxl_probe.c delete mode 100644 libavformat/jpegxl_probe.h 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".