Files
Scream/ScreamPacket.swift
neon443 739b19bfb3 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
2026-01-03 20:52:27 +00:00

20 lines
402 B
Swift

//
// 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
}