Class StreamMetadataParser

Class Documentation

class StreamMetadataParser

A utility class to deserialize the stream metadata header packets.

Public Types

enum class CallbackState

Values:

enumerator SUCCESS
enumerator FAILED
enumerator STOP
typedef std::function<CallbackState(uint64_t headerType, void *header, void *input, bool isGPASerializerType)> CustomParserCallback

Callback is invoked after each packet header is parsed. The caller can implement custom parsing for a specific header type after initial packet encounter. The callback returns CallbackState

Public Functions

StreamMetadataParser()
StreamMetadataParser(CustomParserCallback callback)
bool Parse(std::istream *inputStream)
StreamInfoHeader const *GetStreamInfoHeader() const
char const *GetCapturedProcessName() const
DeviceFeatureInfo const *GetDeviceFeatureInfo() const
void GetStreamCaptureArgsInfo(size_t *argsCount, StreamCaptureArgsInfo *streamCaptureArgsInfo) const
void GetErrorMessages(size_t *errorCount, char const **messages) const
void GetQueues(size_t *queueCount, QueueHeader *queuesHeaders) const
void GetKeyframeMetadata(size_t *keyframeCount, KeyframeHeader *keyframeHeader)
uint64_t StartTimestamp() const
uint64_t EndTimestamp() const