mirror of
https://github.com/neon443/Scream.git
synced 2026-03-11 13:26:18 +00:00
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:
19
ScreamPacket.swift
Normal file
19
ScreamPacket.swift
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user