added timestamp and cvpixelbufferref to capturedframe

added actually encoding said frame sob
added a get encodersettings function
added configure compressionsession function
added nserror check function
added screampacket data schema
This commit is contained in:
neon443
2026-01-03 20:52:27 +00:00
parent 7b3e260d57
commit 739b19bfb3
3 changed files with 134 additions and 10 deletions

19
ScreamPacket.swift Normal file
View File

@@ -0,0 +1,19 @@
//
// ScreamPacket.swift
// Scream
//
// Created by neon443 on 03/01/2026.
//
import Foundation
import Cocoa
import VideoToolbox
struct ScreamPacket: Codable, Identifiable {
var id: Double //actually the timestamp seconds :shocked:
var timestamp: CMTime { .init(seconds: self.id, preferredTimescale: 1000000000) }
var data: Data
var index: Int
var packetsInChunk: Int
var isKeyframe: Bool
}