ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
cast_utils.h
Go to the documentation of this file.
1//
2// Copyright (c) 2026, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// License. See the LICENSE file in the project root for full license details.
7//
12
13#ifndef STREAMS_CAST_UTILS_H
14#define STREAMS_CAST_UTILS_H
15
16#include <cstdint>
17#include <string>
18#include <vector>
19
20namespace toolx::streams {
21
24{
26 std::string name;
28 uint32_t width;
30 uint32_t height;
31};
32
38const std::vector<CastResolution> &castResolutions();
39
45const std::vector<uint32_t> &castFramerates();
46
59uint32_t castMaxHeight(const std::string &model, bool supports_video);
60
69uint32_t castMaxFramerate(uint32_t height);
70
81uint32_t castBitrate(uint32_t width, uint32_t height, uint32_t framerate);
82
83} // namespace toolx::streams
84
85#endif // STREAMS_CAST_UTILS_H
uint32_t castMaxHeight(const std::string &model, bool supports_video)
The tallest picture a device plays, judged from its model name.
Definition cast_utils.cpp:45
const std::vector< CastResolution > & castResolutions()
All the picture sizes offered for casting, smallest first.
Definition cast_utils.cpp:30
uint32_t castMaxFramerate(uint32_t height)
The highest frame rate for a picture height.
Definition cast_utils.cpp:68
uint32_t castBitrate(uint32_t width, uint32_t height, uint32_t framerate)
The bit rate to encode a picture at.
Definition cast_utils.cpp:73
const std::vector< uint32_t > & castFramerates()
The frame rates offered for casting, in ascending order.
Definition cast_utils.cpp:39
A picture size that can be cast.
Definition cast_utils.h:24
uint32_t width
Image width in pixels.
Definition cast_utils.h:28
std::string name
Short name, e.g. "1080p".
Definition cast_utils.h:26
uint32_t height
Image height in pixels.
Definition cast_utils.h:30