oa::video::to_matrix
Convert one or more video frames into a single batched F32 Matrix. This is the only colorimetric YUV→RGB boundary in oa::video. Inputs must be device-planar frames with identical format, visible extent and resolved color metadata; stage host-planar frames with VideoFrame::upload first. The call records asynchronously and returns the output immediately; reading it is an explicit submission and observation point. Errors Returns an error for an empty or mixed-geometry batch, an ineligible backing, a crop outside the visible region, zero output extents, an unsupported layout or bit depth, or a runtime recording failure.
Function Documentation
Convert one or more video frames into a single batched F32 Matrix. This is the only colorimetric YUV→RGB boundary in oa::video. Inputs must be device-planar frames with identical format, visible extent and resolved color metadata; stage host-planar frames with VideoFrame::upload first. The call records asynchronously and returns the output immediately; reading it is an explicit submission and observation point. Errors Returns an error for an empty or mixed-geometry batch, an ineligible backing, a crop outside the visible region, zero output extents, an unsupported layout or bit depth, or a runtime recording failure.