oa::FnVideo
FnVideo namespace in the OA Vision public surface.
NsC++ public headers
Public Functions
Function Documentation
Concatenate NAL payloads with 4-byte start codes (00 00 00 01). Caller-owned output buffer.
Parameters
inUnitsconst oa::Span<const NalUnit> &—
Returns
oa::Vector<oa::U8>The declared return value.
Same for the first PPS unit.
Parameters
inNalBytesconst oa::Span<const oa::U8> &—
Returns
oa::Vector<oa::U8>The declared return value.
No public source comment is attached to this declaration.
Parameters
inNalBytesconst oa::Span<const oa::U8> &—
Returns
oa::Vector<oa::U8>The declared return value.
Return the raw bytes (including NAL header) of the first SPS unit found in inNalBytes; empty if none.
Parameters
inNalBytesconst oa::Span<const oa::U8> &—
Returns
oa::Vector<oa::U8>The declared return value.
No public source comment is attached to this declaration.
Parameters
inNalBytesconst oa::Span<const oa::U8> &—
Returns
oa::Vector<oa::U8>The declared return value.
HEVC parameter-set extraction. H.265 uses a two-byte NAL header and different type encoding, so these are deliberately codec-explicit.
Parameters
inNalBytesconst oa::Span<const oa::U8> &—
Returns
oa::Vector<oa::U8>The declared return value.
Wrap a buffer- or image-backed render target in the common video-frame contract. The texture remains producer-owned; image readiness can be supplied without a host wait.
Parameters
inTextureconst oa::Texture &—
inPtsoa::U64Default: 0ULL
inReadyoa::EventDefault: = {}
Returns
oa::Result<VideoFrame>The declared return value.
split an Annex-B byte stream into NAL units (skip 00 00 00 01 / 00 00 01 start codes). Payloads alias back into inBytes; do not outlive the input buffer.
Parameters
inBytesconst oa::Span<const oa::U8> &—
Returns
oa::Vector<NalUnit>The declared return value.