From patchwork Wed Jun 9 17:36:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Fleurbaaij X-Patchwork-Id: 28186 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a5e:c91a:0:0:0:0:0 with SMTP id z26csp1055142iol; Wed, 9 Jun 2021 11:04:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2pidrm3W1RgKj94smtIzPIUsQWwt1hfdOB/zUTW7GPJdHqC4FE+aBl1BS9s57mwgx+j2d X-Received: by 2002:a17:907:c1e:: with SMTP id ga30mr964101ejc.377.1623261860372; Wed, 09 Jun 2021 11:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623261860; cv=none; d=google.com; s=arc-20160816; b=1HTOyt2bqBe/Y8v1IyEr9EJfFUf97f6YstBVh52N0Gt8qXhdzkduNP1l4YxN1rK0/7 vn/FAsG2kZIW+iiPPAqzGoqVnPIBcB3g7uFmMM5PLjRrqZTDAzIwTSoxywFhbcWe3g0Q 48IcHH69d9MMTcoTApMZ2M/1nXlwPPCFo9dRQlHwClNBNSAr9WhfvhA0u52BJ2m18QTe vi3wGBmoCarcdQXsOm+7YffUY52J5OlBnCpYK1cZV/PNL5uNwdq0wFPsG3347Q8ojug9 vDMUE/qxIMGpOIHw12QRMucC2of9wkpMxBSSxTICRJMIok8aDUgjddCsL9r/J+F/eq25 EA0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to; bh=2V8v9t8w5LN+i5CwOKe8/V2/dsgkU5silzu4JLQR2Vo=; b=NJaOT16qfbbjFrLYZCtiozC3M6SIQ9OH3iWeGDW+a5oz4dGZEVbKK9NePww1xPuvDF SHCEcvS8qZW+1iqrdo0Oyuqe0OKfrZLurMRp3xaWhEwCD6mnfeYJklhJQtzZtRHYRdAo 73fpGdZk6fhTeL9dWEfL6gqGHmoVACgA5vZxDk24R65Arms6CSrZgqTyUmoMAwy64wi9 SdJBaNDigBYv4hhb5RL7QYanQeyLYGqYMfdjvEO+oUuMiYkzCi1ZH0CIWt0N+cUJCxXR hnibJTrmzC5esMNvmIhftpF5MJHbj0YluNoV/dO7Mv5ROlhaAM8aB3rhk1CDw35cuf60 0/+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@dennisfleurbaaij-com.20150623.gappssmtp.com header.s=20150623 header.b=eXiyHumt; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m6si365145ejn.354.2021.06.09.11.04.18; Wed, 09 Jun 2021 11:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@dennisfleurbaaij-com.20150623.gappssmtp.com header.s=20150623 header.b=eXiyHumt; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 37F9F681871; Wed, 9 Jun 2021 21:04:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B9328680571 for ; Wed, 9 Jun 2021 21:04:07 +0300 (EEST) Received: by mail-yb1-f176.google.com with SMTP id m9so30268910ybo.5 for ; Wed, 09 Jun 2021 11:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dennisfleurbaaij-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=tqYQ7RmxXGLmypQ2RyDQntSDufUOZCxHHKT+ITcYAHk=; b=eXiyHumtpznbj7K+p/LuMtZ715Fpv8f0bUnmd1lkH71t1umuio7mJcPikNFHKEeEhT My6iuscmyJPacbXxHEFGhsDY3DQptBawokIe4PiddXF+vfnCcdGCElaxm+KaGN0uOzRD 6BZ6gtb+h1dkzNj+sOm10Yobxgy01WI0q8gJkgYP0vKAyzeyH/oH9YSa5C1bDPoaH/TN o1guYFkxmx/yb3XV1nsqpip9Ypd6y2Cah4rRyhTs/G7w05AEMoVbc/BK/fe55K7cXfcQ KeL/B46LmGSK5tvlCDD56Rw6/aggZISQr5Aw81nycR8xg2zy2/R5b7Oehk0yN8MYyIG3 4YUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tqYQ7RmxXGLmypQ2RyDQntSDufUOZCxHHKT+ITcYAHk=; b=I1wkpoUAPSBlTyUwutvw6H5A2RukTpD9vYu2vYXO7gP4Ut1UvPg78/5AclP32QhWF7 AQB4BForKXSqRI8u0412DH+eqD/NFcP1TuzCeSoj6maj+TfbonhxQ/SzSCSo4WPs3z+/ 6LFaPSe5hOmVg5munFAm+AnH4EFSnqnogo0hKS/hkJoQt0T/+Is6iEDT+0dNQfPSrcfT ++8ckamFCttFtGYwYfF0DVDxM2QdHlB5Od8lhdc+ghFguJw5tnxIwLiyRJ0g+WizpNgy JWhdjBVRog7zWlgPBbANi44pfC9wwhiUkVJellUfxf2+jpgj0v7sJeXX9FrOHDid4ZUf mbPQ== X-Gm-Message-State: AOAM530xBvCWX9D6e4xvFsu/Kqua9/8V9fFMfC5NIeO9As9OU9KTChsi xtzzgqzuFitDyisQ4+fxp48iQtes+6m86+6OD6JWVgaiVVnX0Q== X-Received: by 2002:a4a:d4c7:: with SMTP id r7mr832503oos.85.1623260172620; Wed, 09 Jun 2021 10:36:12 -0700 (PDT) MIME-Version: 1.0 From: Dennis Fleurbaaij Date: Wed, 9 Jun 2021 19:36:02 +0200 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [FFmpeg-devel] libavcodec: r12b decoder + r12b fourcc 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: vj3Q0+KjWQux Patch 2/2 (patchwork seemt not handle both at the same time) Kind regards, Dennis Fleurbaaij +31 (0) 6 54 21 5365 From 4f2b6a74863ff50906ba0fa1239914ab5618c304 Mon Sep 17 00:00:00 2001 From: Dennis Fleurbaaij Date: Wed, 9 Jun 2021 19:21:14 +0200 Subject: [PATCH 2/2] libavformat: r12b decoder fourcc R12B is a format used by BlackMagic DeckLink cards, it is a big-endian 12bpp RGB format which packs 8 pixels into 36 bytes. Signed-off-by: Dennis Fleurbaaij --- libavformat/riff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/riff.c b/libavformat/riff.c index 270ff7c024..6e303f59ff 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -295,6 +295,7 @@ const AVCodecTag ff_codec_bmp_tags[] = { { AV_CODEC_ID_FRWU, MKTAG('F', 'R', 'W', 'U') }, { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') }, + { AV_CODEC_ID_R12B, MKTAG('r', '1', '2', 'b') }, { AV_CODEC_ID_V210, MKTAG('v', '2', '1', '0') }, { AV_CODEC_ID_V210, MKTAG('C', '2', '1', '0') }, { AV_CODEC_ID_V308, MKTAG('v', '3', '0', '8') },