From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 684C645136 for ; Mon, 9 Jan 2023 20:30:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E582A68BCE6; Mon, 9 Jan 2023 22:30:15 +0200 (EET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A357D68AF32 for ; Mon, 9 Jan 2023 22:30:09 +0200 (EET) Received: by mail-pj1-f51.google.com with SMTP id l1-20020a17090a384100b00226f05b9595so8994304pjf.0 for ; Mon, 09 Jan 2023 12:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :message-id:from:from:to:cc:subject:date:message-id:reply-to; bh=9i4f0x9ispOD8SY1CUfUqFwYX+l+KvRn8MXCEHiKtaA=; b=KMDN0kHCh+A95LB0+45ySlQqK3T9HxzCKoyWaIM8kYrc7Oi1fof9y5oUMf/L7In3KC NdDYXF1UlqFD/KkLL+GqL/OlYBBtUN8R6XEjgzvVyztYhv6tqSwGZJBM0HIJwlT/5pX9 qtW7chXf/C9/kOS2gR6QHrug2t05kzMPqoUIw06cg/x+Hed7+gV82sw5QIVm+7E/pYRU 4n9P0HteKlqH4g9goW0rFDrEwB2zRZnQ9gBLlM4eIyu4GyNq2vxDyNWt9HoCF8Poktl3 01CpJT1HH89y/JkquwetL+RlQldtwSG2VKCqE/v6jWRZo6KyxT7VjCjSFz6XdnSavsEK 3jIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :message-id:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9i4f0x9ispOD8SY1CUfUqFwYX+l+KvRn8MXCEHiKtaA=; b=zNVxq4g6AncQWV/xtPl1GJ9lnhQ8ZXREmigJpkLdtkaQkzYino70bWcHHmC6iz52WP HX6FcrjAZTZ9AHIAFDlVw4HUeLhmM3IPMlzZAKjec0qXgcuiY2t2opomUJdvvIIXEejC MYXt45/JJTEO5UqfysOCShhFOsinPCLx/2Qq/KrNB/U6wZEKJpjXH7QZZ3jGxBTujlpZ TP5JelG19S7aT/qJ1Iveg8f0cngkDd/3noGv9qw8XkZPWBX3DSe9G/IKqOgO58LvbyUF LWRZ4WXzM+wENLS2dQNGch2PyiW/Y4vcKRxqn2+L9wpYIOMWYjPtb1UUJuJOPT4Z7IEG TMJA== X-Gm-Message-State: AFqh2kpe1dNYPhfTivwZiiPY+EMEiJrgbSmuMfXdDTMrpcsDqBYRQggm q38v3OwuSjL4kZxB9lnYnLHP44GDsXE= X-Google-Smtp-Source: AMrXdXv/brzDTvj4YBPIUEmqU+lD5QVESbn7VWLXWctDIlYdnVzpDurH84fWfOQp++V9zb/nibRObQ== X-Received: by 2002:a17:903:2c2:b0:189:c8d9:ed30 with SMTP id s2-20020a17090302c200b00189c8d9ed30mr62151143plk.24.1673296207868; Mon, 09 Jan 2023 12:30:07 -0800 (PST) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id s14-20020a170902ea0e00b001926bff074fsm6450926plg.276.2023.01.09.12.30.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2023 12:30:07 -0800 (PST) From: Aman Karmani X-Google-Original-From: Aman Karmani Message-Id: Date: Mon, 09 Jan 2023 20:30:06 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m: log both v4l2 and av pixel formats during negotiation 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 Cc: Aman Karmani , Andriy Gelman , Ming Qian , John Cox Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Aman Karmani Signed-off-by: Aman Karmani --- avcodec/v4l2_m2m: log both v4l2 and av pixel formats during negotiation Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-47%2Ftmm1%2Fv4l2-dbg-v1 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-47/tmm1/v4l2-dbg-v1 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/47 libavcodec/v4l2_m2m.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c index 984936004d..602efb7a16 100644 --- a/libavcodec/v4l2_m2m.c +++ b/libavcodec/v4l2_m2m.c @@ -148,13 +148,15 @@ static int v4l2_configure_contexts(V4L2m2mContext *s) ofmt = s->output.format; cfmt = s->capture.format; - av_log(log_ctx, AV_LOG_INFO, "requesting formats: output=%s capture=%s\n", + av_log(log_ctx, AV_LOG_INFO, "requesting formats: output=%s/%s capture=%s/%s\n", av_fourcc2str(V4L2_TYPE_IS_MULTIPLANAR(ofmt.type) ? ofmt.fmt.pix_mp.pixelformat : ofmt.fmt.pix.pixelformat), + av_get_pix_fmt_name(s->output.av_pix_fmt) ?: "none", av_fourcc2str(V4L2_TYPE_IS_MULTIPLANAR(cfmt.type) ? cfmt.fmt.pix_mp.pixelformat : - cfmt.fmt.pix.pixelformat)); + cfmt.fmt.pix.pixelformat), + av_get_pix_fmt_name(s->capture.av_pix_fmt) ?: "none"); ret = ff_v4l2_context_set_format(&s->output); if (ret) { base-commit: 94aa70d757af6b0e0919250f9def2a819aa00358 -- ffmpeg-codebot _______________________________________________ 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".