mirror of
https://github.com/neon443/Scream.git
synced 2026-03-11 13:26:18 +00:00
added actually encoding said frame sob added a get encodersettings function added configure compressionsession function added nserror check function added screampacket data schema
20 lines
402 B
Swift
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
|
|
}
|