Twitch SDK (Internal)
packet.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2016 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
12 #include <vector>
13 
14 namespace ttv
15 {
16  namespace broadcast
17  {
18  struct Packet;
19  }
20 }
21 
22 
27 {
29  : timestamp(0)
30  , cts(0)
31  , streamIndex(0)
32  , keyframe(false)
33  , sequenceHeader(false)
34  {
35  }
36 
37  std::vector<uint8_t> data;
38  uint64_t timestamp;
39  uint32_t cts;
40  uint32_t streamIndex;
41  bool keyframe;
42  bool sequenceHeader; // TODO: This is AVC specific but I don't have a better idea right now
43 };
Definition: packet.h:26
uint32_t streamIndex
Definition: packet.h:40
bool sequenceHeader
Definition: packet.h:42
uint64_t timestamp
Definition: packet.h:38
bool keyframe
Definition: packet.h:41
std::vector< uint8_t > data
Definition: packet.h:37
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
uint32_t cts
Definition: packet.h:39
Packet()
Definition: packet.h:28