oa::video::overlay_scores
Per-component stencil from a device-resident score map: where the scores value at the mask coordinate is at or above threshold the fill code is written, otherwise the base byte is copied. scores must be an F32 matrix with exactly width * height elements at the frame’s luma extent; chroma planes sample it at scaled luma coordinates. fill is the Y, U, V code triple written where the score passes. The score map stays on the device — this is the GPU-resident overlay edge for segmentation-style model output inside a captured plan. Errors Returns an error if the frame is not device-planar, if the score matrix is not F32 or does not match the luma extent, if the engines differ, or if the region arithmetic overflows.
Function Documentation
Per-component stencil from a device-resident score map: where the scores value at the mask coordinate is at or above threshold the fill code is written, otherwise the base byte is copied. scores must be an F32 matrix with exactly width * height elements at the frame’s luma extent; chroma planes sample it at scaled luma coordinates. fill is the Y, U, V code triple written where the score passes. The score map stays on the device — this is the GPU-resident overlay edge for segmentation-style model output inside a captured plan. Errors Returns an error if the frame is not device-planar, if the score matrix is not F32 or does not match the luma extent, if the engines differ, or if the region arithmetic overflows.