cutcutcodec.core.io.framecaster.to_yuv¶
- cutcutcodec.core.io.framecaster.to_yuv()¶
Convert a frame from the Y’PbPr float32 space to uint16 frame in the YUV tv space.
Parameters¶
- framenp.ndarray[np.float32, np.float32, np.float32]
The float32 video frame of shape (height, width, channels).
- to_tvbool, default=True
If False, convert the frame in full range, default is limited range.
- threadsint, default=0
Number of threads used.
Returns¶
- outnp.ndarray[np.uint16]
The YUV frame in limited range.
Notes¶
It is optimized for C contiguous array.
This function makes a safe copy of the input frame, no modification inplace.