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 6E92843BB8 for ; Thu, 21 Jul 2022 23:39:56 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 385EF68B590; Fri, 22 Jul 2022 02:39:53 +0300 (EEST) 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 D4A4268AD06 for ; Fri, 22 Jul 2022 02:39:46 +0300 (EEST) Received: by mail-pl1-f174.google.com with SMTP id z3so3237370plb.1 for ; Thu, 21 Jul 2022 16:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:references:from:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=lj/G+d5nZsqmmWyQPjat1JLKCcgiZxdJOGgL4MI/eVg=; b=CFg6+adbEcvWR7UxHoVHwXMteaulSyqC7zX5V1b/uQH5s8jU8RRsQmqpnP65rblEu1 vBgET1Gy8QIZHHB3xXMpVcNShYF3Wp3SECaIpZUHEiAShzw6jF9Iw51FXUD7VDmN5mqk 6eUpCAJ4GXtD2gLc+6aHuolqqKNzG2qHqV29T0eCKQnioIhJbKZNhqPxhYtRNFi7+SVY PpZfvOdjX9oSEwlPKYO2YFGqelkKQQtwObBHF+O3U6Oa1FAlEHAyTG980SzFPpT9skYE UctF7HE0GYfh1HLYRSAf1N3foa2/10H5k0cvPvkZi794xAx7wtuIB7iJPm+zB0BWB6cm 8a2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=lj/G+d5nZsqmmWyQPjat1JLKCcgiZxdJOGgL4MI/eVg=; b=X2+C0w9UGfBuWp+Nae5zbnUr4F1YFfvYZT60MQrvylvo3riDWRwdEkL+N7UBZRe22B HFfMnRi9vPhbBezPPNvUum1GP8n/Ep8wHnhm78kyHdmMRUu2TXyr9TlI5C4+4KesGb+L 45nJiWfP68rrhCajwjgdXePov4KBngOaJ8foN00Azp2AxjHvTjxttl7RuKeIvpS/oTEV izGgvceFZiFu8TCA2Vk5JmuBnbU4th6DwP2cYeSSnse3ZbfMSSB+p51aepjZfiABMb/o VkU3MFL+LeTngsgbexUI9zZJ/YUIV2HkmmUQHa1mxWSUCfhHCtsLYNrdE+H8xD6BaLzW +Rew== X-Gm-Message-State: AJIora8unpGPfrCC7nBafoUuL/3AxFshquXBBAueCEm5zxmdxVW2Zofi nYEh6bxRcKZ1/jCdyjlgzx2oA9nPA7I= X-Google-Smtp-Source: AGRyM1spmy5Pi49WpZgRZS08hkrtdx755WPa/FRY045fMWuM3U3fhqPTLCy48hKLkJjfPPXKuF2AgQ== X-Received: by 2002:a17:902:ab48:b0:16d:1175:9ed5 with SMTP id ij8-20020a170902ab4800b0016d11759ed5mr686682plb.19.1658446784638; Thu, 21 Jul 2022 16:39:44 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id s21-20020a17090ae69500b001f06cabc60asm2022807pjy.30.2022.07.21.16.39.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2022 16:39:44 -0700 (PDT) Message-Id: In-Reply-To: References: From: ffmpegagent Date: Thu, 21 Jul 2022 23:39:39 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v3 0/4] 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: Mark Thompson , softworkz 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: 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. v2: Implemented concept for "weak references" to avoid circular reference lockup. v3: rebased due to conflicts softworkz (4): avutil/buffer: add av_ref_from_buffer() function 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 | 6 ++ libavfilter/vf_hwmap.c | 4 +- libavfilter/vf_hwupload.c | 2 +- libavutil/buffer.c | 16 ++++ libavutil/buffer.h | 8 ++ libavutil/hwcontext.c | 167 +++++++++++++++++++++++++++++++-- libavutil/hwcontext.h | 20 ++++ libavutil/hwcontext_internal.h | 11 +++ libavutil/hwcontext_qsv.c | 11 ++- libavutil/version.h | 2 +- 10 files changed, 233 insertions(+), 14 deletions(-) base-commit: f7d510b33ff33d2f5cb096017ee1c00f624cc138 Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-25%2Fsoftworkz%2Fderive_devices-v3 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-25/softworkz/derive_devices-v3 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/25 Range-diff vs v2: 1: e9c920c237 = 1: b17a72426c avutil/buffer: add av_ref_from_buffer() function 2: bec8ccfcc2 = 2: 5cd017dfa7 avutils/hwcontext: add derive-device function which searches for existing devices in both directions 3: a2c8e79e8a ! 3: 03528fce43 lavu: bump minor version and add doc/APIchanges entry for av_hwdevice_ctx_get_or_create_derived() @@ doc/APIchanges: libavutil: 2021-04-27 API changes, most recent first: -+2022-05-21 - xxxxxxxxxx - lavu 57.25.100 - hwcontext.h ++2022-07-01 - xxxxxxxxxx - lavu 57.31.100 - hwcontext.h + Add av_hwdevice_ctx_get_or_create_derived(). + -+2022-04-30 - xxxxxxxxxx - lavu 57.25.100 - buffer.h ++2022-07-01 - xxxxxxxxxx - lavu 57.31.100 - buffer.h + Add av_ref_from_buffer(). + - 2022-03-16 - xxxxxxxxxx - all libraries - version_major.h - Add lib/version_major.h as new installed headers, which only - contain the major version number (and corresponding API deprecation + 2022-07-xx - xxxxxxxxxx - lavu 57.30.100 - frame.h + Add AVFrame.duration, deprecate AVFrame.pkt_duration. + ## libavutil/version.h ## @@ */ #define LIBAVUTIL_VERSION_MAJOR 57 --#define LIBAVUTIL_VERSION_MINOR 24 --#define LIBAVUTIL_VERSION_MICRO 101 -+#define LIBAVUTIL_VERSION_MINOR 25 -+#define LIBAVUTIL_VERSION_MICRO 100 +-#define LIBAVUTIL_VERSION_MINOR 30 ++#define LIBAVUTIL_VERSION_MINOR 31 + #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ - LIBAVUTIL_VERSION_MINOR, \ 4: d0957afde6 = 4: 7ee28b7c25 avfilter/hwmap,hwupload: use new av_hwdevice_ctx_get_or_create_derived method -- 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".