Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielpaulus/quicktime_video_hack
/ functions
Functions
297 in github.com/danielpaulus/quicktime_video_hack
⨍
Functions
297
◇
Types & classes
42
↓ 30 callers
Method
String
()
screencapture/discovery.go:272
↓ 30 callers
Function
checkElem
(e *gst.Element, name string)
screencapture/gstadapter/gst_adapter.go:214
↓ 19 callers
Method
NewReply
NewReply returns a []byte containing the default reply for a SyncOgPacket
screencapture/packet/sync_og.go:28
↓ 18 callers
Method
WriteDataToUsb
(data []byte)
screencapture/interfaces.go:19
↓ 17 callers
Function
ParseLengthAndMagic
ParseLengthAndMagic checks if if the given byte array is longer or equal the uint32 in the first 4 bytes, and if the magic value in the second 4 bytes
screencapture/common/parserutil.go:17
↓ 17 callers
Function
printErrJSON
(err error, msg string)
main.go:462
↓ 14 callers
Method
String
()
screencapture/packet/sync_og.go:39
↓ 12 callers
Method
String
()
screencapture/coremedia/cmtime.go:70
↓ 12 callers
Function
loadFromFile
(name string)
screencapture/messageprocessor_test.go:186
↓ 11 callers
Function
ParseAsynHeader
ParseAsynHeader checks for the ASYN magic and the given messagemagic and then returns the remainingBytes starting after the messagemagic so after 16 b
screencapture/packet/util.go:11
↓ 10 callers
Function
NewNSNumber
NewNSNumber reads a NSNumber from bytes.
screencapture/common/nsnumber.go:40
↓ 9 callers
Function
ParseSyncHeader
ParseSyncHeader checks for the SYNC magic and the given messagemagic and then returns the remainingBytes starting after the messagemagic so after 16 b
screencapture/packet/util.go:18
↓ 9 callers
Method
Seconds
Seconds returns CMTimeValue/CMTimeScale and 0 when all values are 0
screencapture/coremedia/cmtime.go:39
↓ 9 callers
Method
Write
(p []byte)
screencapture/coremedia/avfilewriter_test.go:59
↓ 8 callers
Function
NewCMTimeFromBytes
NewCMTimeFromBytes reads a CMTime struct directly from the given byte slice
screencapture/coremedia/cmtime.go:60
↓ 7 callers
Function
WriteLengthAndMagic
WriteLengthAndMagic just writes length and magic as uint32 4 byte values into the given array.
screencapture/common/parserutil.go:10
↓ 6 callers
Method
Consume
Consume writes PPS and SPS as well as sample bufs into a annex b .h264 file and audio samples into a wav file Note that you will have to call WriteWav
screencapture/coremedia/avfilewriter.go:31
↓ 6 callers
Method
GetTime
GetTime returns a CMTime that gives the time passed since the clock started. This is monotonic and does NOT use wallclock time.
screencapture/coremedia/cmclock.go:41
↓ 6 callers
Function
NewCMClockWithHostTime
NewCMClockWithHostTime creates a new Clock with the given ID with a nanosecond scale. Calls to GetTime will measure the time difference since the cloc
screencapture/coremedia/cmclock.go:20
↓ 6 callers
Function
NewSyncCwpaPacketFromBytes
NewSyncCwpaPacketFromBytes parses a SyncCwpaPacket from a []byte
screencapture/packet/sync_cwpa.go:16
↓ 6 callers
Function
SerializeStringKeyDict
SerializeStringKeyDict serializes a StringKeyDict into a []byte
screencapture/coremedia/dict_serializer.go:10
↓ 6 callers
Function
startWithConsumer
(consumer screencapture.CmSampleBufConsumer, device screencapture.IosDevice, audioOnly bool)
main.go:383
↓ 5 callers
Function
CreateHpa1DeviceInfoDict
CreateHpa1DeviceInfoDict creates a dict.StringKeyDict that needs to be sent to the device before receiving a feed
screencapture/packet/asyn.go:90
↓ 5 callers
Function
CreateHpd1DeviceInfoDict
CreateHpd1DeviceInfoDict creates a dict.StringKeyDict that needs to be sent to the device before receiving a feed
screencapture/packet/asyn.go:60
↓ 5 callers
Function
NewAVFileWriter
NewAVFileWriter binary writes nalus in annex b format to the given writer and audio buffers into a wav file. Note that you will have to call WriteWavH
screencapture/coremedia/avfilewriter.go:21
↓ 5 callers
Function
NewCMSampleBufferFromBytesVideo
NewCMSampleBufferFromBytesVideo parses a CMSampleBuffer containing audio video.
screencapture/coremedia/cmsamplebuf.go:90
↓ 5 callers
Function
NewMessageProcessor
NewMessageProcessor creates a new MessageProcessor that will write answers to the given UsbWriter, forward extracted CMSampleBuffers to the CMSampleBu
screencapture/messageprocessor.go:38
↓ 5 callers
Function
NewNSNumberFromUFloat64
NewNSNumberFromUFloat64 create NSNumber of type 0x06 with a 8 byte int as value
screencapture/common/nsnumber.go:35
↓ 5 callers
Function
NewStringDictFromBytes
NewStringDictFromBytes creates a new dictionary assuming the byte array starts with the 4 byte length of the dictionary followed by "dict" as the magi
screencapture/coremedia/dict.go:76
↓ 5 callers
Function
NewWithCustomPipeline
NewWithCustomPipeline will parse the given pipelineString, connect the videoAppSrc to whatever element has the name "video_target" and the audioAppSrc
screencapture/gstadapter/gst_adapter.go:73
↓ 5 callers
Method
String
()
screencapture/coremedia/dict.go:190
↓ 5 callers
Function
ValidateUdid
ValidateUdid checks if a given udid is 25 or 40 characters long. 25 character udids must be of format xxxxxxxx-xxxxxxxxxxxxxxxx. Serialnumbers on the
screencapture/discovery.go:256
↓ 5 callers
Method
Write
(p []byte)
screencapture/diagnostics/consumer_test.go:47
↓ 5 callers
Function
loadFromFile
(name string)
screencapture/packet/asyn_test.go:51
↓ 5 callers
Function
printJSON
(output map[string]interface{})
main.go:468
↓ 4 callers
Function
NewAsynCmSampleBufPacketFromBytes
NewAsynCmSampleBufPacketFromBytes parses a new AsynCmSampleBufPacket from bytes
screencapture/packet/asyn_feed.go:17
↓ 4 callers
Function
NewAsynHPD0
NewAsynHPD0 creates the bytes needed for stopping video streaming
screencapture/packet/asyn.go:127
↓ 4 callers
Function
NewAsynHpd1Packet
NewAsynHpd1Packet creates a []byte containing a valid ASYN packet with the Hpd1 dictionary
screencapture/packet/asyn.go:28
↓ 4 callers
Function
NewFormatDescriptorFromBytes
NewFormatDescriptorFromBytes parses a CMFormatDescription from bytes
screencapture/coremedia/cmformatdescription.go:44
↓ 4 callers
Function
NewPingPacketAsBytes
NewPingPacketAsBytes generates a new default Ping packet
screencapture/packet/ping.go:13
↓ 4 callers
Function
NewSyncClokPacketFromBytes
NewSyncClokPacketFromBytes parses a SynClokPacket from bytes
screencapture/packet/sync_clok.go:14
↓ 4 callers
Function
NewSyncCvrpPacketFromBytes
NewSyncCvrpPacketFromBytes parses a SyncCvrpPacket from a []byte
screencapture/packet/sync_cvrp.go:19
↓ 4 callers
Function
NewSyncTimePacketFromBytes
NewSyncTimePacketFromBytes parses a SyncTimePacket from bytes
screencapture/packet/sync_time.go:17
↓ 4 callers
Function
OpenDevice
OpenDevice finds a gousb.Device by using the provided iosDevice.SerialNumber. It returns an open device handle. Opening using VID and PID is not speci
screencapture/discovery.go:25
↓ 4 callers
Method
ReceiveData
ReceiveData waits for byte frames of the correct length without the length field. This function will only accept byte frames starting with the ASYN, S
screencapture/messageprocessor.go:59
↓ 4 callers
Method
ToBytes
ToBytes serializes a NSNumber into a []byte. FIXME: remove allocation of array and use one that is passed in instead
screencapture/common/nsnumber.go:75
↓ 4 callers
Function
createCmTime
()
screencapture/coremedia/cmtime_test.go:69
↓ 3 callers
Function
AsynNeedPacketBytes
AsynNeedPacketBytes can be used to create the NEED message as soon as the clockRef from SYNC CVRP has been received.
screencapture/packet/asyn.go:49
↓ 3 callers
Method
DetailsMap
DetailsMap contains all the info for a device in a map ready to be JSON encoded
screencapture/discovery.go:228
↓ 3 callers
Function
EnableQTConfig
EnableQTConfig enables the hidden QuickTime Device configuration that will expose two new bulk endpoints. We will send a control transfer to the devic
screencapture/activator.go:15
↓ 3 callers
Method
IsActivated
IsActivated returns a boolean that is true when this device was enabled for screen mirroring and false otherwise.
screencapture/discovery.go:223
↓ 3 callers
Function
NewAsynHPA0
NewAsynHPA0 creates the bytes needed for stopping audio streaming
screencapture/packet/asyn.go:138
↓ 3 callers
Function
NewAsynHpa1Packet
NewAsynHpa1Packet creates a []byte containing a valid ASYN packet with the Hpa1 dictionary
screencapture/packet/asyn.go:33
↓ 3 callers
Function
NewAudioStreamBasicDescriptionFromBytes
NewAudioStreamBasicDescriptionFromBytes reads AudioStreamBasicDescription from bytes
screencapture/coremedia/audio_stream_basic_description.go:40
↓ 3 callers
Function
NewCMSampleBufferFromBytesAudio
NewCMSampleBufferFromBytesAudio parses a CMSampleBuffer containing audio data.
screencapture/coremedia/cmsamplebuf.go:85
↓ 3 callers
Function
NewIndexDictFromBytes
NewIndexDictFromBytes creates a new dictionary assuming the byte array starts with the 4 byte length of the dictionary followed by "dict" as the magic
screencapture/coremedia/dict.go:47
↓ 3 callers
Function
NewIndexDictFromBytesWithCustomMarker
NewIndexDictFromBytesWithCustomMarker creates a new dictionary assuming the byte array starts with the 4 byte length of the dictionary followed by mag
screencapture/coremedia/dict.go:52
↓ 3 callers
Function
NewMessageProcessorWithClockBuilder
NewMessageProcessorWithClockBuilder lets you inject a clockBuilder for the sake of testability.
screencapture/messageprocessor.go:44
↓ 3 callers
Function
NewNSNumberFromUInt32
NewNSNumberFromUInt32 create NSNumber of type 0x03 with a 4 byte int as value
screencapture/common/nsnumber.go:25
↓ 3 callers
Function
NewSyncAfmtPacketFromBytes
NewSyncAfmtPacketFromBytes parses a new AsynFmtPacket from byte array
screencapture/packet/sync_afmt.go:24
↓ 3 callers
Function
NewSyncOgPacketFromBytes
NewSyncOgPacketFromBytes parses a SyncOgPacket form bytes assuming it starts with SYNC magic and has the correct length.
screencapture/packet/sync_og.go:16
↓ 3 callers
Function
NewSyncSkewPacketFromBytes
NewSyncSkewPacketFromBytes parses a SyncSkewPacket from bytes
screencapture/packet/sync_skew.go:16
↓ 3 callers
Function
NewSyncStopPacketFromBytes
NewSyncStopPacketFromBytes parses a SyncStopPacket from bytes
screencapture/packet/sync_stop.go:15
↓ 3 callers
Method
ReceiveData
(data []byte)
screencapture/interfaces.go:13
↓ 3 callers
Method
Serialize
Serialize serializes this CMTime into a given byte slice that needs to be at least of CMTimeLengthInBytes length
screencapture/coremedia/cmtime.go:48
↓ 3 callers
Function
WriteWavHeader
WriteWavHeader creates a wave file header using the given length and writes it at the BEGINNING of the wavFile. Please make sure that the file has eno
screencapture/coremedia/wav_format.go:115
↓ 3 callers
Function
clockRefReply
(clockRef uint64, correlationID uint64)
screencapture/packet/sync.go:27
↓ 3 callers
Function
cmSampleBufWithFdscAndAFewBytes
()
screencapture/coremedia/avfilewriter_test.go:63
↓ 3 callers
Function
createContext
()
screencapture/discovery.go:81
↓ 3 callers
Function
findConfigurations
(desc *gousb.DeviceDesc)
screencapture/discovery.go:181
↓ 3 callers
Function
findInterfaceForSubclass
(confDesc gousb.ConfigDesc, subClass gousb.Class)
screencapture/discovery.go:208
↓ 3 callers
Function
prependMarker
(nalu []byte, length uint32)
screencapture/gstadapter/gst_adapter.go:307
↓ 3 callers
Method
stop
()
screencapture/messageprocessor.go:291
↓ 3 callers
Method
writeNalu
(naluBytes []byte)
screencapture/coremedia/avfilewriter.go:74
↓ 3 callers
Method
writeNalu
(naluBytes []byte, buf coremedia.CMSampleBuffer)
screencapture/gstadapter/gst_adapter.go:293
↓ 2 callers
Function
CalculateSkew
CalculateSkew calculates the deviation between the frequencies of two given clocks by using time diffs and returns a skew value float64 scaled to matc
screencapture/coremedia/cmclock.go:59
↓ 2 callers
Method
Consume
(buf coremedia.CMSampleBuffer)
screencapture/interfaces.go:7
↓ 2 callers
Method
Consume
Consume logs stats
screencapture/diagnostics/consumer.go:74
↓ 2 callers
Function
Correct24CharacterSerial
Usually iosDevices have a 40 character USB serial which equals the usbSerial used in usbmuxd, Xcode etc. There is an exception, some devices like the
screencapture/discovery.go:241
↓ 2 callers
Function
DefaultAudioStreamBasicDescription
DefaultAudioStreamBasicDescription creates a LPCM AudioStreamBasicDescription with default values I grabbed from the hex dump
screencapture/coremedia/audio_stream_basic_description.go:27
↓ 2 callers
Function
FindIosDevice
FindIosDevice finds a iOS device by usbSerial or picks the first one if usbSerial == ""
screencapture/discovery.go:94
↓ 2 callers
Method
GetTimeForScale
GetTimeForScale calculates a float64 TimeValue by rescaling this CMTime to the CMTimeScale of the given CMTime
screencapture/coremedia/cmtime.go:33
↓ 2 callers
Function
GetWavHeaderBytes
GetWavHeaderBytes creates a byte slice containing a valid wav header using the supplied length.
screencapture/coremedia/wav_format.go:125
↓ 2 callers
Method
HasSampleData
()
screencapture/coremedia/cmsamplebuf.go:48
↓ 2 callers
Function
NewAsynRelsPacketFromBytes
NewAsynRelsPacketFromBytes creates a new AsynRelsPacket from bytes
screencapture/packet/asyn_rels.go:13
↓ 2 callers
Function
NewAsynSprpPacketFromBytes
NewAsynSprpPacketFromBytes creates a new AsynSprpPacket from bytes
screencapture/packet/asyn_sprp.go:16
↓ 2 callers
Function
NewAsynSratPacketFromBytes
NewAsynSratPacketFromBytes parses a new AsynSratPacket from bytes
screencapture/packet/asyn_srat.go:20
↓ 2 callers
Function
NewAsynTbasPacketFromBytes
NewAsynTbasPacketFromBytes parses a AsynTbasPacket from bytes.
screencapture/packet/asyn_tbas.go:15
↓ 2 callers
Function
NewAsynTjmpPacketFromBytes
NewAsynTjmpPacketFromBytes parses a new AsynTjmpPacket from byte array
screencapture/packet/asyn_tjmp.go:16
↓ 2 callers
Function
NewCMSampleBufferFromBytes
NewCMSampleBufferFromBytes parses a CMSampleBuffer from a []byte assuming it begins with a 4 byte length and the 4byte magic int "sbuf"
screencapture/coremedia/cmsamplebuf.go:95
↓ 2 callers
Function
NewDiagnosticsConsumer
NewDiagnosticsConsumer creates a new DiagnosticsConsumer
screencapture/diagnostics/consumer.go:31
↓ 2 callers
Function
PrintDeviceDetails
PrintDeviceDetails returns a list of device details ready to be JSON converted.
screencapture/discovery.go:157
↓ 2 callers
Method
SerializeAudioStreamBasicDescription
SerializeAudioStreamBasicDescription puts an AudioStreamBasicDescription into the given byte array
screencapture/coremedia/audio_stream_basic_description.go:51
↓ 2 callers
Method
StartReading
StartReading claims the AV Quicktime USB Bulk endpoints and starts reading until a stopSignal is sent. Every received data is added to a frameextracto
screencapture/usbadapter.go:38
↓ 2 callers
Method
Stop
()
screencapture/interfaces.go:8
↓ 2 callers
Function
cmSampleBufWithAFewBytes
()
screencapture/coremedia/avfilewriter_test.go:83
↓ 2 callers
Function
decodeSafe
(s string)
screencapture/coremedia/cmformatdescription_test.go:30
↓ 2 callers
Function
findBulkEndpoint
(setting gousb.InterfaceSetting, direction gousb.EndpointDirection)
screencapture/usbadapter.go:167
↓ 2 callers
Function
findIosDevices
(ctx *gousb.Context, validDeviceChecker func(desc *gousb.DeviceDesc) bool)
screencapture/discovery.go:116
↓ 2 callers
Method
getValue
(index uint16)
screencapture/coremedia/dict.go:229
next →
1–100 of 297, ranked by callers