|
Twitch SDK (Internal)
|
Namespaces | |
| flv | |
Typedefs | |
| typedef uint32_t | AudioLayerId |
| typedef uint8_t | RtmpMessageheader[16] |
| typedef std::array< uint8_t, 0x10000 > | rtmpinputbuffer_t |
Functions | |
| const char * | BroadcastErrorToString (TTV_ErrorCode ec) |
| void | GetBroadcastErrorCodeValues (std::vector< EnumValue > &result) |
| const uint8_t * | DecodeAMF (const uint8_t *data, std::shared_ptr< IAMF0 > output) |
| template<class Inserter > | |
| void | InsertBigEndian32 (Inserter it, uint32_t val) |
| template<class Inserter > | |
| void | InsertBigEndian (Inserter it, uint32_t val) |
| template<class Inserter > | |
| void | InsertBigEndian (Inserter it, uint16_t val) |
| uint32_t | BigToLittle (uint32_t source) |
| uint32_t | BigToLittle (flv::uint24_t source) |
| size_t | GetChunkSize (char firstByteOfChunk) |
| ChunkHeader | PopulateChunkHeader (const uint8_t *buffer) |
| bool | IsValidOSVersion () |
| const char * | GetOSName () |
| void | RGBtoYUV (const uint8_t *rgbBuffer, uint32_t bgraMask, uint width, uint height, uint8_t *YBuffer, uint8_t *UVBuffer, YUVFormat yuvFormat, bool verticalFlip=false) |
| void | RGBtoYUV_SSE (const uint8_t *rgbBuffer, uint32_t bgraMask, uint width, uint height, uint8_t *YBuffer, uint8_t *UVBuffer, YUVFormat yuvFormat, bool verticalFlip) |
Variables | |
| const uint32_t | kAudioEncodeRate = 44100 |
| The sample rate of the audio to be sent on the stream. More... | |
| const uint32_t | kInputAudioBitsPerSample = 16 |
| Bits per input audio sample per channel (PCM) More... | |
| const uint32_t | kMp3Bitrate = 128 |
| const uint32_t | kMinBitRate = 300 |
| The minimum bit rate supported by the Twitch backend. More... | |
| const uint32_t | kMaxBitRate = 6000 |
| The absolute maximum bit rate supported by the Twitch backend. More... | |
| const uint32_t | kDefaultInitialBitRate = 1500 |
| The default starting bit rate of a broadcast. More... | |
| const uint32_t | kDefaultFramesPerSecond = 30 |
| The default frames per second of the broadcast. More... | |
| const uint32_t | kMinFramesPerSecond = 10 |
| The minimum frames per second supported by the Twitch backend. More... | |
| const uint32_t | kMaxFramesPerSecond = 60 |
| The maximum frames per second supported by the Twitch backend. More... | |
| const uint32_t | kMaxFrameWidth = 1920 |
| The maximum width supported by the Twitch backend. Must be a multiple of 16. More... | |
| const uint32_t | kMaxFrameHeight = 1200 |
| The maximum height supported by the Twitch backend. Must be a multiple of 16. More... | |
| const float | kRecommendedBitsPerPixel = 0.1f |
| struct ttv::broadcast::BandwidthStat |
| struct ttv::broadcast::ChunkHeader |
| Class Members | ||
|---|---|---|
| uint32_t | messageStreamId | |
| PacketType | messageType | |
| uint32_t | packetLength | |
| uint8_t | streamId | |
| uint32_t | timestamp | |
| Chunktype | type | |
| struct ttv::broadcast::GameInfoList |
A list of game info structs.
| Class Members | ||
|---|---|---|
| vector< GameInfo > | games | |
| struct ttv::broadcast::MuxerParameters |
The values required to initialize an video + optional audio stream.
| Class Members | ||
|---|---|---|
| string | appVersion | The version of the app using the muxer. |
| bool | audioEnabled | Whether or not to capture and encode audio. |
| AudioFormat | audioFormat | The audio encoding format. |
| uint32_t | audioSampleRate | The number of audio samples per second. |
| uint32_t | audioSampleSize | The number of bits in a sample. |
| bool | audioStereo | Whether or not to encode stereo audio. |
| uint32_t | frameRate | The number of frames per second. |
| uint32_t | videoHeight | The height of the video frame. |
| vector< uint8_t > | videoPps | Picture parameter set. |
| vector< uint8_t > | videoSps | Sequence parameter set. |
| uint32_t | videoWidth | The width of the video frame. |
| typedef uint32_t ttv::broadcast::AudioLayerId |
| typedef std::array<uint8_t, 0x10000> ttv::broadcast::rtmpinputbuffer_t |
| typedef uint8_t ttv::broadcast::RtmpMessageheader[16] |
|
strong |
|
strong |
|
strong |
|
strong |
| enum ttv::broadcast::Channel : uint8_t |
Common Chunk-stream-ids. Not set in stone- they are just the usual convention...
enum names and values taken from imbibe, so kept the naming to make debugging easier
| Enumerator | |
|---|---|
| RTMP_CHANNEL_INVALID | |
| RTMP_CHANNEL_NETWORK | |
| RTMP_CHANNEL_SYSTEM | |
| RTMP_CHANNEL_SOURCE | |
| RTMP_CHANNEL_NETSTREAM | |
| RTMP_CHANNEL_VIDEO | |
| RTMP_CHANNEL_AUDIO | |
| enum ttv::broadcast::Chunktype : uint8_t |
|
strong |
| enum ttv::broadcast::CtlType : uint8_t |
When packet type is RTMP_PKT_CONTROL- these are the possible payloads
enum names and values taken from imbibe, so kept the naming to make debugging easier
|
strong |
| enum ttv::broadcast::PacketType : uint8_t |
Packet types, indicated in the chunk header
enum names and values taken from imbibe, so kept the naming to make debugging easier
|
strong |
|
strong |
|
strong |
Supported YUV convertion types.
|
inline |
|
inline |
| const char* ttv::broadcast::BroadcastErrorToString | ( | TTV_ErrorCode | ec | ) |
The error code string lookup for broadcast. This is not normally used directly by clients. Use ttv::ErrorToString() instead.
| const uint8_t* ttv::broadcast::DecodeAMF | ( | const uint8_t * | data, |
| std::shared_ptr< IAMF0 > | output | ||
| ) |
| void ttv::broadcast::GetBroadcastErrorCodeValues | ( | std::vector< EnumValue > & | result | ) |
|
inline |
| const char* ttv::broadcast::GetOSName | ( | ) |
|
inline |
|
inline |
|
inline |
| bool ttv::broadcast::IsValidOSVersion | ( | ) |
|
inline |
| void ttv::broadcast::RGBtoYUV | ( | const uint8_t * | rgbBuffer, |
| uint32_t | bgraMask, | ||
| uint | width, | ||
| uint | height, | ||
| uint8_t * | YBuffer, | ||
| uint8_t * | UVBuffer, | ||
| YUVFormat | yuvFormat, | ||
| bool | verticalFlip = false |
||
| ) |
| void ttv::broadcast::RGBtoYUV_SSE | ( | const uint8_t * | rgbBuffer, |
| uint32_t | bgraMask, | ||
| uint | width, | ||
| uint | height, | ||
| uint8_t * | YBuffer, | ||
| uint8_t * | UVBuffer, | ||
| YUVFormat | yuvFormat, | ||
| bool | verticalFlip | ||
| ) |
| const uint32_t ttv::broadcast::kAudioEncodeRate = 44100 |
The sample rate of the audio to be sent on the stream.
| const uint32_t ttv::broadcast::kDefaultFramesPerSecond = 30 |
The default frames per second of the broadcast.
| const uint32_t ttv::broadcast::kDefaultInitialBitRate = 1500 |
The default starting bit rate of a broadcast.
| const uint32_t ttv::broadcast::kInputAudioBitsPerSample = 16 |
Bits per input audio sample per channel (PCM)
| const uint32_t ttv::broadcast::kMaxBitRate = 6000 |
The absolute maximum bit rate supported by the Twitch backend.
| const uint32_t ttv::broadcast::kMaxFrameHeight = 1200 |
The maximum height supported by the Twitch backend. Must be a multiple of 16.
| const uint32_t ttv::broadcast::kMaxFramesPerSecond = 60 |
The maximum frames per second supported by the Twitch backend.
| const uint32_t ttv::broadcast::kMaxFrameWidth = 1920 |
The maximum width supported by the Twitch backend. Must be a multiple of 16.
| const uint32_t ttv::broadcast::kMinBitRate = 300 |
The minimum bit rate supported by the Twitch backend.
| const uint32_t ttv::broadcast::kMinFramesPerSecond = 10 |
The minimum frames per second supported by the Twitch backend.
| const uint32_t ttv::broadcast::kMp3Bitrate = 128 |
| const float ttv::broadcast::kRecommendedBitsPerPixel = 0.1f |
1.8.13