Typed media/pixel/tensor format tags for public options. More...
#include <algorithm>
#include <cctype>
#include <ostream>
#include <string>
Namespaces Index
Classes Index
| struct | FormatSpec |
|
Thin wrapper around FormatTag with implicit string conversions. More...
|
|
Description
Typed media/pixel/tensor format tags for public options.
FormatTag is the framework-wide enum identifying every payload format the pipeline understands: raw video (RGB/BGR/GRAY8/NV12/I420/YUYV), encoded video (H.264, generic ENCODED), tensor element types (FP32/INT8/UINT8/BF16 and their EVXX_ aliases), opaque byte-stream payloads, and a few pipeline-internal payload kinds (MLA, BBOX, ARGMAX, DETESSDEQUANT). FormatSpec is a tiny wrapper that converts implicitly to/from string forms used in caps strings and config files.
- See Also
Tensor.h for the underlying Sample/Tensor types.
- See Also
Run.h for how format tags appear on RunOptions and stream caps.
File Listing
The file content with the documentation metadata removed is:
90 return "DETESSDEQUANT";
100 return "EVXX_FLOAT32";
104 return "EVXX_BFLOAT16";
116 std::transform(value.begin(), value.end(), value.begin(),
117 [](unsigned char c) { return static_cast<char>(std::toupper(c)); });
124 return up == "BF16" || up == "BFLOAT16" || up == "EVXX_BF16" || up == "EVXX_BFLOAT16";
130 return up == "FP32" || up == "FLOAT32" || up == "EVXX_FLOAT32";
136 return up == "INT8" || up == "EVXX_INT8";
142 return up == "INT16" || up == "EVXX_INT16";
148 return up == "INT32" || up == "EVXX_INT32";
159 return "EVXX_FLOAT32";
162 return "EVXX_BFLOAT16";
188 if (format.empty()) {
192 if (media_up == "APPLICATION/VND.SIMAAI.TENSOR") {
207 if (up == "GRAY" || up == "GRAY8")
211 if (up == "I420" || up == "YUV420")
219 if (up == "BYTESTREAM" || up == "BYTE_STREAM" || up == "BYTE-STREAM" || up == "RAW_BYTES" ||
220 up == "RAW-BYTES" || up == "OPAQUE_BYTES" || up == "OPAQUE-BYTES" || up == "OCTET_STREAM" ||
221 up == "OCTET-STREAM")
229 if (up == "DETESSDEQUANT")
237 if (up == "BF16" || up == "BFLOAT16")
239 if (up == "EVXX_BF16")
241 if (up == "EVXX_FLOAT32")
243 if (up == "EVXX_INT8")
245 if (up == "EVXX_BFLOAT16")
322 explicit operator bool() const {
326 operator std::string() const {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.