![]() |
ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
|
Picture sizes and frame rates a Chromecast can be sent. More...
#include <cstdint>#include <string>#include <vector>

Go to the source code of this file.
Data Structures | |
| struct | toolx::streams::CastResolution |
| A picture size that can be cast. More... | |
Functions | |
| const std::vector< CastResolution > & | toolx::streams::castResolutions () |
| All the picture sizes offered for casting, smallest first. | |
| const std::vector< uint32_t > & | toolx::streams::castFramerates () |
| The frame rates offered for casting, in ascending order. | |
| uint32_t | toolx::streams::castMaxHeight (const std::string &model, bool supports_video) |
| The tallest picture a device plays, judged from its model name. | |
| uint32_t | toolx::streams::castMaxFramerate (uint32_t height) |
| The highest frame rate for a picture height. | |
| uint32_t | toolx::streams::castBitrate (uint32_t width, uint32_t height, uint32_t framerate) |
| The bit rate to encode a picture at. | |
Picture sizes and frame rates a Chromecast can be sent.
| uint32_t toolx::streams::castBitrate | ( | uint32_t | width, |
| uint32_t | height, | ||
| uint32_t | framerate ) |
The bit rate to encode a picture at.
About 0.1 bit per pixel per frame, limited to what a Chromecast plays.
| width | the picture width in pixels |
| height | the picture height in pixels |
| framerate | frames per second |
| const std::vector< uint32_t > & toolx::streams::castFramerates | ( | ) |
The frame rates offered for casting, in ascending order.
| uint32_t toolx::streams::castMaxFramerate | ( | uint32_t | height | ) |
The highest frame rate for a picture height.
4K is limited to 30 frames per second with H.264.
| height | the picture height in pixels |
| uint32_t toolx::streams::castMaxHeight | ( | const std::string & | model, |
| bool | supports_video ) |
The tallest picture a device plays, judged from its model name.
A Chromecast does not announce what it can play, only its model name and a capability bit field. The sizes are therefore those documented for the model: older and HD Chromecasts and most TVs play 1080p, Ultra, Google TV and Streamer models play 4K and smart displays (Nest Hub) 720p. An unknown model is assumed to play 1080p.
| model | the model name announced by the device, e.g. "Chromecast Ultra" |
| supports_video | the device announces that it can show video |
| const std::vector< CastResolution > & toolx::streams::castResolutions | ( | ) |
All the picture sizes offered for casting, smallest first.