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 432184B462 for ; Wed, 5 Jun 2024 20:50:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4E8A368D5CD; Wed, 5 Jun 2024 23:50:25 +0300 (EEST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2B1C068D250 for ; Wed, 5 Jun 2024 23:50:19 +0300 (EEST) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42147970772so1984925e9.0 for ; Wed, 05 Jun 2024 13:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20230601.gappssmtp.com; s=20230601; t=1717620618; x=1718225418; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1lO/0V6yj60wNoKA+oxgCBCqH/E+7jgrX6Yymwnyx68=; b=obeStjluG5ndmrOtp5zK9EDN7FMTLnu4Qf4qZR0n3NSNgjFTpk0+Rqs5iC4ML2w+Ed b3zvFDqSzvVRm/TQ0BUv8ka4Lx3wBGzeM2NnTWog6KRMAc8QOx2S4giuoFAjklhLpyIk /RFThZ/ivyqy8lKzh3eiHQcDhypIgoQSKEWtPmQ/DAA8bS+EqrUtEemI45YCQ6/WVdWL VOsQ2Xxoz1PyuWP3nk8T8lvUKUnop831Tyv815JbULlF/PJ8XVh+uRWeX/eYM1/rl0Zs UtO7NAYGlaVsp2VLK7zTPGSW9R5+l1DDWr5ALCLPdZ0Jj+xIhjZ2cKk0rmPbBGaxvzij Es6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717620618; x=1718225418; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1lO/0V6yj60wNoKA+oxgCBCqH/E+7jgrX6Yymwnyx68=; b=izZq6a/NQB+gS8QzgfuhnvhIoFoJyhGdFGMbQVlqV4ehJDva1LnZ1Bg2QdV4EoITGi x9fmaW4FV8qMTvyI/q7bqMCF6l6dRToiVVmdf4Brpdmv2/pOZQJpbmRnAUMBUaNAMcmv 3obdWd+MqJKlBVglRvcJzz236180Vp4gEiG8NdvfJRFTYjwep3I4mDdHcAMZvCHgcPxh Xu/y2d41ME/UKrVqZi9Rp+i8ED82+nH+cthqmu+kEXXUZw3NP19Xp767hntYzwogWLec wjjmBCn0tkZLNN9jKdrZBECYpH15NlXZQEk6P2uP4DuEmXgKNTdEeMAN6W3PUMoRKAp+ NWEg== X-Gm-Message-State: AOJu0YzToirZVeuK6IM3Zfu/inPPxw+LZpvSDSa9T6dMsie1ThG3WNX2 C6b5H3S2vNVypufBhhD/uhCw6a2QmmMVfCR+DNSAmauyMNEgvleF+GT0/XwdhSAwR4rJkyPr/mm P X-Google-Smtp-Source: AGHT+IH0HOIQVG15yi5gYYjB7rrc+/hS+dCFXL2nvhA9aYMURp5nATASY7+fMSE+sSxBiHhliG6eZg== X-Received: by 2002:a05:600c:3513:b0:420:ffe3:8536 with SMTP id 5b1f17b1804b1-4215634e977mr30018285e9.37.1717620618308; Wed, 05 Jun 2024 13:50:18 -0700 (PDT) Received: from [192.168.0.15] (cpc92302-cmbg19-2-0-cust1183.5-4.cable.virginm.net. [82.1.212.160]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42158110dfesm35255125e9.19.2024.06.05.13.50.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jun 2024 13:50:18 -0700 (PDT) Message-ID: <09ecb36c-d46c-4777-842b-e0cb713accdf@jkqxz.net> Date: Wed, 5 Jun 2024 21:50:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: From: Mark Thompson In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH 07/16] hwcontext_nvtegra: add dynamic frequency scaling routines 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 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: On 30/05/2024 20:43, averne wrote: > To save on energy, the clock speed of multimedia engines should be adapted to their workload. > > Signed-off-by: averne > --- > libavutil/hwcontext_nvtegra.c | 165 ++++++++++++++++++++++++++++++++++ > libavutil/hwcontext_nvtegra.h | 7 ++ > 2 files changed, 172 insertions(+) > > ... > diff --git a/libavutil/hwcontext_nvtegra.h b/libavutil/hwcontext_nvtegra.h > index 8a2383d304..7c845951d9 100644 > --- a/libavutil/hwcontext_nvtegra.h > +++ b/libavutil/hwcontext_nvtegra.h > @@ -82,4 +82,11 @@ static inline AVNVTegraMap *av_nvtegra_frame_get_fbuf_map(const AVFrame *frame) > */ > int av_nvtegra_pixfmt_to_vic(enum AVPixelFormat fmt); > > +/* > + * Dynamic frequency scaling routines > + */ > +int av_nvtegra_dfs_init(AVHWDeviceContext *ctx, AVNVTegraChannel *channel, int width, int height, double framerate_hz); > +int av_nvtegra_dfs_update(AVHWDeviceContext *ctx, AVNVTegraChannel *channel, int bitstream_len, int decode_cycles); > +int av_nvtegra_dfs_uninit(AVHWDeviceContext *ctx, AVNVTegraChannel *channel); > + > #endif /* AVUTIL_HWCONTEXT_NVTEGRA_H */ This really isn't a sensible thing to have in the public API of ffmpeg. Why on earth isn't this sort of detail dealt with by the kernel? (Which can actually see all of the different processes using it, as well.) Thanks, - Mark _______________________________________________ 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".