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 25659479CE for ; Sun, 29 Oct 2023 03:18:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C4A8A68CA22; Sun, 29 Oct 2023 05:18:39 +0200 (EET) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BE76E68C1E2 for ; Sun, 29 Oct 2023 05:18:32 +0200 (EET) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 68F07106015C for ; Sun, 29 Oct 2023 03:18:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1698549512; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=yCOM9dVmKXyyle0gxQnPE5h3DEGKVWXNHCmMsSJoQ1w=; b=zuRad0ZC3u23A/haFjkBiTBQ3keGJ923JA0NHaSC/mKN4XKumOXv9f3ByinhZ6fs mSs4bWG80znsOsaCxcMY84kzUdDJ1uGt50vXQ/ShKhvYZhcJMVFXB0IxbmbaX4OIm4q XrE0TuxklecX9gvktSfP/6JklQRP+pqR+Zb6f/GUI5emu7KwhuZr/HC9X+fsvY4TBHD PzBIaL3LDNSjPORr1hp3hIyXTl3hWtP4gZOkituvT4anyVCA2/ymMHN3KcB4dxcXtxI 60rj8556KhMlUgbGBEZiNUNL3LZoEtv8A0JIJl9PmsmnOHpLbG+rtbc0gFRlXs2mLyb zrFTm2IGLg== Date: Sun, 29 Oct 2023 04:18:32 +0100 (CET) From: Lynne To: FFmpeg development discussions and patches Message-ID: In-Reply-To: References: <20231028181341.13090-1-quinkblack@foxmail.com> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH v3 2/2] fftools/ffplay: add hwaccel decoding support 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: Oct 29, 2023, 03:31 by quinkblack@foxmail.com: > > On 2023/10/29 03:32, Lynne wrote: > >> Oct 28, 2023, 20:14 byquinkblack@foxmail.com: >> > > Fixed in patch v4. > > Maybe we should export optional_device_exts in API. > Patch welcome. >> >> Is there no option to let libavutil create the hwdevice for both SDL and libplacebo? >> That way, that code path can also be tested. >> > > libplacebo doesn't support that: > It does. It's how vf_libplacebo runs, and I also use it in my sample library (txproto). You should do it this way. > // Creates a new vulkan device based on the given parameters and initializes > // a new GPU. This function will internally initialize a VkDevice. There is > // currently no way to share a vulkan device with the caller. If `params` is > // left as NULL, it defaults to &pl_vulkan_default_params. > // > // Thread-safety: Safe > PL_API pl_vulkan pl_vulkan_create(pl_log log, const struct pl_vulkan_params *params); > > I think share instance or vkImage without support from vulkan spec is hard to implementation, > > if not impossible. > > https://www.yosoygames.com.ar/wp/2022/07/vulkan-integration-between-multiple-libraries-e-g-qt-ogrenext/ > That's why we have locking callbacks for AVVkFrame, and for VkQueues. It's all done for you, as long as you use the pl_map_avframe_ex(). _______________________________________________ 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".