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 5DFA840619 for ; Tue, 26 Jul 2022 19:41:27 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BA6FC68B870; Tue, 26 Jul 2022 22:41:24 +0300 (EEST) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4F2DB68B6AB for ; Tue, 26 Jul 2022 22:41:18 +0300 (EEST) Received: by mail-ej1-f45.google.com with SMTP id sz17so27991540ejc.9 for ; Tue, 26 Jul 2022 12:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=snyWT6ug0z/ePE3Gb/jq66lDKLqiO7PKzcUuIXreREE=; b=eXJhUB0Ro3G2qzfG1TcZi0pYZks1Hhsi/KMAE6ZVLPFEPA7DjIhaiWtFSzgffxh9wN 3Scja/kOSmKKYAD5Zos7nQ3gNzcY9XGOI5PXHiad364WjCLkuc8HCdwApYthWBMqCH/+ ta2uGG0qkoDisfN3tt+iPlK2ioHRhY77CF01vn+I8bb+454sQr+wjuE+jxHnkOE4bzBq VqSstHRVchf43Tf9QWOxxkop2cKqUy0Z6P0Sr5TL5NI14g5s5qPmfjygLyNrW2Af76EC Am4iDu8gz1XgkYv4gVzJVqytWEZv1/7UbvY6LoqE4IdyDNj5xT0nqsnfyMc6tvcB+DVh mxIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=snyWT6ug0z/ePE3Gb/jq66lDKLqiO7PKzcUuIXreREE=; b=bqfXF19BpWv2meFp5+RlfXT2uoaSP5yQrnaZYx+/oiVufNki7SLIvu2v56G+YHsGva fLNkT5qpeITty2iv7+iwSomtUJdquPQsLViKZhdn3YmWqIGdSng4XE6p/fDX0oDR0riH +TVliu+YsI/PL6kIv+TuGwwY6owvXOhdX7cDjzmyYvEloujcT6OGcGzRXUkeaYrTJj3k iLpqbhPv8c6Z170O2sIbhfR4LDItMmMqxK7Alqxyk3X833u1julFcwmQ3uB20d4ki9HG seemMIpnLi0O4DEstJ+ZjXG7lLNkYkMFDdfr3aeDkdQ2Dp4GjbVaCTRDImidM6h3O8QQ RvXg== X-Gm-Message-State: AJIora8SBvqIDf7Z9y0t14y0pAeUOQv525skFpMUhJ0gqcXP4Bsqx/qc pNtDTxzLk+L3ci/QXSxFi1YuxRlHuSSgEQ== X-Google-Smtp-Source: AGRyM1v79KJecRKIKnLD20HE2VQGV7vGXGle008lubxzVvQVtMBZqKP6Qc66JSRokImwdT13Ahfupg== X-Received: by 2002:a17:906:98c8:b0:72b:408f:f499 with SMTP id zd8-20020a17090698c800b0072b408ff499mr15137679ejb.736.1658864477418; Tue, 26 Jul 2022 12:41:17 -0700 (PDT) Received: from localhost.localdomain (92-64-99-37.biz.kpn.net. [92.64.99.37]) by smtp.googlemail.com with ESMTPSA id l12-20020aa7cacc000000b0043bc300c499sm8817341edt.79.2022.07.26.12.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 12:41:16 -0700 (PDT) From: Martijn van Beurden To: ffmpeg-devel@ffmpeg.org Date: Tue, 26 Jul 2022 21:41:05 +0200 Message-Id: <20220726194107.316153-1-mvanb1@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 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. The decoding patch has been send in for review earlier, but didn't get any feedback yet, so I'm sending it in again, unchanged, this time with a patch for encoding too. 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 | 499 ++++++++++++++++++++++++++++++++-------- libavcodec/get_bits.h | 12 + libavcodec/mathops.h | 9 + libavcodec/put_bits.h | 7 + libavcodec/put_golomb.h | 19 +- 7 files changed, 668 insertions(+), 130 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".