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 41FBC49498 for <ffmpegdev@gitmailbox.com>; Sat, 29 Mar 2025 18:37:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4DDEF687C6C; Sat, 29 Mar 2025 20:37:20 +0200 (EET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 33578687C3F for <ffmpeg-devel@ffmpeg.org>; Sat, 29 Mar 2025 20:37:13 +0200 (EET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-225477548e1so62138025ad.0 for <ffmpeg-devel@ffmpeg.org>; Sat, 29 Mar 2025 11:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743273431; x=1743878231; darn=ffmpeg.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=aqUHzzv5GZlJtaJV1owl/BzBgAbjV1QeYTvQdCTuJrc=; b=ldvxEi8C3OzL/B6Pdc7LdSKDiPtBv25uIE9BXyVZRtAKjQpN9cdj4b3lROg4jJjx0s UJxjyCcjFVMJm3BzrZMhUNXiewNxFKXjUqNXsHVf47C9EtNeLPgTsFO9PVC9hkknvRdh ThQ5F2stug7nQYXeQaJMhKM+sFLV6bodBNYAE5Cwdu78n+VGGQ/ds2LBJ2cRstV9HWP4 jl4UvLxWP1N0ZUynHP7ROT/C6L6xOABolozPIh49D8xHwyFoFQ6s48/HDNLIK+uSR1TU z0h8L+oneV/dvHW8AstciqAoQCdQdp679KdfzYZb/7sWgcI5rADmN3nXtHPse/pW/cFt kuVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743273431; x=1743878231; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=aqUHzzv5GZlJtaJV1owl/BzBgAbjV1QeYTvQdCTuJrc=; b=fMQ+5I4PAa1ScrTEG/2ZgNYCdyhila7rLnEVUzl1iFSdiVfQAPzQNFC1S88bYuPYTx I/MlmQ2Iwp66Xk9NlU1Zk4xTjAtkuoeDPvWbPEJanO6+0ThcDHq0LIAtGS6TehOGtupy jS7hdSpBIl5ZU6+T54xx6y1t5bfKyLgfKeLaXoIroJCYk9JQGraUj2dXDC2FeMaQdiSk AbmSl+PYA9aRIV0qEfbe7Zmo0IxQzfrhCiXiwXygcP3nTxwZXld6ar5426yFAPmQu/x9 26enjJmM7zJmv8bc2lneQT++EKbGdcBEAw+tdHxNUcTnhcJNsKjd59W1FOdxibeNRMzi rK9Q== X-Gm-Message-State: AOJu0YzSIS+qiaU7MXjcuVt3rKzpqDFtBQGJlDSj84des+CgDUbkVVQD hjO58bc9lOAqJlji9UoV+SEMWhNzhzS11WVMLjNiYEYN59Dx0Cm28TPE8g== X-Gm-Gg: ASbGncvwR0NoJF7fySKRnRylDSUwIpvbWcC0MKZf2WBf4CAP/OeYRg6SXu5lGGYGfkx rS5X76LBA4lQXqIY75ttIpFEgyIPV2wERzUwmbl6GdGCqKosw+2zio8QD78+YlHIc/4qj/D6Wd8 ZJcXmLY9FYx5g5pII0b9GLREZbn93lMkAzbvXSWSBLlECvKbx+172DkJsV+Je1JNUx3Lofrm3a/ PAt3xSQzl6vTkcXGmxiZWQ5NXGy3RD4Net38Qdtw3NjvkDFqIZ2IJGjhtrEbUh4Nj0ddr45BWOl 5O/ca4bJ1+YrJqO6lM+iXDvtJYTBFak8oFkV781QDRB2gUdl5b9fp/rA0e7xv84= X-Google-Smtp-Source: AGHT+IHZKwJ4dU82hZoh+SmccqsBoVrO0eeYw+wN8vhg2XnhKf+tnbhVJU2Y/qTqmreRqTuCKQzi2g== X-Received: by 2002:a05:6a00:3a08:b0:736:32d2:aa82 with SMTP id d2e1a72fcca58-7398045278dmr5484732b3a.23.1743273431454; Sat, 29 Mar 2025 11:37:11 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-739710dccbdsm4022572b3a.179.2025.03.29.11.37.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Mar 2025 11:37:10 -0700 (PDT) From: softworkz <ffmpegagent@gmail.com> X-Google-Original-From: softworkz <softworkz@hotmail.com> Message-Id: <600d0e65a47242fcab387253ed2c75956e002942.1743273413.git.ffmpegagent@gmail.com> In-Reply-To: <pull.61.v2.ffstaging.FFmpeg.1743273413.ffmpegagent@gmail.com> References: <pull.61.ffstaging.FFmpeg.1741757838.ffmpegagent@gmail.com> <pull.61.v2.ffstaging.FFmpeg.1743273413.ffmpegagent@gmail.com> Date: Sat, 29 Mar 2025 18:36:53 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v2 2/2] avutil/hwcontext: Add item_name function for AVHWDeviceContext 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: softworkz <softworkz@hotmail.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/600d0e65a47242fcab387253ed2c75956e002942.1743273413.git.ffmpegagent@gmail.com/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.com> From: softworkz <softworkz@hotmail.com> Signed-off-by: softworkz <softworkz@hotmail.com> --- libavutil/hwcontext.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c index 276dc9cee6..3111a44651 100644 --- a/libavutil/hwcontext.c +++ b/libavutil/hwcontext.c @@ -137,9 +137,15 @@ enum AVHWDeviceType av_hwdevice_iterate_types(enum AVHWDeviceType prev) return set ? next : AV_HWDEVICE_TYPE_NONE; } +static const char *hwdevice_ctx_get_name(void *ptr) +{ + FFHWDeviceContext *ctx = ptr; + return ctx->hw_type->name; +} + static const AVClass hwdevice_ctx_class = { .class_name = "AVHWDeviceContext", - .item_name = av_default_item_name, + .item_name = hwdevice_ctx_get_name, .category = AV_CLASS_CATEGORY_HWDEVICE, .version = LIBAVUTIL_VERSION_INT, }; -- 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".