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 5A2804CE99 for <ffmpegdev@gitmailbox.com>; Sat, 15 Mar 2025 09:34:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6045E68D6CA; Sat, 15 Mar 2025 11:32:49 +0200 (EET) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D65EF68E26C for <ffmpeg-devel@ffmpeg.org>; Sat, 15 Mar 2025 11:32:45 +0200 (EET) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4394345e4d5so3231935e9.0 for <ffmpeg-devel@ffmpeg.org>; Sat, 15 Mar 2025 02:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742031165; x=1742635965; 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=LJawLBDyKf//QRe5XwKhWbFDtqdsCcfyExTAnUQLF2w=; b=nA3GbmHTvK18bAmpoBfJEdMczOmmyCirMtxt0zImfKAn4zW/GKfTNSFfIJOsfSBImb 0k3KPibUFxzPZDbmPa4Zj16QklSuFv15rQDDUvNjMMplzpkfdKosm7P6YKpRh2Fb+Fdf 7mKeVLF4u+z6J8umk6wsSNcxVur0DwFzChNMYqrn78FrgTgz6YMG0/CLDU6C4qEfHegT oO+u3tcRxBiHJdXR6LnAr75FaHBUTZ36VKuI6uuFIzThcp0JCTFpF9HeLosGfYTf49uz CHHs2yhKq7OXT3ZVx2CAN4HHTD6Jl6zIdbZYUm+bhYZmclmrrOVDfiR2IRC5TY6C/zLq 3IOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742031165; x=1742635965; 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=LJawLBDyKf//QRe5XwKhWbFDtqdsCcfyExTAnUQLF2w=; b=XXuTNEs0XPTMRoRPA51LTT6UGk7GS94ZbK1CDZUUMl6i0vB3jXytXHww9LZWFCTs3t xPPIzjHx/qGvRssTqyo14vMddjW6cYabtQ21XxBTFgmeCXIxF53VfkWMkWq1PqmSe9/a Smxk8Yp+9nYQgDFVIez85OHOsf5SnOJTuUXEalqC6d3SRb7j/m5JHEB69OcQZ1qDj4N7 rgBtTxRZwqThVNRxand9/ptLZO5W61MBy1z8YFJ4/tG8mr5lU19ZtVoWMtAbp8EwR6k3 k9VTA4L61gu40Vk9SC8PHi27bXg4p4EZaPNUz8av+aPkCd7z2LSAi4B3DhLrje7uEBYo XuhA== X-Gm-Message-State: AOJu0YxhFl3RY+IYZejoDwnJjbwOVbzDcggBQqVtBnZD0X0diZfDwVTw rOOkmY7X7ZYTy3Y/29d//8zXdmRsAqnAFVzgF3eri2bW0EmyJ1dM38oNkw== X-Gm-Gg: ASbGncsTOD1oubUaNSP0nnW+HNIWefbIY/bfvF/WtFHwQ8dUuL6tbYQhkP0V6+9G7jP A5zau1pk2lbfFfgjG0JjzhLMuzbI6WECFxZndevExAmWdrKBIIz2Z0nj30Md7IaViZ0eAQXcyYz BE26oFdJnHfiYuHoKOr8cBqNDR7gQWaAkwG7G6dlVuP/N2G/k8ScNvS5cvGDXIUWRLNuV+89UMa 9QdBukHbTcjkYg7zokMu07Z2LChBMwbDREbG2IFtViE4+6u4ocrrS/0oGEFAbcVejiEgPjPZW6+ xQndCQMAni22LFoOdFLSXZa8iGiKaHcdHV6CqSQcfhNybdZR7TzRLZM1oNTgCpYuuB0RyDwOVan YlYMjNV+J1ZVAHwyfoDvEANlWVuGx2k8wcqJIlUysPSicSO4zw9jeGHdQ00N0qEnOAg== X-Google-Smtp-Source: AGHT+IGXlrlnVLPHatQCw2oW6G53cVLU4ukjN/aLEdaTaJfHLJBFj5gsqafHSAi4IfzeCdseImypGA== X-Received: by 2002:a05:600c:4fcc:b0:43c:fab3:4fad with SMTP id 5b1f17b1804b1-43d1ec80ebcmr79589855e9.16.1742031164820; Sat, 15 Mar 2025 02:32:44 -0700 (PDT) Received: from flagship3.deu.mlau.at (p200300c0271f29004c5623f045c27bca.dip0.t-ipconnect.de. [2003:c0:271f:2900:4c56:23f0:45c2:7bca]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d1fe659b3sm43302905e9.34.2025.03.15.02.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Mar 2025 02:32:44 -0700 (PDT) From: Manuel Lauss <manuel.lauss@gmail.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 15 Mar 2025 10:32:19 +0100 Message-ID: <20250315093220.2565-13-manuel.lauss@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250315093220.2565-1-manuel.lauss@gmail.com> References: <20250315093220.2565-1-manuel.lauss@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 12/13] 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/20250315093220.2565-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> --- v2: newly added. libavcodec/sanm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index b86f67c3bf..7e39c5eeb0 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -1676,6 +1676,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.48.1 _______________________________________________ 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".