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 7656D4A89D for ; Mon, 17 Jun 2024 19:20:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5B5B468D77D; Mon, 17 Jun 2024 22:20:42 +0300 (EEST) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1CB6068D586 for ; Mon, 17 Jun 2024 22:20:32 +0300 (EEST) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-35f2d723ef0so4029812f8f.1 for ; Mon, 17 Jun 2024 12:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718652031; x=1719256831; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=vl70ixDhP5Atv6Vc1oK+x81USvOLkG5e46JvJaNBNCQ=; b=nJs7IRIQ/V2Z33QvlNl/iOrd2NgQH9cP+htI8A176mBFoGai+vzAXzV+ZgJBSBdfPA sspxU8GTHh67oh9rBhyaTMNpV03p8fg9nFsHeOxWYQi7XVn+AN5qe9xtqL3Qqlq6t4hV F+ePyXlWUKO981zpDq65FANL+nMLTrfIj/S8qAYnJg7Bae4UwoFwMhYkbJ8Hn0ACaLWa 3lM9dxO9yz94uap9REt+xAVqNH2Vqs1Cx5Bkq2K0ROZFCaWxJOPaDfTHR/223g6+fcJ5 FVx65ZXCTda5P8LAP5J3tpVorkZ9jxUd7bIxwa4vd/Z1bD+GhtWz65aIdQqxUsZZ2z9B ciNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718652031; x=1719256831; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vl70ixDhP5Atv6Vc1oK+x81USvOLkG5e46JvJaNBNCQ=; b=M6Ls/pI9FJVIJgEVb8PCNXOy23O/EKgRFrfnzeQwVfZCCJPOuK7hmbs936io47eU5E KFhFKeqdmx62cG6jSVTlAZz9/nGu3/xiv5YcO3nxIzraVUzV8GKllk8b7xScxy2hunkm 8JDP6xrULGGfN4/f1Xoa48VmhYR032CuJReli6lhHjRYzyh6QIZo85Z0Y3Oits+4DNY7 sWnS1oTYNGi44K2Dz7CkUaesSInsBLpK5/ltOJ11u//qqiHfHSK1B56YhW6kgXEoC401 rMCseTG8mWQrjSWFmgxN8WaXVUNuxlyQpMDhINcPJaaIQwS6+tCGIbB/GUxUVNlT/DXI grEA== X-Gm-Message-State: AOJu0YwGAhEy97iawzuV91aVucyb+SzIOiXRvtRrM9gf02dbbVuTZ5Np 1ST8SHAmURi0GWAbwXzPpOr+uyQ0fNS2HjSowdND+cGQfwPj6yRyTWQNqw== X-Google-Smtp-Source: AGHT+IFAwuKQx7GZ18xsIJzUkLCiKFc628Ws305ghkyaGrC3WVu0WxEHXYC80ED9zpS022waFfy0OQ== X-Received: by 2002:a05:6000:188d:b0:360:79d2:a822 with SMTP id ffacd0b85a97d-3607a725821mr10098291f8f.14.1718652030781; Mon, 17 Jun 2024 12:20:30 -0700 (PDT) Received: from localhost.localdomain (0540dce9.skybroadband.com. [5.64.220.233]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3607509353csm12531797f8f.22.2024.06.17.12.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 12:20:30 -0700 (PDT) From: Derek Buitenhuis To: ffmpeg-devel@ffmpeg.org Date: Mon, 17 Jun 2024 20:20:15 +0100 Message-ID: <20240617192019.512769-2-derek.buitenhuis@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240617192019.512769-1-derek.buitenhuis@gmail.com> References: <20240617192019.512769-1-derek.buitenhuis@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 1/5] avutil/spherical: Add more spherical types 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: These originate from the Apple Vision Pro, and are documented here: https://developer.apple.com/documentation/coremedia/cmprojectiontype Signed-off-by: Derek Buitenhuis --- libavutil/spherical.c | 5 +++++ libavutil/spherical.h | 16 ++++++++++++++++ libavutil/version.h | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/libavutil/spherical.c b/libavutil/spherical.c index 800d3459a5..64ade1d0ec 100644 --- a/libavutil/spherical.c +++ b/libavutil/spherical.c @@ -29,6 +29,8 @@ AVSphericalMapping *av_spherical_alloc(size_t *size) if (!spherical) return NULL; + spherical->projection = AV_SPHERICAL_RECTILINEAR; + if (size) *size = sizeof(*spherical); @@ -57,6 +59,9 @@ static const char *const spherical_projection_names[] = { [AV_SPHERICAL_EQUIRECTANGULAR] = "equirectangular", [AV_SPHERICAL_CUBEMAP] = "cubemap", [AV_SPHERICAL_EQUIRECTANGULAR_TILE] = "tiled equirectangular", + [AV_SPHERICAL_HALF_EQUIRECTANGULAR] = "half equirectangular", + [AV_SPHERICAL_RECTILINEAR] = "rectilinear", + [AV_SPHERICAL_FISHEYE] = "fisheye", }; const char *av_spherical_projection_name(enum AVSphericalProjection projection) diff --git a/libavutil/spherical.h b/libavutil/spherical.h index 828ac836da..2e90f7752d 100644 --- a/libavutil/spherical.h +++ b/libavutil/spherical.h @@ -66,6 +66,22 @@ enum AVSphericalProjection { * the position of the current video in a larger surface. */ AV_SPHERICAL_EQUIRECTANGULAR_TILE, + + /** + * Video frame displays as a 180 degree equirectangular projection. + */ + AV_SPHERICAL_HALF_EQUIRECTANGULAR, + + /** + * Video frame displays on a flat, rectangular 2D surface. + */ + AV_SPHERICAL_RECTILINEAR, + + /** + * Fisheye projection (Apple). + * See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye + */ + AV_SPHERICAL_FISHEYE, }; /** diff --git a/libavutil/version.h b/libavutil/version.h index 2756f2aa03..7df546ee22 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -79,7 +79,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 59 -#define LIBAVUTIL_VERSION_MINOR 22 +#define LIBAVUTIL_VERSION_MINOR 23 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ -- 2.43.0 _______________________________________________ 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".