From patchwork Wed Jun 26 10:58:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramiro Polla X-Patchwork-Id: 50157 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:ccd2:0:b0:482:c625:d099 with SMTP id q18csp369163vqv; Wed, 26 Jun 2024 04:37:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVDSfTiEumFZKpL5T8DI+gVj6Sw8D5OtF83G/A76FrGX/jD8T0O03QT2azdOV4ikKE+oHGcz27Zde/zv1hMS5667qimK81NC8ihHA== X-Google-Smtp-Source: AGHT+IH1fQkdqDosrCaz4mjFnYjeaVSkg6X2ua2N6ebfiLrPteXDRwoA467iZ7pbAhCFC2l5ojYB X-Received: by 2002:a17:906:e48:b0:a6f:618b:4d7c with SMTP id a640c23a62f3a-a7245c824b8mr653531166b.51.1719401869814; Wed, 26 Jun 2024 04:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719401869; cv=none; d=google.com; s=arc-20160816; b=mfdi/FWeYFXZqvb8MbsD/KiEmkhEBH40XdSNNouo5pogSAFuArHzG10vNR5iVoev4W 8QcSwUORA9+PPS2RKa765kO2aA1Ux+MFelxbvq7eQdECIz5u8HhpYK3m64AFZa/x/tTB p8h14mBiScO9pIEGsxdy9/kJkGN7YbcfmYfpEyEOyLKgNv/FdedXLSR4PjrtqF/NUEja jf1fuodbGxZFN3SxOamsEap1cPZokjIIfpoktk1pmSzpZN1KZwEg2bFkaG90zaToS6Db 8Jc8+HBzghalgGbiFOoiUcr91K1MgJr1AiP/DVtdYQJ+qc3BAqmanHHX2dHsDK4lFujC 1qVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=Qh4FkqTAepZ6hxSMVOfzJMes/y2+v0QcZLX+dGo18IM=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=tPxeNpSuSR7pu2qvc4ClgcYl51pMx52PQOYtYZ/1N5JosZN/fWnkXrTpwKDxcb0Ww1 DgLsOSJsGV/tBtS28HiVY7o+be6u97tDEIUux5sZwIDffiTxD7zUOqUHs+mLVQe+TB6r 0OuxXw20dFhPTW6z8sFjWYVARP2Ngq1yyN2n25TZt0YrKXDsQHgXdZx9cU+55gMsNPMD j+BC9Gp4+WT/Cczbxsh+oxYRYXHVXmeIRQtOfUZUtL3otJ7dc8OiphPnSPFsU5pMZphL BWW6MBZp/s6b2UDUK5Wi57SwTQBiOMFolBQnJp+R9iRif3nyoB+BURrNi2dAvB4L2M11 +sYw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=CBVyrseJ; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a6fe2ed436bsi460868866b.923.2024.06.26.04.37.49; Wed, 26 Jun 2024 04:37:49 -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=@gmail.com header.s=20230601 header.b=CBVyrseJ; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 829F468D636; Wed, 26 Jun 2024 13:58:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8228468D5A6 for ; Wed, 26 Jun 2024 13:58:34 +0300 (EEST) Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-57d457357easo74689a12.3 for ; Wed, 26 Jun 2024 03:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719399513; x=1720004313; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=RMRCskB1jFiBbyiUQdw9xQaFo4/RyvgbMvNQuXaz6Qs=; b=CBVyrseJWScQbRBwwz52c3QXlpAmVWPgJrXv6XRiEB4v45BYH60+KIN0hCv4QKAAfs gOFLkPYvV17PZigwyBC46dV39Y4NyRfxV+5CLT1mFCmzcghw5ghO/DDFA3+Pg8dNUVpz WtTJk8vUP8nueJotC/ydqF5KS/qNyhT3eB5fDqfO9sClW2uUnOUwZEo6LtPKvTUOv5P4 +bDqBrWqvv+xlwkyroFBXNRqrQRuKdllKT811t4WxQxhloGFyRKkYhsF/Izwu1H0ALBh sLtbBn0EvW0zYY8O9MQb7vjdizKdZZxV44jNY9JUyIeyYiNrE07td5b92J398JpGYVZ/ /ImQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719399513; x=1720004313; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RMRCskB1jFiBbyiUQdw9xQaFo4/RyvgbMvNQuXaz6Qs=; b=TzfoTnTF6HtNF8J5mLfYO2hLhoO4VSSILDdKwC1X8HN9WVRlbFhaSb+N2SRNj9e0c1 K5hxpLcziwdkZjUzS6YiQ+K5EJCobfnAAmTzG9n6/bNEx43fWcGELI7SPnJYifkx5uG/ OcQGlVK2ro1Rr86YL5y4HW01VToCCoJP4cPrDg68xUL4hv5T5vH92WaX23kpyONcjUTw WpE3kVRWW2KutFPtI5AAJT//b8tNhRE2w1MVCfDwoDBpcqnu0OcS2gELQ5YBAID17Dzn Qz50qusP7gJZzjZyuSDZfsW7jJJwX+2LbM/scE/pLxaI3EsBWyA5tROgMT1VBrBq1pIm 3U5g== X-Gm-Message-State: AOJu0YxECXRy9KAB7dNQGHYPyEOez17KeqPpgiYh0P5eo9uwuudW4m4f yT8/F+pzs4cZEeMi2iSmL2D7y51wK0+n9oI/kDuTyg7k8Si50LrhEWnlyg== X-Received: by 2002:a50:d59c:0:b0:57d:1696:fd16 with SMTP id 4fb4d7f45d1cf-57d4bd569afmr7330555a12.2.1719399513030; Wed, 26 Jun 2024 03:58:33 -0700 (PDT) Received: from diode.lghs.lan (108.133-178-91.adsl-dyn.isp.belgacom.be. [91.178.133.108]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57d45496336sm5351301a12.22.2024.06.26.03.58.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 03:58:32 -0700 (PDT) From: Ramiro Polla To: ffmpeg-devel@ffmpeg.org Date: Wed, 26 Jun 2024 12:58:30 +0200 Message-Id: <20240626105830.254188-1-ramiro.polla@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avdevice/v4l2: add NV16 and NV24 pixel formats 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: rC714eVulKJd --- libavdevice/v4l2-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-common.c index b5b4448a31..ada9b91263 100644 --- a/libavdevice/v4l2-common.c +++ b/libavdevice/v4l2-common.c @@ -50,6 +50,8 @@ const struct fmt_map ff_fmt_conversion_table[] = { { AV_PIX_FMT_GRAY16LE,AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_Z16 }, #endif { AV_PIX_FMT_NV12, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12 }, + { AV_PIX_FMT_NV16, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV16 }, + { AV_PIX_FMT_NV24, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV24 }, { AV_PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_MJPEG }, { AV_PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_JPEG }, #ifdef V4L2_PIX_FMT_H264