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 BD8F24B648 for ; Mon, 10 Jun 2024 18:44:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0950168D799; Mon, 10 Jun 2024 21:44:30 +0300 (EEST) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6921668D6D7 for ; Mon, 10 Jun 2024 21:44:22 +0300 (EEST) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so29301775e9.1 for ; Mon, 10 Jun 2024 11:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718045061; x=1718649861; 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=rSgl6RAgJtMupYizncaIz9vuI9oa1l1MHXA7Bfd9Qog=; b=GOf01xr2b3cOnpBzQcGtfcluCQNH6oe8Wrwfk41dQI4YefYlszPojBPrv9QHze3NKD EWAyZvN7VIlrN2vzlz6ZShURKz9Ya9huY/PWRI5Lv5/PJ5Sm49RY69X194e+ZBLezk11 bYW7gqYK58WPWesMLZno8UTXN3Dj5xKTYwQPzto0bIeYiTYRQy+RL1uNXflRir/vIE5f pP/sFQNyjZAUCuENOV/WmqIGzULCZXg1LS+4S2ki8qqJEOsvUCAeVhzZjzMTQFeMau4R lS9BQrX6vXDBNCOP3tYmtX+9eM0ImoUCVqrVxTxAUN2G6MlN3gn2HTZBN/S3c8seBWwu hCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718045061; x=1718649861; 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=rSgl6RAgJtMupYizncaIz9vuI9oa1l1MHXA7Bfd9Qog=; b=np2NohsSPCvBKD8EbK0UiBg19Nzd5a8lYYjylecXkq9Er5pamFgSIvMZ0Q6lffFSs9 Tuphmsej3kAA1GCCV6GbBLEe2yLExZVnm5/Yh271fF34wd17GnHMqF+BwCrGsB4dxk3I AcivwJX4iKecs7ZFusAXXIJxv+Nz5HrRsgVHKtIpZ8rIpS3GmjodGYwK5bN/0nfJocSc Zu6O65SMKp1G845bRdI+1BHcJrqzmt7RQYJJhpu6RKOXbeRXdz4pJiHAgo17Po2s9qhF iCq89PcsB6Ffxm7TSq6lPXI8RF6I2Cqu3Jt7/clVJE2BaBALi2eolUXauPFgzjWA/Lnv IdJw== X-Gm-Message-State: AOJu0Yx/E5w2R44rdEvurnX6bc7SXFcWXgaO1a5Lg+X+uh7wSHJE3dAf oHt6fXW7yzXbD4SqtoISRt/CI+5kaT6cYIVMLMBB/Syx5fY9E3sJOvM22Q== X-Google-Smtp-Source: AGHT+IGjUk58nS2Rc0n6+lZ1fI0xWvrO2Ss/NYbY8T10AHuaMOqLJkmiDMeNFAC/qwyudiFMHWqkyg== X-Received: by 2002:a05:600c:5108:b0:422:fdb:efb3 with SMTP id 5b1f17b1804b1-4223c6617c7mr5010565e9.12.1718045060748; Mon, 10 Jun 2024 11:44:20 -0700 (PDT) Received: from localhost.localdomain ([51.191.0.41]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4218193b0c0sm64659165e9.31.2024.06.10.11.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 11:44:20 -0700 (PDT) From: Derek Buitenhuis To: ffmpeg-devel@ffmpeg.org Date: Mon, 10 Jun 2024 19:44:03 +0100 Message-ID: <20240610184408.68171-2-derek.buitenhuis@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240610184408.68171-1-derek.buitenhuis@gmail.com> References: <20240610184408.68171-1-derek.buitenhuis@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 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 | 3 +++ libavutil/spherical.h | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/libavutil/spherical.c b/libavutil/spherical.c index 800d3459a5..d78f98f945 100644 --- a/libavutil/spherical.c +++ b/libavutil/spherical.c @@ -57,6 +57,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_RECTANGULAR] = "rectangular", + [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..118fbcc3d1 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 contentframe displays on a flat, rectangular 2D surface. + */ + AV_SPHERICAL_RECTANGULAR, + + /** + * Fisheye projection (Apple). + * See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye + */ + AV_SPHERICAL_FISHEYE, }; /** -- 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".