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 330E042C5B for ; Mon, 1 Aug 2022 12:03:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D824D68B8BD; Mon, 1 Aug 2022 15:03:38 +0300 (EEST) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0A22568B7B3 for ; Mon, 1 Aug 2022 15:03:32 +0300 (EEST) Received: by mail-ed1-f43.google.com with SMTP id a89so13431181edf.5 for ; Mon, 01 Aug 2022 05:03:32 -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; bh=MU7x/RHD30491dBL0N3P98PpvF5TRVK2l6k0NvN67bI=; b=JDZgGmleTzLjxCfVTkjixweJeNPEecBBDU/7UAr7fgQF/xVQ3pUcRAngE2O9ltimXS y6gZasaWUuHqXcL+6pz1MX9eANaqPJAmkwKiT4hrCRgQsQ2fE9RioISX3O7EZBp6LIQr /YU//++Bl/TBjj/GzxXhBb36jnPLKD8F6ciKwAnvWTUur3tKyqqqVLOZIxRRFvfFxnth IIRxKjJgWrRsQ38IInASU0hxJBtISEnQX74t8XUJFo0jsckH5zfmO2MZUZraZEyuz5Ev fzCmYhDW7EHvn0wJIfBiGislYWQ7xXYMDP8rzG5FwgJqtWoce/xJNV/9vS2vQtiF0PlE YQaQ== 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; bh=MU7x/RHD30491dBL0N3P98PpvF5TRVK2l6k0NvN67bI=; b=BkmBLKESBH9Kw9VOqgb9GZmPY3jj1VbNW6rVVl35FD1ZBla+Y0WzytVC56P+uaQZDP qTUn5iJQrcJBKqfnDJVyXWjsFUHbJW15oS12dRiNh15QeLIM4v/oPQu7A/xrICFt/JAl /yVQGEirlATyyAOW2Oq7ykaqr4C91iYIpxT4iEyd/xAY9PoXc8kVjUyM8sLlQN3iiu8V eqJd8n/j+WGk7gyXOIyHXf5gEpbgQG43yGjQAVGQgUJNmEFnhsjJhAQXIIk2A+BrlJ8O axlHvyCrW7TE2dIOOdwHHpdP1mBVg5ENWiEa2U4z/xWiovwxVAftu2wkvsUOaztd3A5M 1xzg== X-Gm-Message-State: ACgBeo3TH4S0EDPlOyLPPUauhcWz6l9mOo5lWOgxp7Hs1uO83acLW3gu uYAVN/A0p1BdRuX2khoBDg/JPK1raLkegQ== X-Google-Smtp-Source: AA6agR5iwMXYeTatWRZJ8GmgYEWR6HFvOs7VPS5hPaLEHAlRrga8cbbbLJZXUAe5AVYA0Zm01GVQLQ== X-Received: by 2002:a50:fc85:0:b0:43d:2284:1ea5 with SMTP id f5-20020a50fc85000000b0043d22841ea5mr14335852edq.105.1659355411964; Mon, 01 Aug 2022 05:03:31 -0700 (PDT) Received: from localhost.localdomain (92-64-99-37.biz.kpn.net. [92.64.99.37]) by smtp.googlemail.com with ESMTPSA id v2-20020a170906292200b0072b51fb36f7sm5101845ejd.196.2022.08.01.05.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 05:03:30 -0700 (PDT) From: Martijn van Beurden To: ffmpeg-devel@ffmpeg.org Date: Mon, 1 Aug 2022 14:02:12 +0200 Message-Id: <20220801120214.665471-1-mvanb1@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 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. 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 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".