From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id AE7F24E8C3 for <ffmpegdev@gitmailbox.com>; Mon, 17 Mar 2025 17:51:02 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 42CE9687C2F; Mon, 17 Mar 2025 19:49:38 +0200 (EET) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5DDFB687B5B for <ffmpeg-devel@ffmpeg.org>; Mon, 17 Mar 2025 19:49:30 +0200 (EET) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-391342fc0b5so3971353f8f.3 for <ffmpeg-devel@ffmpeg.org>; Mon, 17 Mar 2025 10:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742233769; x=1742838569; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+qGE0vvfbAr8kqU1u+k+G2d6Mh7nENGz2czCCVFezUo=; b=bl6EApoQ3pH7XDZIVTqy6MroWCMKyrHV84bbp1yPemPZH8br+YzDjf6DDv5boRSzAy C6wzX29E9JLJM1vVAU1KUvP6jaqP+ufuHo9UPrm5oTajih8yAE2pZ1NHL9o8HP3Dyf14 jmsB29ZY+PMg+E+E45ZrdKSfJTtZyZ0R1RJRQAQ0qPNgj7Lr4NvAXrFGhTSMnEj+1NA6 HRxhUBLV5zcjPo1JgYKZzuGS9ZbF7a6V04MEaM2j/DNcOMOd5HNytM6mqD7RwdAH+X2j QC99muGq/hGvScySq086AQ5oBc1Z2bykg2FaXmefeSkEqtv50I+VVMJZlwv7xFGBpVcG JIRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742233769; x=1742838569; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+qGE0vvfbAr8kqU1u+k+G2d6Mh7nENGz2czCCVFezUo=; b=retVoeyzZ7H05D69nPNpLWNs9zhUjeN6XrEzp2A7VLWI5DxKOmBWGA+ica3zFn4Ic+ je0ZdFzN0uTW2I6l8qrJ+CcEK2XaWT4l+HTE0O5BotT2VfKlk4Tb5j2DQDdrzRIafoFk 9LdJyW80TlpXx485S/2pTMH3EVJGZ3+mymd0S2fxEkbF39Xg+ce/8gniewWQ9TNk11CL CWdyJ2DOYBqiXJAqSpjWPnKIRV0cA6uC6zHyXdqiJQdwcxHjWoHo7KfYDhco/uCK1uhe BiX007XHEX0Fcf0+qakkVCiyyOkGCvpT72dQjAGKI0wikIeAPxMyhNJ12f8GZeJ89KqL X+VQ== X-Gm-Message-State: AOJu0YyTIR1RCvfrGhsqyXGdJU3ZT4nAacOLHi4aZ8kdwwnAetuQwelh kWx2Fs6NI0+tcA8QYJlPmn+tQn5lRRymEvWYoVaGpF29Ffk3OuR1PjYqkX6O X-Gm-Gg: ASbGncsumMBhRG/vkQD1YTu4LXLICoVta3oioQBSTEB1JNuMkQ5dHbigkMdd5v7t/9P llQrZgkFoKAajiEofrPAjd/I3DCbvPoq9qo8ZxRweYhhc1gv1KAAQlqdQG0V5AUZ98CQfno50Zu jukcMZmdTPb/sKkFj4GPQrgasHu+jls+iDbC2LYvAlv33cWQK+iOaQ1hywrGzWZm8hLeJ/woNz6 EwqXqk/NsOExogLbXBSm2Q0WZFEqO/ADmVyiClKGT79UScjL44TjRfIZD4gWechkLk71g6uFhMN D7dhFtnj0ghatWDIPd2H2r4qtAhCGVYWBd1KMH3FEi3u4C8iwSc8eZb7RYi1SZxRJDj1ilRVvF8 BfjisOwaQNEb9vEA8jlwXLXIlLATcoA== X-Google-Smtp-Source: AGHT+IGEnuZfHbjwxAoUREQSpsxW1XPL3YSCvzwodnuN8IMo4ZLbf5Ar9Z2KbfIXQpL8swWP4Mdbpg== X-Received: by 2002:a5d:64ac:0:b0:391:253b:4050 with SMTP id ffacd0b85a97d-39720d45685mr15584296f8f.51.1742233769283; Mon, 17 Mar 2025 10:49:29 -0700 (PDT) Received: from flagship3.deu.mlau.at (p54bc8686.dip0.t-ipconnect.de. [84.188.134.134]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-395c7df35ecsm15809347f8f.16.2025.03.17.10.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Mar 2025 10:49:28 -0700 (PDT) From: Manuel Lauss <manuel.lauss@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 17 Mar 2025 18:49:14 +0100 Message-ID: <20250317174917.6872-13-manuel.lauss@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250317174917.6872-1-manuel.lauss@gmail.com> References: <20250317174917.6872-1-manuel.lauss@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 12/14] avcodec/sanm: ignore codec45 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Manuel Lauss <manuel.lauss@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250317174917.6872-13-manuel.lauss@gmail.com/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> Codec45 is used in some RA2 videos on top of codec37. It consists of 2 tables (768 and 32768 bytes), and datapackets like codec2 (delta-x, delta-y) with a pixel counter instead of a color value. It then reads the 4 surrounding pixels, looks up 3 separate values for each in table1, adds them together to form an index into table2 for a new pixel value, in a row. The data coming in gets the x/y coordinates out of the visible area very quickly (2-3 iterations); I don't see any visual difference between the ffmpeg-produced frames and ones captured with dosbox from rebel assault 2, which leads me to believe this codec never worked as intended. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> --- v3: no changes v2: newly added libavcodec/sanm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index 54d578ae4b..730ec14b98 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -1679,6 +1679,8 @@ static int process_frame_obj(SANMVideoContext *ctx, GetByteContext *gb) return old_codec23(ctx, gb, top, left, w, h, param, parm2); case 37: return old_codec37(ctx, w, h); + case 45: + return 0; case 47: return old_codec47(ctx, w, h); case 48: -- 2.49.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".