From patchwork Sat Apr 30 20:07:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Karmani X-Patchwork-Id: 34693 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp1018237pzb; Sat, 30 Apr 2022 13:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEP1bnhLaTWkNT3TLE3/JuJyRrPi5NWbmGKjQoNIYYkML4XGCpG8LiEiB4sznaDuC/LK4q X-Received: by 2002:a17:907:9720:b0:6f4:31d4:925f with SMTP id jg32-20020a170907972000b006f431d4925fmr844600ejc.658.1651349299122; Sat, 30 Apr 2022 13:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651349299; cv=none; d=google.com; s=arc-20160816; b=UYJyeDEjyK4+xsw3y4kJzur3RCR+lfGkiDHhCk0vAtTFT+xJugewUsEK2KMzuZVmyO b3ygM4dTZv5R6u1++dl6aUnAZzVzswsxUFSJUP+WzVHIgrF9MnrdFJYFOQ5q2gviN1AM uOhucGLgw1zRp2v9RrO23nXartcDh2Qogy6SFg0i7olwIHP4PDFkYqbZB1eDz+BNx+YX oPs7Ftj6OT1KwlgTmZGFvkIeFWMpQzoQnINZvdU8vC3BJAOMgAwiHcaQGBTCpYdQqZ/j Vk+qz8wHW634K67YaCbWD7Bu9R19p+usKs6q3p2vqib0bkF6hZvChAv5dffiX7j3BHj3 4ouA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:to:mime-version:fcc:date:from:message-id :dkim-signature:delivered-to; bh=Of0MNQzMmL9bhagpsWPLykuaum7+6PvBClfluXVogDw=; b=bbQuwahllymmnxiYCi8EMS8wIp+BpqGn3+c2I8zKQ+Vim6B/j9umkcu31RaWDMdK+3 +G9eAhOVaEgmW61eSMTq1R/ME2gKeHM4tgAqS9wVolAR/i2Nvp5yPZ6KIoA5PUlvVz5p PQzOcEAzzz23NAP7SyGa3Juf/H7xiMN1QOy1qhCgrVWV9iwCIAoJaAIeeg6CPzZagJhD uuTIZ+xzlaQ6L/0FAvhdCLjqyZFmB1LJeUUQx4mzFgAHH6fKgtAdFpYyXicGvKEBQX7c wdFT0BlAHyMkBRtY0hQA5Fbv6tiAFOWOVnBi8ec4qpSAShD91yAPG24zoqCMqwkuFgsd m3HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=DudEszdJ; 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 g17-20020a170906539100b006df76385ee2si8930682ejo.898.2022.04.30.13.07.56; Sat, 30 Apr 2022 13:08:19 -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=20210112 header.b=DudEszdJ; 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 3925D68B2EF; Sat, 30 Apr 2022 23:07:53 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A500368B180 for ; Sat, 30 Apr 2022 23:07:46 +0300 (EEST) Received: by mail-pl1-f174.google.com with SMTP id u7so9721653plg.13 for ; Sat, 30 Apr 2022 13:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:from:date:subject:fcc:content-transfer-encoding :mime-version:to:cc; bh=qZDARY9g3VsZljzw4mc3skNajtV+YywPjWlyvYB/I2c=; b=DudEszdJQRqJSl4UP3BqnjbPHrkBUKtBTdzGnwb5qBIymu8cykdlKUdcJzQ99C1pMN SfKV57d2Lhx7AyaJvzdOkSOIEyb27HhN7jX8W9rjQ0KiEwIPlJGAtPxt3T1ARy5Q+EjX on/IcJVrWZgzbZOyTxh+Raz6Pcjti5NPzzvjdATvVZoXve6JHD8ZMayZhXz/LjLReG9F 5DifapAworA8WXT65p/vU4RTypMoe0DvrE7z2rkBt+v7IBtTcv/4xnR9PFuN/waXUnpO deP5YnHRvNxbcZJs9LfoZOve+e3gt5e0n+kvi9JeLnvrdp5jeD9/jhYgaWDgCXgV+bT+ RKBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:from:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=qZDARY9g3VsZljzw4mc3skNajtV+YywPjWlyvYB/I2c=; b=G4chKKmBerrhlkj5DjjKF7/sIL+RC7L/R5jJfnj3DpJpR4FJ6rCkWwjgilHumULu5x U6nzP5k10GJfcZFUcDESkYkqAjwSwxxZzrsJoRgODD72h3aEshYOaUw7/WH2zj+IySPD 4fCsY8PzwlW/si4JKVX5g59ELmMWWvJGCpMV9Dx9LkHxeML8SWiHvT6f2iTx5q60d4XN 4zKcBtG8s2WZ94LzCQPm0ajz6kGs/udBE+vKQod2tLut4zunBpU7qFknilga4weqvNdo c3CcGrpZdoOexpYC/640ShxILZAB0voJrEg/3ayfKIFilDCKCIGDvASAdTU77/2VqIE7 ofvw== X-Gm-Message-State: AOAM532uY3BNomc2Un6P5XelJYyCXIWRY1SKnqWX/zzmV3JrdsOPubRp kkJvt+vLCO+kRkfPVATPkkryrmu7aajwWw== X-Received: by 2002:a17:90a:ab08:b0:1cd:34ec:c731 with SMTP id m8-20020a17090aab0800b001cd34ecc731mr10447353pjq.202.1651349263825; Sat, 30 Apr 2022 13:07:43 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id co21-20020a17090afe9500b001cd4989fedcsm16265637pjb.40.2022.04.30.13.07.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Apr 2022 13:07:43 -0700 (PDT) Message-Id: From: ffmpegagent Date: Sat, 30 Apr 2022 20:07:39 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 0/3] Add derive-device function which searches for existing devices in both directions 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: softworkz Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: rOfm+bo9wNZ0 This is an updated version of: [PATCH v4 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions There has been an objection that the earlier patchset would change API behavior, and that this change should be limited to ffmpeg cli. To achieve this, the API behavior is left unchanged now and a new function av_hwdevice_ctx_get_or_create_derived() is added and used by the hwupload and hwmap filters. softworkz (3): avutils/hwcontext: add derive-device function which searches for existing devices in both directions lavu: bump minor version and add doc/APIchanges entry for av_hwdevice_ctx_get_or_create_derived() avfilter/hwmap,hwupload: use new av_hwdevice_ctx_get_or_create_derived method doc/APIchanges | 3 ++ libavfilter/vf_hwmap.c | 4 +- libavfilter/vf_hwupload.c | 2 +- libavutil/hwcontext.c | 72 +++++++++++++++++++++++++++++++--- libavutil/hwcontext.h | 20 ++++++++++ libavutil/hwcontext_internal.h | 6 +++ libavutil/hwcontext_qsv.c | 13 ++++-- libavutil/version.h | 4 +- 8 files changed, 110 insertions(+), 14 deletions(-) base-commit: eef652ca9c893a84c6430fcdd53eed186c299d82 Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-25%2Fsoftworkz%2Fderive_devices-v1 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-25/softworkz/derive_devices-v1 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/25