This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
487 additions
and
691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"sourceLanguages": [ | ||
"swift" | ||
], | ||
"args": [], | ||
"cwd": "${workspaceFolder:mvhevcsplit}", | ||
"name": "Debug spatial-media-kit-tool", | ||
"program": "${workspaceFolder:mvhevcsplit}/.build/debug/spatial-media-kit-tool", | ||
"preLaunchTask": "swift: Build Debug spatial-media-kit-tool" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"sourceLanguages": [ | ||
"swift" | ||
], | ||
"args": [], | ||
"cwd": "${workspaceFolder:mvhevcsplit}", | ||
"name": "Release spatial-media-kit-tool", | ||
"program": "${workspaceFolder:mvhevcsplit}/.build/release/spatial-media-kit-tool", | ||
"preLaunchTask": "swift: Build Release spatial-media-kit-tool" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "swift-argument-parser", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-argument-parser", | ||
"state" : { | ||
"revision" : "c8ed701b513cf5177118a175d85fbbbcd707ab41", | ||
"version" : "1.3.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// swift-tools-version: 5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "SpatialMediaKit", | ||
platforms: [ | ||
.macOS(.v14) | ||
], | ||
products: [ | ||
.executable(name: "spatial-media-kit-tool", targets: ["SpatialMediaKitTool"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0") | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "SpatialMediaKitTool", | ||
dependencies: [ | ||
"SpatialMediaKit", | ||
.product(name: "ArgumentParser", package: "swift-argument-parser"), | ||
]), | ||
.target( | ||
name: "SpatialMediaKit", | ||
dependencies: ["SpatialMediaKitObjC"]), | ||
.target( | ||
name: "SpatialMediaKitObjC", | ||
publicHeadersPath: "headers"), | ||
.testTarget( | ||
name: "SpatialMediaKitTests", | ||
dependencies: ["SpatialMediaKit"], | ||
resources: [ | ||
.copy("TestData/spatial_video.mov") | ||
] | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// MediaError.swift | ||
// SpatialMediaKit | ||
// | ||
// Created by Nicholas Tinsley on 1/22/24. | ||
// | ||
|
||
import Foundation | ||
|
||
enum MediaError: Error { | ||
case invalidMediaInput | ||
case noVideoTracksFound | ||
case couldNotReadSample | ||
case couldNotParse | ||
case timeoutError | ||
case createOutputError | ||
} |
Oops, something went wrong.