Skip to main content

EncodedSampleUtil.h File

Helpers for constructing and inspecting encoded-media samples. More...

Included Headers

#include "pipeline/SessionOptions.h" #include "pipeline/TensorCore.h" #include <cstdint> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat

Description

Helpers for constructing and inspecting encoded-media samples.

Encoded samples wrap compressed payloads (e.g., H.264 NAL units) in the framework's Sample type so they can flow through the same pipeline as raw frames or tensors. This header exposes a caps-string codec sniff and a factory that wraps an owned byte buffer plus timing metadata into a Sample.

See Also

SessionOptions.h for EncodedSpec::Codec.

See Also

Tensor.h for the underlying Sample type.

File Listing

The file content with the documentation metadata removed is:

1
14#pragma once
15
18
19#include <cstdint>
20#include <string>
21#include <vector>
22
23namespace simaai::neat {
24
31simaai::neat::EncodedSpec::Codec caps_to_codec(const std::string& caps_string);
32
47Sample make_encoded_sample(std::vector<uint8_t> bytes, std::string caps_string, int64_t pts_ns = -1,
48 int64_t dts_ns = -1, int64_t duration_ns = -1);
49
50} // namespace simaai::neat

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.