MCPcopy Create free account

hub / github.com/danielpaulus/quicktime_video_hack / functions

Functions297 in github.com/danielpaulus/quicktime_video_hack

↓ 30 callersMethodString
()
screencapture/discovery.go:272
↓ 30 callersFunctioncheckElem
(e *gst.Element, name string)
screencapture/gstadapter/gst_adapter.go:214
↓ 19 callersMethodNewReply
NewReply returns a []byte containing the default reply for a SyncOgPacket
screencapture/packet/sync_og.go:28
↓ 18 callersMethodWriteDataToUsb
(data []byte)
screencapture/interfaces.go:19
↓ 17 callersFunctionParseLengthAndMagic
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 callersFunctionprintErrJSON
(err error, msg string)
main.go:462
↓ 14 callersMethodString
()
screencapture/packet/sync_og.go:39
↓ 12 callersMethodString
()
screencapture/coremedia/cmtime.go:70
↓ 12 callersFunctionloadFromFile
(name string)
screencapture/messageprocessor_test.go:186
↓ 11 callersFunctionParseAsynHeader
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 callersFunctionNewNSNumber
NewNSNumber reads a NSNumber from bytes.
screencapture/common/nsnumber.go:40
↓ 9 callersFunctionParseSyncHeader
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 callersMethodSeconds
Seconds returns CMTimeValue/CMTimeScale and 0 when all values are 0
screencapture/coremedia/cmtime.go:39
↓ 9 callersMethodWrite
(p []byte)
screencapture/coremedia/avfilewriter_test.go:59
↓ 8 callersFunctionNewCMTimeFromBytes
NewCMTimeFromBytes reads a CMTime struct directly from the given byte slice
screencapture/coremedia/cmtime.go:60
↓ 7 callersFunctionWriteLengthAndMagic
WriteLengthAndMagic just writes length and magic as uint32 4 byte values into the given array.
screencapture/common/parserutil.go:10
↓ 6 callersMethodConsume
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 callersMethodGetTime
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 callersFunctionNewCMClockWithHostTime
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 callersFunctionNewSyncCwpaPacketFromBytes
NewSyncCwpaPacketFromBytes parses a SyncCwpaPacket from a []byte
screencapture/packet/sync_cwpa.go:16
↓ 6 callersFunctionSerializeStringKeyDict
SerializeStringKeyDict serializes a StringKeyDict into a []byte
screencapture/coremedia/dict_serializer.go:10
↓ 6 callersFunctionstartWithConsumer
(consumer screencapture.CmSampleBufConsumer, device screencapture.IosDevice, audioOnly bool)
main.go:383
↓ 5 callersFunctionCreateHpa1DeviceInfoDict
CreateHpa1DeviceInfoDict creates a dict.StringKeyDict that needs to be sent to the device before receiving a feed
screencapture/packet/asyn.go:90
↓ 5 callersFunctionCreateHpd1DeviceInfoDict
CreateHpd1DeviceInfoDict creates a dict.StringKeyDict that needs to be sent to the device before receiving a feed
screencapture/packet/asyn.go:60
↓ 5 callersFunctionNewAVFileWriter
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 callersFunctionNewCMSampleBufferFromBytesVideo
NewCMSampleBufferFromBytesVideo parses a CMSampleBuffer containing audio video.
screencapture/coremedia/cmsamplebuf.go:90
↓ 5 callersFunctionNewMessageProcessor
NewMessageProcessor creates a new MessageProcessor that will write answers to the given UsbWriter, forward extracted CMSampleBuffers to the CMSampleBu
screencapture/messageprocessor.go:38
↓ 5 callersFunctionNewNSNumberFromUFloat64
NewNSNumberFromUFloat64 create NSNumber of type 0x06 with a 8 byte int as value
screencapture/common/nsnumber.go:35
↓ 5 callersFunctionNewStringDictFromBytes
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 callersFunctionNewWithCustomPipeline
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 callersMethodString
()
screencapture/coremedia/dict.go:190
↓ 5 callersFunctionValidateUdid
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 callersMethodWrite
(p []byte)
screencapture/diagnostics/consumer_test.go:47
↓ 5 callersFunctionloadFromFile
(name string)
screencapture/packet/asyn_test.go:51
↓ 5 callersFunctionprintJSON
(output map[string]interface{})
main.go:468
↓ 4 callersFunctionNewAsynCmSampleBufPacketFromBytes
NewAsynCmSampleBufPacketFromBytes parses a new AsynCmSampleBufPacket from bytes
screencapture/packet/asyn_feed.go:17
↓ 4 callersFunctionNewAsynHPD0
NewAsynHPD0 creates the bytes needed for stopping video streaming
screencapture/packet/asyn.go:127
↓ 4 callersFunctionNewAsynHpd1Packet
NewAsynHpd1Packet creates a []byte containing a valid ASYN packet with the Hpd1 dictionary
screencapture/packet/asyn.go:28
↓ 4 callersFunctionNewFormatDescriptorFromBytes
NewFormatDescriptorFromBytes parses a CMFormatDescription from bytes
screencapture/coremedia/cmformatdescription.go:44
↓ 4 callersFunctionNewPingPacketAsBytes
NewPingPacketAsBytes generates a new default Ping packet
screencapture/packet/ping.go:13
↓ 4 callersFunctionNewSyncClokPacketFromBytes
NewSyncClokPacketFromBytes parses a SynClokPacket from bytes
screencapture/packet/sync_clok.go:14
↓ 4 callersFunctionNewSyncCvrpPacketFromBytes
NewSyncCvrpPacketFromBytes parses a SyncCvrpPacket from a []byte
screencapture/packet/sync_cvrp.go:19
↓ 4 callersFunctionNewSyncTimePacketFromBytes
NewSyncTimePacketFromBytes parses a SyncTimePacket from bytes
screencapture/packet/sync_time.go:17
↓ 4 callersFunctionOpenDevice
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 callersMethodReceiveData
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 callersMethodToBytes
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 callersFunctioncreateCmTime
()
screencapture/coremedia/cmtime_test.go:69
↓ 3 callersFunctionAsynNeedPacketBytes
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 callersMethodDetailsMap
DetailsMap contains all the info for a device in a map ready to be JSON encoded
screencapture/discovery.go:228
↓ 3 callersFunctionEnableQTConfig
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 callersMethodIsActivated
IsActivated returns a boolean that is true when this device was enabled for screen mirroring and false otherwise.
screencapture/discovery.go:223
↓ 3 callersFunctionNewAsynHPA0
NewAsynHPA0 creates the bytes needed for stopping audio streaming
screencapture/packet/asyn.go:138
↓ 3 callersFunctionNewAsynHpa1Packet
NewAsynHpa1Packet creates a []byte containing a valid ASYN packet with the Hpa1 dictionary
screencapture/packet/asyn.go:33
↓ 3 callersFunctionNewAudioStreamBasicDescriptionFromBytes
NewAudioStreamBasicDescriptionFromBytes reads AudioStreamBasicDescription from bytes
screencapture/coremedia/audio_stream_basic_description.go:40
↓ 3 callersFunctionNewCMSampleBufferFromBytesAudio
NewCMSampleBufferFromBytesAudio parses a CMSampleBuffer containing audio data.
screencapture/coremedia/cmsamplebuf.go:85
↓ 3 callersFunctionNewIndexDictFromBytes
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 callersFunctionNewIndexDictFromBytesWithCustomMarker
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 callersFunctionNewMessageProcessorWithClockBuilder
NewMessageProcessorWithClockBuilder lets you inject a clockBuilder for the sake of testability.
screencapture/messageprocessor.go:44
↓ 3 callersFunctionNewNSNumberFromUInt32
NewNSNumberFromUInt32 create NSNumber of type 0x03 with a 4 byte int as value
screencapture/common/nsnumber.go:25
↓ 3 callersFunctionNewSyncAfmtPacketFromBytes
NewSyncAfmtPacketFromBytes parses a new AsynFmtPacket from byte array
screencapture/packet/sync_afmt.go:24
↓ 3 callersFunctionNewSyncOgPacketFromBytes
NewSyncOgPacketFromBytes parses a SyncOgPacket form bytes assuming it starts with SYNC magic and has the correct length.
screencapture/packet/sync_og.go:16
↓ 3 callersFunctionNewSyncSkewPacketFromBytes
NewSyncSkewPacketFromBytes parses a SyncSkewPacket from bytes
screencapture/packet/sync_skew.go:16
↓ 3 callersFunctionNewSyncStopPacketFromBytes
NewSyncStopPacketFromBytes parses a SyncStopPacket from bytes
screencapture/packet/sync_stop.go:15
↓ 3 callersMethodReceiveData
(data []byte)
screencapture/interfaces.go:13
↓ 3 callersMethodSerialize
Serialize serializes this CMTime into a given byte slice that needs to be at least of CMTimeLengthInBytes length
screencapture/coremedia/cmtime.go:48
↓ 3 callersFunctionWriteWavHeader
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 callersFunctionclockRefReply
(clockRef uint64, correlationID uint64)
screencapture/packet/sync.go:27
↓ 3 callersFunctioncmSampleBufWithFdscAndAFewBytes
()
screencapture/coremedia/avfilewriter_test.go:63
↓ 3 callersFunctioncreateContext
()
screencapture/discovery.go:81
↓ 3 callersFunctionfindConfigurations
(desc *gousb.DeviceDesc)
screencapture/discovery.go:181
↓ 3 callersFunctionfindInterfaceForSubclass
(confDesc gousb.ConfigDesc, subClass gousb.Class)
screencapture/discovery.go:208
↓ 3 callersFunctionprependMarker
(nalu []byte, length uint32)
screencapture/gstadapter/gst_adapter.go:307
↓ 3 callersMethodstop
()
screencapture/messageprocessor.go:291
↓ 3 callersMethodwriteNalu
(naluBytes []byte)
screencapture/coremedia/avfilewriter.go:74
↓ 3 callersMethodwriteNalu
(naluBytes []byte, buf coremedia.CMSampleBuffer)
screencapture/gstadapter/gst_adapter.go:293
↓ 2 callersFunctionCalculateSkew
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 callersMethodConsume
(buf coremedia.CMSampleBuffer)
screencapture/interfaces.go:7
↓ 2 callersMethodConsume
Consume logs stats
screencapture/diagnostics/consumer.go:74
↓ 2 callersFunctionCorrect24CharacterSerial
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 callersFunctionDefaultAudioStreamBasicDescription
DefaultAudioStreamBasicDescription creates a LPCM AudioStreamBasicDescription with default values I grabbed from the hex dump
screencapture/coremedia/audio_stream_basic_description.go:27
↓ 2 callersFunctionFindIosDevice
FindIosDevice finds a iOS device by usbSerial or picks the first one if usbSerial == ""
screencapture/discovery.go:94
↓ 2 callersMethodGetTimeForScale
GetTimeForScale calculates a float64 TimeValue by rescaling this CMTime to the CMTimeScale of the given CMTime
screencapture/coremedia/cmtime.go:33
↓ 2 callersFunctionGetWavHeaderBytes
GetWavHeaderBytes creates a byte slice containing a valid wav header using the supplied length.
screencapture/coremedia/wav_format.go:125
↓ 2 callersMethodHasSampleData
()
screencapture/coremedia/cmsamplebuf.go:48
↓ 2 callersFunctionNewAsynRelsPacketFromBytes
NewAsynRelsPacketFromBytes creates a new AsynRelsPacket from bytes
screencapture/packet/asyn_rels.go:13
↓ 2 callersFunctionNewAsynSprpPacketFromBytes
NewAsynSprpPacketFromBytes creates a new AsynSprpPacket from bytes
screencapture/packet/asyn_sprp.go:16
↓ 2 callersFunctionNewAsynSratPacketFromBytes
NewAsynSratPacketFromBytes parses a new AsynSratPacket from bytes
screencapture/packet/asyn_srat.go:20
↓ 2 callersFunctionNewAsynTbasPacketFromBytes
NewAsynTbasPacketFromBytes parses a AsynTbasPacket from bytes.
screencapture/packet/asyn_tbas.go:15
↓ 2 callersFunctionNewAsynTjmpPacketFromBytes
NewAsynTjmpPacketFromBytes parses a new AsynTjmpPacket from byte array
screencapture/packet/asyn_tjmp.go:16
↓ 2 callersFunctionNewCMSampleBufferFromBytes
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 callersFunctionNewDiagnosticsConsumer
NewDiagnosticsConsumer creates a new DiagnosticsConsumer
screencapture/diagnostics/consumer.go:31
↓ 2 callersFunctionPrintDeviceDetails
PrintDeviceDetails returns a list of device details ready to be JSON converted.
screencapture/discovery.go:157
↓ 2 callersMethodSerializeAudioStreamBasicDescription
SerializeAudioStreamBasicDescription puts an AudioStreamBasicDescription into the given byte array
screencapture/coremedia/audio_stream_basic_description.go:51
↓ 2 callersMethodStartReading
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 callersMethodStop
()
screencapture/interfaces.go:8
↓ 2 callersFunctioncmSampleBufWithAFewBytes
()
screencapture/coremedia/avfilewriter_test.go:83
↓ 2 callersFunctiondecodeSafe
(s string)
screencapture/coremedia/cmformatdescription_test.go:30
↓ 2 callersFunctionfindBulkEndpoint
(setting gousb.InterfaceSetting, direction gousb.EndpointDirection)
screencapture/usbadapter.go:167
↓ 2 callersFunctionfindIosDevices
(ctx *gousb.Context, validDeviceChecker func(desc *gousb.DeviceDesc) bool)
screencapture/discovery.go:116
↓ 2 callersMethodgetValue
(index uint16)
screencapture/coremedia/dict.go:229
next →1–100 of 297, ranked by callers