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 7926343980 for ; Sat, 3 Sep 2022 09:22:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F155468B9B4; Sat, 3 Sep 2022 12:21:57 +0300 (EEST) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0A9A968B680 for ; Sat, 3 Sep 2022 12:21:52 +0300 (EEST) Received: by mail-ej1-f49.google.com with SMTP id y3so8089319ejc.1 for ; Sat, 03 Sep 2022 02:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=7r41T/z4ac2tLJyY26PX6eDWllldu86rQHaQwMzBvLc=; b=Nfl0zWA2B8XxuBkoNZZipthM3/ywbDVyprneXtxWUYoEwIMGzJhtToNDNcBxDsYX5K cxuvei4Rf0RmCcvQFBTVzMdvZTppBw3ha4MsYE3Rpjr1LCp3BlTt/70omWG+ONWbPOKT uNDgRcjRtySO1B97hUv34p9PU/HMYosWvc9wzqzUIdHSeJ86Rj1Ialzyv2K+MB29nqZb Qz2zu5GQkhU/jn40VPwUJ4CJKAH0W+CVqmxSaVSBBjVh45PYX6AGSHiv8qVoe3Ozvj84 zttRHc+U1gjX2u0rH+GYFdMI/+PAOUVI1t5k2ylsSOSEHQAvX1yvzr5FgTteJlXznkX1 hbJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=7r41T/z4ac2tLJyY26PX6eDWllldu86rQHaQwMzBvLc=; b=70NCk3Y7jaHQrjTDvwnTyAKYpk/v5i/FBZTdMlYnu2AhrPCGeDvmNaEYyxqGjc7i4h 8AgYAGN2/TOuf9I7S3jWXkFZzi8BXqowaNwv3s+pE8ydcE3a+gcJOWJ9szI68bWCb1jQ RvU3oqA9Rns/O5J9ko+Pdg9YEKGZuAQqv/7eiFSnNC2RH1MQnkzSmVcOfNSygIV6Gtu6 Go02IgczBhAwUnNHmGwr+3zNvy/TCeQF/X1d6KDlIKEl5lkLvmjjGVF8TGuFxekccU6m vN9831VSJQY8EyIQwYWev2TzcNA33fz4HDEdwKIJ2quc6zRr0jXgUX8DHKbmeFvstGNv ncrQ== X-Gm-Message-State: ACgBeo3AOi6avTkBSfatKj3m0RtB7HUIB8akkn1fANDX/adDtq7qPxuG uA4jFFGsC1UC4ZTLAAitJ7555cvdXq9jhA== X-Google-Smtp-Source: AA6agR6FnYjKsjvepJX2qeq8azqLen3hJwvUzh3EOL4F3RDiryJzyz22GWmljFsBJUuiJP0x1HrXtQ== X-Received: by 2002:a17:907:7d8c:b0:731:65f6:1f28 with SMTP id oz12-20020a1709077d8c00b0073165f61f28mr28143044ejc.91.1662196911125; Sat, 03 Sep 2022 02:21:51 -0700 (PDT) Received: from localhost.localdomain (92-64-99-37.biz.kpn.net. [92.64.99.37]) by smtp.googlemail.com with ESMTPSA id vs7-20020a170907138700b0074b4e77ccc6sm2242594ejb.151.2022.09.03.02.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Sep 2022 02:21:50 -0700 (PDT) From: Martijn van Beurden To: ffmpeg-devel@ffmpeg.org Date: Sat, 3 Sep 2022 11:21:42 +0200 Message-Id: <20220903092144.569716-1-mvanb1@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 0/2] 32bps FLAC patches 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: Martijn van Beurden 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: Recently libFLAC gained the ability (not in any released version yet though) to create FLAC files containing 32-bit int PCM samples. To keep complexity reasonable, the choice was made to limit residuals to 32-bit integers, which the encoder must make sure of. In case the encoder cannot find any predictor of which the residuals fit this limit, it must default to using a verbatim subframe. Tests have shown that this does not happen often (<0.1% of subframes on a music corpus of various styles). See also discussion here: https://github.com/ietf-wg-cellar/flac-specification/pull/148 These two patches implement decoding and encoding following this format. Changes since v1: fix copy-paste error in encoder, several invocations of lpc_encode_choose_datapath used wrong parameters, making FATE fail as compression was less than it should be Changes since v2: Rebased decoder part as it didn't apply anymore Changes since v3: Moved put_golomb part to flacenc.c (as it is now quite specific to FLAC) and renamed put_sbits64 to put_sbits63 (and changed assert accordingly) Martijn van Beurden (2): libavcodec/flacdec: Implement decoding of 32 bit-per-sample PCM libavcodec/flacenc: Implement encoding of 32 bit-per-sample PCM libavcodec/flac.c | 4 +- libavcodec/flacdec.c | 248 +++++++++++++++++-- libavcodec/flacenc.c | 519 ++++++++++++++++++++++++++++++++-------- libavcodec/get_bits.h | 12 + libavcodec/mathops.h | 9 + libavcodec/put_bits.h | 7 + libavcodec/put_golomb.h | 14 -- 7 files changed, 674 insertions(+), 139 deletions(-) -- 2.30.2 _______________________________________________ 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".