From patchwork Sat Oct 24 05:50:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zane van Iperen X-Patchwork-Id: 23190 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 7730C448B43 for ; Sat, 24 Oct 2020 08:51:03 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4F92F688104; Sat, 24 Oct 2020 08:51:03 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9DAAD6804AB for ; Sat, 24 Oct 2020 08:50:55 +0300 (EEST) Date: Sat, 24 Oct 2020 05:50:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=protonmail2; t=1603518653; bh=P2LGC0zkd/YLrZzsfLWYljavQJPUK/v7m3bw8ed3N6s=; h=Date:To:From:Cc:Reply-To:Subject:From; b=c31XmOMjbBF/CoAfpi5EVatoMiOiWs/lk3RtP67cnbFFVISpFSfPWLrrwiBrusk2B rOP8sKwzJ1fWfAq+HNdz73ld4dJ2wJH8jLZZ/uX3WDs2sOFVaAyeiLw5wqmNjFSpgM 1RPakySBGzRWnn586JwW68MqLPMwNYySiwnwR8Rf7rWXU2cLBMkJsAY4PvXub6p6f4 k9aMoot98S78gwL0+6IyUc4nl0JHuU/EMahEmTYYVPgYS8tUgU+skVyG1HcaOVCUIN UjNvz+RGKyfIpbK8Q4gCEQx2VEJqdFYKB3OAZI47EKMa5POP2J5uxrb2hIZwGyFXLb ltxyCyazsctHg== To: ffmpeg-devel@ffmpeg.org From: Zane van Iperen Message-ID: <20201024055016.23440-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Subject: [FFmpeg-devel] [PATCH] avcodec/adpcm_ima_cunning: document origin of tables X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Zane van Iperen Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Zane van Iperen --- libavcodec/adpcm_data.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libavcodec/adpcm_data.c b/libavcodec/adpcm_data.c index e34e04d5e9..768a18a378 100644 --- a/libavcodec/adpcm_data.c +++ b/libavcodec/adpcm_data.c @@ -178,10 +178,22 @@ const int16_t ff_adpcm_mtaf_stepsize[32][16] = { -424, -1273, -2121, -2970, -3819, -4668, -5516, -6365, }, }; +/* + * Dumped from the binaries: + * - FantasticJourney.exe - 0x794D2, DGROUP:0x47A4D2 + * - BigRaceUSA.exe - 0x9B8AA, DGROUP:0x49C4AA + * - Timeshock!.exe - 0x8506A, DGROUP:0x485C6A + */ const int8_t ff_adpcm_ima_cunning_index_table[9] = { -1, -1, -1, -1, 1, 2, 3, 4, -1 }; +/* + * Dumped from the binaries: + * - FantasticJourney.exe - 0x79458, DGROUP:0x47A458 + * - BigRaceUSA.exe - 0x9B830, DGROUP:0x49C430 + * - Timeshock!.exe - 0x84FF0, DGROUP:0x485BF0 + */ const int16_t ff_adpcm_ima_cunning_step_table[61] = { 1, 1, 1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28,