From patchwork Tue Feb 22 13:01:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zane van Iperen X-Patchwork-Id: 34442 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6838:d078:0:0:0:0 with SMTP id x24csp4326672nkx; Tue, 22 Feb 2022 05:02:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFX89645ugcWbrelv+dSzNmyJ4vTS27SpFmCEklAQoCr7Ff4Ja6p2yaFwAAEMp/IcnPyBi X-Received: by 2002:a17:906:1656:b0:6cf:571c:f91d with SMTP id n22-20020a170906165600b006cf571cf91dmr19512245ejd.377.1645534950762; Tue, 22 Feb 2022 05:02:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645534950; cv=none; d=google.com; s=arc-20160816; b=k+O9PDqjTKao5VR/LAte4me3Dd49RoW7v2iedaTvWJIQq6SDcM0fkJhd29tuJbwb3V +d0HG4lrER6qzRu/hJHKIBFInq5RCUsgUVbOHTHfh064SpQJeisAT9G8pbAjs7wMVdDs p1h7vowgKFv9WW85ELEvcpqDHXoI4oYOZPLvzCmHaAabssQUSShLRlu2i1UEoRmnvFJr XdS7SxCKvC8GMNpZkQl1VFT8o6PT1feB7Zoy5tippSRFkwLfzFOh2EOhmwz+HCRJGrdu 7eay6441alCSMazLOf/y0votbdmAeckNd3HDZgedjF4tGkR/ZPxxI0me7LAgqqL1Lgl5 3Oqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=RY7+JyoUXe7J7x/IwgZQlNfDZF8vPUHlMEgRt/ZfyPE=; b=mkjuthEXUGI6JjuJtwp/oSOXRIDLZyb3RyqIu4qF+QDiKd4LJR1JWJNRou6czR2JQq yw/v92M5HE7TrvVyGWKJnmjLHpx4RDOqnSElAgQXUIxOxczDgyp7pK2jXTBtTNJf8OGg Qw7VMt+6tKRII/y/6Rj3Up1D40ktjfzmjqksPgnIBacU5U1PBub5704ZJIozB8+cBIN1 E4VbFWGkEk42DhJ9zv0Lti3DnHvpxICkN2GiSvtZQ3z001cvH+VZxbVqpgfF1C1EVJHB zFLiNhQaJ2lUpJ04KL8UUUKF4OfqD+iajxqgwfbVpj5QZL5TL52ioWR3aukBeSHnIAF7 OSoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@zanevaniperen.com header.s=key1 header.b=G7PPPzJp; 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=NONE dis=NONE) header.from=zanevaniperen.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y11si13596969edd.92.2022.02.22.05.02.29; Tue, 22 Feb 2022 05:02:30 -0800 (PST) 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=@zanevaniperen.com header.s=key1 header.b=G7PPPzJp; 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=NONE dis=NONE) header.from=zanevaniperen.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 899DB68B07F; Tue, 22 Feb 2022 15:02:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9995D680BC7 for ; Tue, 22 Feb 2022 15:02:18 +0200 (EET) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=key1; t=1645534937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DcjNWHot8kVLbOdIMv6lBY/3sezmz7A/NdfEyrgdecc=; b=G7PPPzJpPNl4SPYxZNEzcVT3K+cDP/jIMo+rVOI5TQ7JzoP4+X+VV+3Ngyee8m1dk+F29z 2irVQZ7IDdb1yXBafdTIfNN37Lik9Rbw6ef5vf4YKGgmAnuXrgxZbRK2p4GaucEorcy6YX XnSs2YWH5VY9MXdPGtEmd71MRNtCrnuGvd7uy//RyCqMm6EjBGyYJOBegMfFkmChetnjhT eLpabddZjDIxorhDCVNK1EUNrfgKP8EosPIUloSmthbG9kGinxGfrwGU/V+0XEVwPe/Y1b hSTPgJqbO6MgptKz6fxobvDgUkFyPdhzo7o79/eSMXcblkinUUzmR06r/rAqyQ== From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Tue, 22 Feb 2022 23:01:46 +1000 Message-Id: <20220222130153.289215-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: zanevaniperen.com Subject: [FFmpeg-devel] [PATCH 0/7] Add UUID functionality to libavutil 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 446HyeJyHhT2 This patchset adds functions for handling UUIDs to libavutil, under the av_uuid_* prefix, and refactors the various ad-hoc handling to use it. This was proposed in [1]. This is _heavily_ based off libuuid with various parts of the code simplified to remove unnecessary functionality (e.g. generation, and v1 UUIDs). Why not use libuuid directly? * It introduces yet another external dependency, * has issues building on Windows, and * the code is relatively small, stable, and unlikely to change. [1]: https://ffmpeg.org/pipermail/ffmpeg-devel/2022-January/291917.html Pierre-Anthony Lemieux (6): avutil/tests/uuid: add uuid tests avformat/mov: refactor to use avutil/uuid avformat/smoothstreamingenc: refactor to use avutil/uuid avcodec/cbs_sei: refactor to use avutil/uuid avformat/imf: refactor to use avutil/uuid avfilter/showinfo: refactor to use avutil/uuid Zane van Iperen (1): avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122 libavcodec/cbs_sei.h | 3 +- libavcodec/vaapi_encode_h264.c | 8 +- libavfilter/vf_showinfo.c | 17 +--- libavformat/imf.h | 18 +--- libavformat/imf_cpl.c | 60 ++++------- libavformat/imfdec.c | 34 +++---- libavformat/mov.c | 25 ++--- libavformat/movenc.c | 9 +- libavformat/smoothstreamingenc.c | 7 +- libavformat/tests/imf.c | 18 ++-- libavutil/Makefile | 3 + libavutil/tests/.gitignore | 1 + libavutil/tests/uuid.c | 139 +++++++++++++++++++++++++ libavutil/uuid.c | 156 +++++++++++++++++++++++++++++ libavutil/uuid.h | 167 +++++++++++++++++++++++++++++++ tests/fate/libavutil.mak | 5 + 16 files changed, 556 insertions(+), 114 deletions(-) create mode 100644 libavutil/tests/uuid.c create mode 100644 libavutil/uuid.c create mode 100644 libavutil/uuid.h